diff --git a/.agents/skills/cli-admin/SKILL.md b/.agents/skills/cli-admin/SKILL.md index 0e627cc769..92775d4b87 100644 --- a/.agents/skills/cli-admin/SKILL.md +++ b/.agents/skills/cli-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-admin -description: CLI tool (csdk) for the admin API — provides CRUD commands for 45 tables and 12 custom operations +description: CLI tool (csdk) for the admin API — provides CRUD commands for 44 tables and 12 custom operations --- # cli-admin -CLI tool (csdk) for the admin API — provides CRUD commands for 45 tables and 12 custom operations +CLI tool (csdk) for the admin API — provides CRUD commands for 44 tables and 12 custom operations ## Usage @@ -65,42 +65,41 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-credit](references/app-limit-credit.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) +- [org-permission-default](references/org-permission-default.md) +- [app-membership-default](references/app-membership-default.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-membership-default](references/org-membership-default.md) +- [org-owner-grant](references/org-owner-grant.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) - [app-limit-cap](references/app-limit-cap.md) - [org-limit-cap](references/org-limit-cap.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [membership-type](references/membership-type.md) +- [org-chart-edge](references/org-chart-edge.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) - [org-limit-credit](references/org-limit-credit.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) - [app-limit-warning](references/app-limit-warning.md) -- [org-limit-warning](references/org-limit-warning.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) +- [org-limit-warning](references/org-limit-warning.md) +- [membership-type](references/membership-type.md) - [app-grant](references/app-grant.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) +- [org-grant](references/org-grant.md) - [app-limit-event](references/app-limit-event.md) - [org-limit-event](references/org-limit-event.md) -- [org-grant](references/org-grant.md) -- [org-chart-edge](references/org-chart-edge.md) -- [usage-snapshot](references/usage-snapshot.md) -- [app-limit](references/app-limit.md) -- [app-invite](references/app-invite.md) - [org-membership-setting](references/org-membership-setting.md) +- [app-membership](references/app-membership.md) +- [app-limit](references/app-limit.md) +- [org-membership](references/org-membership.md) +- [org-member-profile](references/org-member-profile.md) - [org-limit-aggregate](references/org-limit-aggregate.md) - [org-limit](references/org-limit.md) -- [org-member-profile](references/org-member-profile.md) -- [app-membership](references/app-membership.md) +- [app-invite](references/app-invite.md) - [org-invite](references/org-invite.md) -- [org-membership](references/org-membership.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) diff --git a/.agents/skills/cli-auth/SKILL.md b/.agents/skills/cli-auth/SKILL.md index 63f917f950..721cbec15f 100644 --- a/.agents/skills/cli-auth/SKILL.md +++ b/.agents/skills/cli-auth/SKILL.md @@ -60,7 +60,7 @@ See the `references/` directory for detailed per-entity API documentation: - [phone-number](references/phone-number.md) - [crypto-address](references/crypto-address.md) - [webauthn-credential](references/webauthn-credential.md) -- [audit-log](references/audit-log.md) +- [audit-log-auth](references/audit-log-auth.md) - [identity-provider](references/identity-provider.md) - [role-type](references/role-type.md) - [user-connected-account](references/user-connected-account.md) @@ -85,10 +85,10 @@ See the `references/` directory for detailed per-entity API documentation: - [reset-password](references/reset-password.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) - [sign-up](references/sign-up.md) -- [request-cross-origin-token](references/request-cross-origin-token.md) - [sign-in](references/sign-in.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) +- [request-cross-origin-token](references/request-cross-origin-token.md) - [forgot-password](references/forgot-password.md) - [send-verification-email](references/send-verification-email.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-auth/references/audit-log-auth.md b/.agents/skills/cli-auth/references/audit-log-auth.md new file mode 100644 index 0000000000..308816669e --- /dev/null +++ b/.agents/skills/cli-auth/references/audit-log-auth.md @@ -0,0 +1,68 @@ +# auditLogAuth + + + +CRUD operations for AuditLogAuth records via csdk CLI + +## Usage + +```bash +csdk audit-log-auth list +csdk audit-log-auth list --where.. --orderBy +csdk audit-log-auth list --limit 10 --after +csdk audit-log-auth find-first --where.. +csdk audit-log-auth get --id +csdk audit-log-auth create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] +csdk audit-log-auth update --id [--event ] [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] [--success ] +csdk audit-log-auth delete --id +``` + +## Examples + +### List auditLogAuth records + +```bash +csdk audit-log-auth list +``` + +### List auditLogAuth records with pagination + +```bash +csdk audit-log-auth list --limit 10 --offset 0 +``` + +### List auditLogAuth records with cursor pagination + +```bash +csdk audit-log-auth list --limit 10 --after +``` + +### Find first matching auditLogAuth + +```bash +csdk audit-log-auth find-first --where.id.equalTo +``` + +### List auditLogAuth records with field selection + +```bash +csdk audit-log-auth list --select id,id +``` + +### List auditLogAuth records with filtering and ordering + +```bash +csdk audit-log-auth list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a auditLogAuth + +```bash +csdk audit-log-auth create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] +``` + +### Get a auditLogAuth by id + +```bash +csdk audit-log-auth get --id +``` diff --git a/.agents/skills/cli-objects/references/commit.md b/.agents/skills/cli-objects/references/commit.md index 62eca94282..0f0e47f7b0 100644 --- a/.agents/skills/cli-objects/references/commit.md +++ b/.agents/skills/cli-objects/references/commit.md @@ -12,8 +12,8 @@ csdk commit list --where.. --orderBy csdk commit list --limit 10 --after csdk commit find-first --where.. csdk commit get --id -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] -csdk commit update --id [--message ] [--databaseId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit update --id [--message ] [--scopeId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] csdk commit delete --id ``` @@ -58,7 +58,7 @@ csdk commit list --where.id.equalTo --orderBy ID_ASC ### Create a commit ```bash -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] ``` ### Get a commit by id diff --git a/.agents/skills/cli-objects/references/freeze-objects.md b/.agents/skills/cli-objects/references/freeze-objects.md index e4eac21087..16c66772cb 100644 --- a/.agents/skills/cli-objects/references/freeze-objects.md +++ b/.agents/skills/cli-objects/references/freeze-objects.md @@ -7,7 +7,7 @@ Execute the freezeObjects mutation ## Usage ```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id +csdk freeze-objects --input.clientMutationId --input.sId --input.id ``` ## Examples @@ -15,5 +15,5 @@ csdk freeze-objects --input.clientMutationId --input.databaseId ### Run freezeObjects ```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id +csdk freeze-objects --input.clientMutationId --input.sId --input.id ``` diff --git a/.agents/skills/cli-objects/references/get-all-objects-from-root.md b/.agents/skills/cli-objects/references/get-all-objects-from-root.md index 291a443793..c9509c4e04 100644 --- a/.agents/skills/cli-objects/references/get-all-objects-from-root.md +++ b/.agents/skills/cli-objects/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after +csdk get-all-objects-from-root --sId --id --first --offset --after ``` ## Examples @@ -15,5 +15,5 @@ csdk get-all-objects-from-root --databaseId --id --first --o ### Run getAllObjectsFromRoot ```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after +csdk get-all-objects-from-root --sId --id --first --offset --after ``` diff --git a/.agents/skills/cli-objects/references/get-object-at-path.md b/.agents/skills/cli-objects/references/get-object-at-path.md index 61a0fde431..c89a387d1a 100644 --- a/.agents/skills/cli-objects/references/get-object-at-path.md +++ b/.agents/skills/cli-objects/references/get-object-at-path.md @@ -7,7 +7,7 @@ Execute the getObjectAtPath query ## Usage ```bash -csdk get-object-at-path --dbId --storeId --path --refname +csdk get-object-at-path --sId --storeId --path --refname ``` ## Examples @@ -15,5 +15,5 @@ csdk get-object-at-path --dbId --storeId --path --refname ### Run getObjectAtPath ```bash -csdk get-object-at-path --dbId --storeId --path --refname +csdk get-object-at-path --sId --storeId --path --refname ``` diff --git a/.agents/skills/cli-objects/references/get-path-objects-from-root.md b/.agents/skills/cli-objects/references/get-path-objects-from-root.md index 172092437a..6dcfeb1272 100644 --- a/.agents/skills/cli-objects/references/get-path-objects-from-root.md +++ b/.agents/skills/cli-objects/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after +csdk get-path-objects-from-root --sId --id --path --first --offset --after ``` ## Examples @@ -15,5 +15,5 @@ csdk get-path-objects-from-root --databaseId --id --path ### Run getPathObjectsFromRoot ```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after +csdk get-path-objects-from-root --sId --id --path --first --offset --after ``` diff --git a/.agents/skills/cli-objects/references/init-empty-repo.md b/.agents/skills/cli-objects/references/init-empty-repo.md index 7ba5aa8199..22523a8cd8 100644 --- a/.agents/skills/cli-objects/references/init-empty-repo.md +++ b/.agents/skills/cli-objects/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` ## Examples @@ -15,5 +15,5 @@ csdk init-empty-repo --input.clientMutationId --input.dbId --inp ### Run initEmptyRepo ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` diff --git a/.agents/skills/cli-objects/references/insert-node-at-path.md b/.agents/skills/cli-objects/references/insert-node-at-path.md index b93267c911..5a9e3b7ba3 100644 --- a/.agents/skills/cli-objects/references/insert-node-at-path.md +++ b/.agents/skills/cli-objects/references/insert-node-at-path.md @@ -7,7 +7,7 @@ Execute the insertNodeAtPath mutation ## Usage ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk insert-node-at-path --input.clientMutationId --input.dbId - ### Run insertNodeAtPath ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-objects/references/object.md b/.agents/skills/cli-objects/references/object.md index 97a6238558..49192ead95 100644 --- a/.agents/skills/cli-objects/references/object.md +++ b/.agents/skills/cli-objects/references/object.md @@ -12,8 +12,8 @@ csdk object list --where.. --orderBy csdk object list --limit 10 --after csdk object find-first --where.. csdk object get --id -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] -csdk object update --id [--databaseId ] [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --scopeId [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object update --id [--scopeId ] [--kids ] [--ktree ] [--data ] [--frzn ] csdk object delete --id ``` @@ -58,7 +58,7 @@ csdk object list --where.id.equalTo --orderBy ID_ASC ### Create a object ```bash -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --scopeId [--kids ] [--ktree ] [--data ] [--frzn ] ``` ### Get a object by id diff --git a/.agents/skills/cli-objects/references/ref.md b/.agents/skills/cli-objects/references/ref.md index 5369e75209..da2eb0434f 100644 --- a/.agents/skills/cli-objects/references/ref.md +++ b/.agents/skills/cli-objects/references/ref.md @@ -12,8 +12,8 @@ csdk ref list --where.. --orderBy csdk ref list --limit 10 --after csdk ref find-first --where.. csdk ref get --id -csdk ref create --name --databaseId --storeId [--commitId ] -csdk ref update --id [--name ] [--databaseId ] [--storeId ] [--commitId ] +csdk ref create --name --scopeId --storeId [--commitId ] +csdk ref update --id [--name ] [--scopeId ] [--storeId ] [--commitId ] csdk ref delete --id ``` @@ -58,7 +58,7 @@ csdk ref list --where.id.equalTo --orderBy ID_ASC ### Create a ref ```bash -csdk ref create --name --databaseId --storeId [--commitId ] +csdk ref create --name --scopeId --storeId [--commitId ] ``` ### Get a ref by id diff --git a/.agents/skills/cli-objects/references/remove-node-at-path.md b/.agents/skills/cli-objects/references/remove-node-at-path.md index 9db6761b91..7376ea0cad 100644 --- a/.agents/skills/cli-objects/references/remove-node-at-path.md +++ b/.agents/skills/cli-objects/references/remove-node-at-path.md @@ -7,7 +7,7 @@ Execute the removeNodeAtPath mutation ## Usage ```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path +csdk remove-node-at-path --input.clientMutationId --input.sId --input.root --input.path ``` ## Examples @@ -15,5 +15,5 @@ csdk remove-node-at-path --input.clientMutationId --input.dbId - ### Run removeNodeAtPath ```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path +csdk remove-node-at-path --input.clientMutationId --input.sId --input.root --input.path ``` diff --git a/.agents/skills/cli-objects/references/rev-parse.md b/.agents/skills/cli-objects/references/rev-parse.md index 35c6f3dcc8..c7240fd324 100644 --- a/.agents/skills/cli-objects/references/rev-parse.md +++ b/.agents/skills/cli-objects/references/rev-parse.md @@ -7,7 +7,7 @@ Execute the revParse query ## Usage ```bash -csdk rev-parse --dbId --storeId --refname +csdk rev-parse --sId --storeId --refname ``` ## Examples @@ -15,5 +15,5 @@ csdk rev-parse --dbId --storeId --refname ### Run revParse ```bash -csdk rev-parse --dbId --storeId --refname +csdk rev-parse --sId --storeId --refname ``` diff --git a/.agents/skills/cli-objects/references/set-and-commit.md b/.agents/skills/cli-objects/references/set-and-commit.md index 897356944a..f13e45b5a9 100644 --- a/.agents/skills/cli-objects/references/set-and-commit.md +++ b/.agents/skills/cli-objects/references/set-and-commit.md @@ -7,7 +7,7 @@ Execute the setAndCommit mutation ## Usage ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk set-and-commit --input.clientMutationId --input.dbId --inpu ### Run setAndCommit ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-objects/references/set-data-at-path.md b/.agents/skills/cli-objects/references/set-data-at-path.md index 965cece542..0b30c6a3ab 100644 --- a/.agents/skills/cli-objects/references/set-data-at-path.md +++ b/.agents/skills/cli-objects/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` ## Examples @@ -15,5 +15,5 @@ csdk set-data-at-path --input.clientMutationId --input.dbId --in ### Run setDataAtPath ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` diff --git a/.agents/skills/cli-objects/references/set-props-and-commit.md b/.agents/skills/cli-objects/references/set-props-and-commit.md index 9dd2bc2ec0..dcb02d3da3 100644 --- a/.agents/skills/cli-objects/references/set-props-and-commit.md +++ b/.agents/skills/cli-objects/references/set-props-and-commit.md @@ -7,7 +7,7 @@ Execute the setPropsAndCommit mutation ## Usage ```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data +csdk set-props-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data ``` ## Examples @@ -15,5 +15,5 @@ csdk set-props-and-commit --input.clientMutationId --input.dbId ### Run setPropsAndCommit ```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data +csdk set-props-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data ``` diff --git a/.agents/skills/cli-objects/references/store.md b/.agents/skills/cli-objects/references/store.md index 25b76714d1..73ff0959f8 100644 --- a/.agents/skills/cli-objects/references/store.md +++ b/.agents/skills/cli-objects/references/store.md @@ -12,8 +12,8 @@ csdk store list --where.. --orderBy csdk store list --limit 10 --after csdk store find-first --where.. csdk store get --id -csdk store create --name --databaseId [--hash ] -csdk store update --id [--name ] [--databaseId ] [--hash ] +csdk store create --name --scopeId [--hash ] +csdk store update --id [--name ] [--scopeId ] [--hash ] csdk store delete --id ``` @@ -58,7 +58,7 @@ csdk store list --where.id.equalTo --orderBy ID_ASC ### Create a store ```bash -csdk store create --name --databaseId [--hash ] +csdk store create --name --scopeId [--hash ] ``` ### Get a store by id diff --git a/.agents/skills/cli-objects/references/update-node-at-path.md b/.agents/skills/cli-objects/references/update-node-at-path.md index 8d52fff70e..cd28f74f5e 100644 --- a/.agents/skills/cli-objects/references/update-node-at-path.md +++ b/.agents/skills/cli-objects/references/update-node-at-path.md @@ -7,7 +7,7 @@ Execute the updateNodeAtPath mutation ## Usage ```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk update-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk update-node-at-path --input.clientMutationId --input.dbId - ### Run updateNodeAtPath ```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk update-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-public/SKILL.md b/.agents/skills/cli-public/SKILL.md index a1b996afa6..46977a1ecb 100644 --- a/.agents/skills/cli-public/SKILL.md +++ b/.agents/skills/cli-public/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-public -description: CLI tool (csdk) for the public API — provides CRUD commands for 148 tables and 69 custom operations +description: CLI tool (csdk) for the public API — provides CRUD commands for 151 tables and 69 custom operations --- # cli-public -CLI tool (csdk) for the public API — provides CRUD commands for 148 tables and 69 custom operations +CLI tool (csdk) for the public API — provides CRUD commands for 151 tables and 69 custom operations ## Usage @@ -59,9 +59,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-managers-record](references/org-get-managers-record.md) - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [get-all-record](references/get-all-record.md) +- [object](references/object.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) -- [object](references/object.md) - [database](references/database.md) - [schema](references/schema.md) - [table](references/table.md) @@ -86,6 +86,7 @@ See the `references/` directory for detailed per-entity API documentation: - [session-secrets-module](references/session-secrets-module.md) - [identity-providers-module](references/identity-providers-module.md) - [realtime-module](references/realtime-module.md) +- [config-secrets-org-module](references/config-secrets-org-module.md) - [schema-grant](references/schema-grant.md) - [default-privilege](references/default-privilege.md) - [enum](references/enum.md) @@ -110,7 +111,7 @@ See the `references/` directory for detailed per-entity API documentation: - [default-ids-module](references/default-ids-module.md) - [denormalized-table-field](references/denormalized-table-field.md) - [emails-module](references/emails-module.md) -- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [config-secrets-user-module](references/config-secrets-user-module.md) - [invites-module](references/invites-module.md) - [events-module](references/events-module.md) - [limits-module](references/limits-module.md) @@ -131,6 +132,11 @@ See the `references/` directory for detailed per-entity API documentation: - [webauthn-credentials-module](references/webauthn-credentials-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) - [notifications-module](references/notifications-module.md) +- [inference-log-module](references/inference-log-module.md) +- [compute-log-module](references/compute-log-module.md) +- [transfer-log-module](references/transfer-log-module.md) +- [storage-log-module](references/storage-log-module.md) +- [db-usage-module](references/db-usage-module.md) - [database-provision-module](references/database-provision-module.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) @@ -160,48 +166,45 @@ See the `references/` directory for detailed per-entity API documentation: - [app-claimed-invite](references/app-claimed-invite.md) - [org-invite](references/org-invite.md) - [org-claimed-invite](references/org-claimed-invite.md) -- [audit-log](references/audit-log.md) -- [agent-thread](references/agent-thread.md) -- [agent-message](references/agent-message.md) -- [agent-task](references/agent-task.md) -- [role-type](references/role-type.md) +- [audit-log-auth](references/audit-log-auth.md) - [identity-provider](references/identity-provider.md) - [ref](references/ref.md) - [store](references/store.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) +- [role-type](references/role-type.md) +- [migrate-file](references/migrate-file.md) +- [devices-module](references/devices-module.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) +- [node-type-registry](references/node-type-registry.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) - [app-limit-cap](references/app-limit-cap.md) - [org-limit-cap](references/org-limit-cap.md) -- [membership-type](references/membership-type.md) -- [migrate-file](references/migrate-file.md) -- [devices-module](references/devices-module.md) -- [node-type-registry](references/node-type-registry.md) +- [user-connected-account](references/user-connected-account.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) - [app-limit-warning](references/app-limit-warning.md) -- [user-connected-account](references/user-connected-account.md) - [commit](references/commit.md) - [pubkey-setting](references/pubkey-setting.md) - [rate-limits-module](references/rate-limits-module.md) -- [usage-snapshot](references/usage-snapshot.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) +- [membership-type](references/membership-type.md) - [rls-setting](references/rls-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [rls-module](references/rls-module.md) +- [agent-chat-module](references/agent-chat-module.md) - [rate-limit-meters-module](references/rate-limit-meters-module.md) - [plans-module](references/plans-module.md) - [sql-action](references/sql-action.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [database-setting](references/database-setting.md) -- [billing-module](references/billing-module.md) -- [ast-migration](references/ast-migration.md) -- [user](references/user.md) - [org-membership-setting](references/org-membership-setting.md) -- [webauthn-setting](references/webauthn-setting.md) - [app-membership](references/app-membership.md) +- [user](references/user.md) +- [ast-migration](references/ast-migration.md) +- [webauthn-setting](references/webauthn-setting.md) +- [billing-module](references/billing-module.md) - [billing-provider-module](references/billing-provider-module.md) - [hierarchy-module](references/hierarchy-module.md) - [current-user-id](references/current-user-id.md) @@ -218,11 +221,11 @@ See the `references/` directory for detailed per-entity API documentation: - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) - [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [get-all-objects-from-root](references/get-all-objects-from-root.md) - [get-path-objects-from-root](references/get-path-objects-from-root.md) - [get-object-at-path](references/get-object-at-path.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [current-user](references/current-user.md) - [send-account-deletion-email](references/send-account-deletion-email.md) - [sign-out](references/sign-out.md) @@ -248,7 +251,10 @@ See the `references/` directory for detailed per-entity API documentation: - [remove-node-at-path](references/remove-node-at-path.md) - [copy-template-to-blueprint](references/copy-template-to-blueprint.md) - [provision-spatial-relation](references/provision-spatial-relation.md) +- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [bootstrap-user](references/bootstrap-user.md) +- [sign-up](references/sign-up.md) +- [sign-in](references/sign-in.md) - [set-field-order](references/set-field-order.md) - [provision-check-constraint](references/provision-check-constraint.md) - [provision-unique-constraint](references/provision-unique-constraint.md) @@ -262,14 +268,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-and-commit](references/set-and-commit.md) - [provision-relation](references/provision-relation.md) - [apply-rls](references/apply-rls.md) -- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [create-user-database](references/create-user-database.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) -- [sign-up](references/sign-up.md) - [request-cross-origin-token](references/request-cross-origin-token.md) -- [sign-in](references/sign-in.md) - [provision-table](references/provision-table.md) +- [send-verification-email](references/send-verification-email.md) +- [forgot-password](references/forgot-password.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-public/references/agent-chat-module.md b/.agents/skills/cli-public/references/agent-chat-module.md new file mode 100644 index 0000000000..c41fef95f7 --- /dev/null +++ b/.agents/skills/cli-public/references/agent-chat-module.md @@ -0,0 +1,68 @@ +# agentChatModule + + + +CRUD operations for AgentChatModule records via csdk CLI + +## Usage + +```bash +csdk agent-chat-module list +csdk agent-chat-module list --where.. --orderBy +csdk agent-chat-module list --limit 10 --after +csdk agent-chat-module find-first --where.. +csdk agent-chat-module get --id +csdk agent-chat-module create --databaseId [--schemaId ] [--privateSchemaId ] [--apiId ] [--threadTableId ] [--threadTableName ] [--messageTableId ] [--messageTableName ] [--taskTableId ] [--taskTableName ] [--prefix ] +csdk agent-chat-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--apiId ] [--threadTableId ] [--threadTableName ] [--messageTableId ] [--messageTableName ] [--taskTableId ] [--taskTableName ] [--prefix ] +csdk agent-chat-module delete --id +``` + +## Examples + +### List agentChatModule records + +```bash +csdk agent-chat-module list +``` + +### List agentChatModule records with pagination + +```bash +csdk agent-chat-module list --limit 10 --offset 0 +``` + +### List agentChatModule records with cursor pagination + +```bash +csdk agent-chat-module list --limit 10 --after +``` + +### Find first matching agentChatModule + +```bash +csdk agent-chat-module find-first --where.id.equalTo +``` + +### List agentChatModule records with field selection + +```bash +csdk agent-chat-module list --select id,id +``` + +### List agentChatModule records with filtering and ordering + +```bash +csdk agent-chat-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a agentChatModule + +```bash +csdk agent-chat-module create --databaseId [--schemaId ] [--privateSchemaId ] [--apiId ] [--threadTableId ] [--threadTableName ] [--messageTableId ] [--messageTableName ] [--taskTableId ] [--taskTableName ] [--prefix ] +``` + +### Get a agentChatModule by id + +```bash +csdk agent-chat-module get --id +``` diff --git a/.agents/skills/cli-public/references/audit-log-auth.md b/.agents/skills/cli-public/references/audit-log-auth.md new file mode 100644 index 0000000000..308816669e --- /dev/null +++ b/.agents/skills/cli-public/references/audit-log-auth.md @@ -0,0 +1,68 @@ +# auditLogAuth + + + +CRUD operations for AuditLogAuth records via csdk CLI + +## Usage + +```bash +csdk audit-log-auth list +csdk audit-log-auth list --where.. --orderBy +csdk audit-log-auth list --limit 10 --after +csdk audit-log-auth find-first --where.. +csdk audit-log-auth get --id +csdk audit-log-auth create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] +csdk audit-log-auth update --id [--event ] [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] [--success ] +csdk audit-log-auth delete --id +``` + +## Examples + +### List auditLogAuth records + +```bash +csdk audit-log-auth list +``` + +### List auditLogAuth records with pagination + +```bash +csdk audit-log-auth list --limit 10 --offset 0 +``` + +### List auditLogAuth records with cursor pagination + +```bash +csdk audit-log-auth list --limit 10 --after +``` + +### Find first matching auditLogAuth + +```bash +csdk audit-log-auth find-first --where.id.equalTo +``` + +### List auditLogAuth records with field selection + +```bash +csdk audit-log-auth list --select id,id +``` + +### List auditLogAuth records with filtering and ordering + +```bash +csdk audit-log-auth list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a auditLogAuth + +```bash +csdk audit-log-auth create --event --success [--actorId ] [--origin ] [--userAgent ] [--ipAddress ] +``` + +### Get a auditLogAuth by id + +```bash +csdk audit-log-auth get --id +``` diff --git a/.agents/skills/cli-public/references/billing-module.md b/.agents/skills/cli-public/references/billing-module.md index a2ab7e635a..d1411175ca 100644 --- a/.agents/skills/cli-public/references/billing-module.md +++ b/.agents/skills/cli-public/references/billing-module.md @@ -12,8 +12,8 @@ csdk billing-module list --where.. --orderBy csdk billing-module list --limit 10 --after csdk billing-module find-first --where.. csdk billing-module get --id -csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--recordUsageFunction ] [--prefix ] -csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--recordUsageFunction ] [--prefix ] +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--recordUsageFunction ] [--prefix ] +csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--recordUsageFunction ] [--prefix ] csdk billing-module delete --id ``` @@ -58,7 +58,7 @@ csdk billing-module list --where.id.equalTo --orderBy ID_ASC ### Create a billingModule ```bash -csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--recordUsageFunction ] [--prefix ] +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--recordUsageFunction ] [--prefix ] ``` ### Get a billingModule by id diff --git a/.agents/skills/cli-public/references/commit.md b/.agents/skills/cli-public/references/commit.md index 62eca94282..0f0e47f7b0 100644 --- a/.agents/skills/cli-public/references/commit.md +++ b/.agents/skills/cli-public/references/commit.md @@ -12,8 +12,8 @@ csdk commit list --where.. --orderBy csdk commit list --limit 10 --after csdk commit find-first --where.. csdk commit get --id -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] -csdk commit update --id [--message ] [--databaseId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit update --id [--message ] [--scopeId ] [--storeId ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] csdk commit delete --id ``` @@ -58,7 +58,7 @@ csdk commit list --where.id.equalTo --orderBy ID_ASC ### Create a commit ```bash -csdk commit create --databaseId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] +csdk commit create --scopeId --storeId [--message ] [--parentIds ] [--authorId ] [--committerId ] [--treeId ] [--date ] ``` ### Get a commit by id diff --git a/.agents/skills/cli-public/references/compute-log-module.md b/.agents/skills/cli-public/references/compute-log-module.md new file mode 100644 index 0000000000..a55c988012 --- /dev/null +++ b/.agents/skills/cli-public/references/compute-log-module.md @@ -0,0 +1,68 @@ +# computeLogModule + + + +CRUD operations for ComputeLogModule records via csdk CLI + +## Usage + +```bash +csdk compute-log-module list +csdk compute-log-module list --where.. --orderBy +csdk compute-log-module list --limit 10 --after +csdk compute-log-module find-first --where.. +csdk compute-log-module get --id +csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +csdk compute-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +csdk compute-log-module delete --id +``` + +## Examples + +### List computeLogModule records + +```bash +csdk compute-log-module list +``` + +### List computeLogModule records with pagination + +```bash +csdk compute-log-module list --limit 10 --offset 0 +``` + +### List computeLogModule records with cursor pagination + +```bash +csdk compute-log-module list --limit 10 --after +``` + +### Find first matching computeLogModule + +```bash +csdk compute-log-module find-first --where.id.equalTo +``` + +### List computeLogModule records with field selection + +```bash +csdk compute-log-module list --select id,id +``` + +### List computeLogModule records with filtering and ordering + +```bash +csdk compute-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a computeLogModule + +```bash +csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +``` + +### Get a computeLogModule by id + +```bash +csdk compute-log-module get --id +``` diff --git a/.agents/skills/cli-public/references/config-secrets-org-module.md b/.agents/skills/cli-public/references/config-secrets-org-module.md new file mode 100644 index 0000000000..f7e31391e2 --- /dev/null +++ b/.agents/skills/cli-public/references/config-secrets-org-module.md @@ -0,0 +1,68 @@ +# configSecretsOrgModule + + + +CRUD operations for ConfigSecretsOrgModule records via csdk CLI + +## Usage + +```bash +csdk config-secrets-org-module list +csdk config-secrets-org-module list --where.. --orderBy +csdk config-secrets-org-module list --limit 10 --after +csdk config-secrets-org-module find-first --where.. +csdk config-secrets-org-module get --id +csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +csdk config-secrets-org-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] +csdk config-secrets-org-module delete --id +``` + +## Examples + +### List configSecretsOrgModule records + +```bash +csdk config-secrets-org-module list +``` + +### List configSecretsOrgModule records with pagination + +```bash +csdk config-secrets-org-module list --limit 10 --offset 0 +``` + +### List configSecretsOrgModule records with cursor pagination + +```bash +csdk config-secrets-org-module list --limit 10 --after +``` + +### Find first matching configSecretsOrgModule + +```bash +csdk config-secrets-org-module find-first --where.id.equalTo +``` + +### List configSecretsOrgModule records with field selection + +```bash +csdk config-secrets-org-module list --select id,id +``` + +### List configSecretsOrgModule records with filtering and ordering + +```bash +csdk config-secrets-org-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a configSecretsOrgModule + +```bash +csdk config-secrets-org-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a configSecretsOrgModule by id + +```bash +csdk config-secrets-org-module get --id +``` diff --git a/.agents/skills/cli-public/references/config-secrets-user-module.md b/.agents/skills/cli-public/references/config-secrets-user-module.md new file mode 100644 index 0000000000..908ee09c6a --- /dev/null +++ b/.agents/skills/cli-public/references/config-secrets-user-module.md @@ -0,0 +1,68 @@ +# configSecretsUserModule + + + +CRUD operations for ConfigSecretsUserModule records via csdk CLI + +## Usage + +```bash +csdk config-secrets-user-module list +csdk config-secrets-user-module list --where.. --orderBy +csdk config-secrets-user-module list --limit 10 --after +csdk config-secrets-user-module find-first --where.. +csdk config-secrets-user-module get --id +csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +csdk config-secrets-user-module update --id [--databaseId ] [--schemaId ] [--tableId ] [--tableName ] +csdk config-secrets-user-module delete --id +``` + +## Examples + +### List configSecretsUserModule records + +```bash +csdk config-secrets-user-module list +``` + +### List configSecretsUserModule records with pagination + +```bash +csdk config-secrets-user-module list --limit 10 --offset 0 +``` + +### List configSecretsUserModule records with cursor pagination + +```bash +csdk config-secrets-user-module list --limit 10 --after +``` + +### Find first matching configSecretsUserModule + +```bash +csdk config-secrets-user-module find-first --where.id.equalTo +``` + +### List configSecretsUserModule records with field selection + +```bash +csdk config-secrets-user-module list --select id,id +``` + +### List configSecretsUserModule records with filtering and ordering + +```bash +csdk config-secrets-user-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a configSecretsUserModule + +```bash +csdk config-secrets-user-module create --databaseId [--schemaId ] [--tableId ] [--tableName ] +``` + +### Get a configSecretsUserModule by id + +```bash +csdk config-secrets-user-module get --id +``` diff --git a/.agents/skills/cli-public/references/construct-blueprint.md b/.agents/skills/cli-public/references/construct-blueprint.md index 38d73da1d1..b8d8e3eb36 100644 --- a/.agents/skills/cli-public/references/construct-blueprint.md +++ b/.agents/skills/cli-public/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. ## Usage diff --git a/.agents/skills/cli-public/references/db-usage-module.md b/.agents/skills/cli-public/references/db-usage-module.md new file mode 100644 index 0000000000..f2f47b2746 --- /dev/null +++ b/.agents/skills/cli-public/references/db-usage-module.md @@ -0,0 +1,68 @@ +# dbUsageModule + + + +CRUD operations for DbUsageModule records via csdk CLI + +## Usage + +```bash +csdk db-usage-module list +csdk db-usage-module list --where.. --orderBy +csdk db-usage-module list --limit 10 --after +csdk db-usage-module find-first --where.. +csdk db-usage-module get --id +csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] +csdk db-usage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] +csdk db-usage-module delete --id +``` + +## Examples + +### List dbUsageModule records + +```bash +csdk db-usage-module list +``` + +### List dbUsageModule records with pagination + +```bash +csdk db-usage-module list --limit 10 --offset 0 +``` + +### List dbUsageModule records with cursor pagination + +```bash +csdk db-usage-module list --limit 10 --after +``` + +### Find first matching dbUsageModule + +```bash +csdk db-usage-module find-first --where.id.equalTo +``` + +### List dbUsageModule records with field selection + +```bash +csdk db-usage-module list --select id,id +``` + +### List dbUsageModule records with filtering and ordering + +```bash +csdk db-usage-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a dbUsageModule + +```bash +csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] +``` + +### Get a dbUsageModule by id + +```bash +csdk db-usage-module get --id +``` diff --git a/.agents/skills/cli-public/references/freeze-objects.md b/.agents/skills/cli-public/references/freeze-objects.md index e4eac21087..16c66772cb 100644 --- a/.agents/skills/cli-public/references/freeze-objects.md +++ b/.agents/skills/cli-public/references/freeze-objects.md @@ -7,7 +7,7 @@ Execute the freezeObjects mutation ## Usage ```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id +csdk freeze-objects --input.clientMutationId --input.sId --input.id ``` ## Examples @@ -15,5 +15,5 @@ csdk freeze-objects --input.clientMutationId --input.databaseId ### Run freezeObjects ```bash -csdk freeze-objects --input.clientMutationId --input.databaseId --input.id +csdk freeze-objects --input.clientMutationId --input.sId --input.id ``` diff --git a/.agents/skills/cli-public/references/get-all-objects-from-root.md b/.agents/skills/cli-public/references/get-all-objects-from-root.md index 291a443793..c9509c4e04 100644 --- a/.agents/skills/cli-public/references/get-all-objects-from-root.md +++ b/.agents/skills/cli-public/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after +csdk get-all-objects-from-root --sId --id --first --offset --after ``` ## Examples @@ -15,5 +15,5 @@ csdk get-all-objects-from-root --databaseId --id --first --o ### Run getAllObjectsFromRoot ```bash -csdk get-all-objects-from-root --databaseId --id --first --offset --after +csdk get-all-objects-from-root --sId --id --first --offset --after ``` diff --git a/.agents/skills/cli-public/references/get-object-at-path.md b/.agents/skills/cli-public/references/get-object-at-path.md index 61a0fde431..c89a387d1a 100644 --- a/.agents/skills/cli-public/references/get-object-at-path.md +++ b/.agents/skills/cli-public/references/get-object-at-path.md @@ -7,7 +7,7 @@ Execute the getObjectAtPath query ## Usage ```bash -csdk get-object-at-path --dbId --storeId --path --refname +csdk get-object-at-path --sId --storeId --path --refname ``` ## Examples @@ -15,5 +15,5 @@ csdk get-object-at-path --dbId --storeId --path --refname ### Run getObjectAtPath ```bash -csdk get-object-at-path --dbId --storeId --path --refname +csdk get-object-at-path --sId --storeId --path --refname ``` diff --git a/.agents/skills/cli-public/references/get-path-objects-from-root.md b/.agents/skills/cli-public/references/get-path-objects-from-root.md index 172092437a..6dcfeb1272 100644 --- a/.agents/skills/cli-public/references/get-path-objects-from-root.md +++ b/.agents/skills/cli-public/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after +csdk get-path-objects-from-root --sId --id --path --first --offset --after ``` ## Examples @@ -15,5 +15,5 @@ csdk get-path-objects-from-root --databaseId --id --path ### Run getPathObjectsFromRoot ```bash -csdk get-path-objects-from-root --databaseId --id --path --first --offset --after +csdk get-path-objects-from-root --sId --id --path --first --offset --after ``` diff --git a/.agents/skills/cli-public/references/inference-log-module.md b/.agents/skills/cli-public/references/inference-log-module.md new file mode 100644 index 0000000000..87f9ba9ed5 --- /dev/null +++ b/.agents/skills/cli-public/references/inference-log-module.md @@ -0,0 +1,68 @@ +# inferenceLogModule + + + +CRUD operations for InferenceLogModule records via csdk CLI + +## Usage + +```bash +csdk inference-log-module list +csdk inference-log-module list --where.. --orderBy +csdk inference-log-module list --limit 10 --after +csdk inference-log-module find-first --where.. +csdk inference-log-module get --id +csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +csdk inference-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +csdk inference-log-module delete --id +``` + +## Examples + +### List inferenceLogModule records + +```bash +csdk inference-log-module list +``` + +### List inferenceLogModule records with pagination + +```bash +csdk inference-log-module list --limit 10 --offset 0 +``` + +### List inferenceLogModule records with cursor pagination + +```bash +csdk inference-log-module list --limit 10 --after +``` + +### Find first matching inferenceLogModule + +```bash +csdk inference-log-module find-first --where.id.equalTo +``` + +### List inferenceLogModule records with field selection + +```bash +csdk inference-log-module list --select id,id +``` + +### List inferenceLogModule records with filtering and ordering + +```bash +csdk inference-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a inferenceLogModule + +```bash +csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +``` + +### Get a inferenceLogModule by id + +```bash +csdk inference-log-module get --id +``` diff --git a/.agents/skills/cli-public/references/init-empty-repo.md b/.agents/skills/cli-public/references/init-empty-repo.md index 7ba5aa8199..22523a8cd8 100644 --- a/.agents/skills/cli-public/references/init-empty-repo.md +++ b/.agents/skills/cli-public/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` ## Examples @@ -15,5 +15,5 @@ csdk init-empty-repo --input.clientMutationId --input.dbId --inp ### Run initEmptyRepo ```bash -csdk init-empty-repo --input.clientMutationId --input.dbId --input.storeId +csdk init-empty-repo --input.clientMutationId --input.sId --input.storeId ``` diff --git a/.agents/skills/cli-public/references/insert-node-at-path.md b/.agents/skills/cli-public/references/insert-node-at-path.md index b93267c911..5a9e3b7ba3 100644 --- a/.agents/skills/cli-public/references/insert-node-at-path.md +++ b/.agents/skills/cli-public/references/insert-node-at-path.md @@ -7,7 +7,7 @@ Execute the insertNodeAtPath mutation ## Usage ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk insert-node-at-path --input.clientMutationId --input.dbId - ### Run insertNodeAtPath ```bash -csdk insert-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk insert-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-public/references/object.md b/.agents/skills/cli-public/references/object.md index 97a6238558..49192ead95 100644 --- a/.agents/skills/cli-public/references/object.md +++ b/.agents/skills/cli-public/references/object.md @@ -12,8 +12,8 @@ csdk object list --where.. --orderBy csdk object list --limit 10 --after csdk object find-first --where.. csdk object get --id -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] -csdk object update --id [--databaseId ] [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --scopeId [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object update --id [--scopeId ] [--kids ] [--ktree ] [--data ] [--frzn ] csdk object delete --id ``` @@ -58,7 +58,7 @@ csdk object list --where.id.equalTo --orderBy ID_ASC ### Create a object ```bash -csdk object create --databaseId [--kids ] [--ktree ] [--data ] [--frzn ] +csdk object create --scopeId [--kids ] [--ktree ] [--data ] [--frzn ] ``` ### Get a object by id diff --git a/.agents/skills/cli-public/references/partition.md b/.agents/skills/cli-public/references/partition.md index f70565b455..f17a21d6fc 100644 --- a/.agents/skills/cli-public/references/partition.md +++ b/.agents/skills/cli-public/references/partition.md @@ -12,8 +12,8 @@ csdk partition list --where.. --orderBy csdk partition list --limit 10 --after csdk partition find-first --where.. csdk partition get --id -csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--premake ] [--namingPattern ] -csdk partition update --id [--databaseId ] [--tableId ] [--strategy ] [--partitionKeyId ] [--interval ] [--retention ] [--premake ] [--namingPattern ] +csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] +csdk partition update --id [--databaseId ] [--tableId ] [--strategy ] [--partitionKeyId ] [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] csdk partition delete --id ``` @@ -58,7 +58,7 @@ csdk partition list --where.id.equalTo --orderBy ID_ASC ### Create a partition ```bash -csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--premake ] [--namingPattern ] +csdk partition create --databaseId --tableId --strategy --partitionKeyId [--interval ] [--retention ] [--retentionKeepTable ] [--premake ] [--namingPattern ] ``` ### Get a partition by id diff --git a/.agents/skills/cli-public/references/ref.md b/.agents/skills/cli-public/references/ref.md index 5369e75209..da2eb0434f 100644 --- a/.agents/skills/cli-public/references/ref.md +++ b/.agents/skills/cli-public/references/ref.md @@ -12,8 +12,8 @@ csdk ref list --where.. --orderBy csdk ref list --limit 10 --after csdk ref find-first --where.. csdk ref get --id -csdk ref create --name --databaseId --storeId [--commitId ] -csdk ref update --id [--name ] [--databaseId ] [--storeId ] [--commitId ] +csdk ref create --name --scopeId --storeId [--commitId ] +csdk ref update --id [--name ] [--scopeId ] [--storeId ] [--commitId ] csdk ref delete --id ``` @@ -58,7 +58,7 @@ csdk ref list --where.id.equalTo --orderBy ID_ASC ### Create a ref ```bash -csdk ref create --name --databaseId --storeId [--commitId ] +csdk ref create --name --scopeId --storeId [--commitId ] ``` ### Get a ref by id diff --git a/.agents/skills/cli-public/references/remove-node-at-path.md b/.agents/skills/cli-public/references/remove-node-at-path.md index 9db6761b91..7376ea0cad 100644 --- a/.agents/skills/cli-public/references/remove-node-at-path.md +++ b/.agents/skills/cli-public/references/remove-node-at-path.md @@ -7,7 +7,7 @@ Execute the removeNodeAtPath mutation ## Usage ```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path +csdk remove-node-at-path --input.clientMutationId --input.sId --input.root --input.path ``` ## Examples @@ -15,5 +15,5 @@ csdk remove-node-at-path --input.clientMutationId --input.dbId - ### Run removeNodeAtPath ```bash -csdk remove-node-at-path --input.clientMutationId --input.dbId --input.root --input.path +csdk remove-node-at-path --input.clientMutationId --input.sId --input.root --input.path ``` diff --git a/.agents/skills/cli-public/references/rev-parse.md b/.agents/skills/cli-public/references/rev-parse.md index 35c6f3dcc8..c7240fd324 100644 --- a/.agents/skills/cli-public/references/rev-parse.md +++ b/.agents/skills/cli-public/references/rev-parse.md @@ -7,7 +7,7 @@ Execute the revParse query ## Usage ```bash -csdk rev-parse --dbId --storeId --refname +csdk rev-parse --sId --storeId --refname ``` ## Examples @@ -15,5 +15,5 @@ csdk rev-parse --dbId --storeId --refname ### Run revParse ```bash -csdk rev-parse --dbId --storeId --refname +csdk rev-parse --sId --storeId --refname ``` diff --git a/.agents/skills/cli-public/references/set-and-commit.md b/.agents/skills/cli-public/references/set-and-commit.md index 897356944a..f13e45b5a9 100644 --- a/.agents/skills/cli-public/references/set-and-commit.md +++ b/.agents/skills/cli-public/references/set-and-commit.md @@ -7,7 +7,7 @@ Execute the setAndCommit mutation ## Usage ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk set-and-commit --input.clientMutationId --input.dbId --inpu ### Run setAndCommit ```bash -csdk set-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree +csdk set-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/cli-public/references/set-data-at-path.md b/.agents/skills/cli-public/references/set-data-at-path.md index 965cece542..0b30c6a3ab 100644 --- a/.agents/skills/cli-public/references/set-data-at-path.md +++ b/.agents/skills/cli-public/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` ## Examples @@ -15,5 +15,5 @@ csdk set-data-at-path --input.clientMutationId --input.dbId --in ### Run setDataAtPath ```bash -csdk set-data-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data +csdk set-data-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data ``` diff --git a/.agents/skills/cli-public/references/set-props-and-commit.md b/.agents/skills/cli-public/references/set-props-and-commit.md index 9dd2bc2ec0..dcb02d3da3 100644 --- a/.agents/skills/cli-public/references/set-props-and-commit.md +++ b/.agents/skills/cli-public/references/set-props-and-commit.md @@ -7,7 +7,7 @@ Execute the setPropsAndCommit mutation ## Usage ```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data +csdk set-props-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data ``` ## Examples @@ -15,5 +15,5 @@ csdk set-props-and-commit --input.clientMutationId --input.dbId ### Run setPropsAndCommit ```bash -csdk set-props-and-commit --input.clientMutationId --input.dbId --input.storeId --input.refname --input.path --input.data +csdk set-props-and-commit --input.clientMutationId --input.sId --input.storeId --input.refname --input.path --input.data ``` diff --git a/.agents/skills/cli-public/references/storage-log-module.md b/.agents/skills/cli-public/references/storage-log-module.md new file mode 100644 index 0000000000..14a0ab9b82 --- /dev/null +++ b/.agents/skills/cli-public/references/storage-log-module.md @@ -0,0 +1,68 @@ +# storageLogModule + + + +CRUD operations for StorageLogModule records via csdk CLI + +## Usage + +```bash +csdk storage-log-module list +csdk storage-log-module list --where.. --orderBy +csdk storage-log-module list --limit 10 --after +csdk storage-log-module find-first --where.. +csdk storage-log-module get --id +csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +csdk storage-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +csdk storage-log-module delete --id +``` + +## Examples + +### List storageLogModule records + +```bash +csdk storage-log-module list +``` + +### List storageLogModule records with pagination + +```bash +csdk storage-log-module list --limit 10 --offset 0 +``` + +### List storageLogModule records with cursor pagination + +```bash +csdk storage-log-module list --limit 10 --after +``` + +### Find first matching storageLogModule + +```bash +csdk storage-log-module find-first --where.id.equalTo +``` + +### List storageLogModule records with field selection + +```bash +csdk storage-log-module list --select id,id +``` + +### List storageLogModule records with filtering and ordering + +```bash +csdk storage-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a storageLogModule + +```bash +csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +``` + +### Get a storageLogModule by id + +```bash +csdk storage-log-module get --id +``` diff --git a/.agents/skills/cli-public/references/storage-module.md b/.agents/skills/cli-public/references/storage-module.md index 4aea34241e..101a82c49e 100644 --- a/.agents/skills/cli-public/references/storage-module.md +++ b/.agents/skills/cli-public/references/storage-module.md @@ -12,8 +12,8 @@ csdk storage-module list --where.. --orderBy csdk storage-module list --limit 10 --after csdk storage-module find-first --where.. csdk storage-module get --id -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] -csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--storageKey ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] +csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--storageKey ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] csdk storage-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageModule ```bash -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--storageKey ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] ``` ### Get a storageModule by id diff --git a/.agents/skills/cli-public/references/store.md b/.agents/skills/cli-public/references/store.md index 25b76714d1..73ff0959f8 100644 --- a/.agents/skills/cli-public/references/store.md +++ b/.agents/skills/cli-public/references/store.md @@ -12,8 +12,8 @@ csdk store list --where.. --orderBy csdk store list --limit 10 --after csdk store find-first --where.. csdk store get --id -csdk store create --name --databaseId [--hash ] -csdk store update --id [--name ] [--databaseId ] [--hash ] +csdk store create --name --scopeId [--hash ] +csdk store update --id [--name ] [--scopeId ] [--hash ] csdk store delete --id ``` @@ -58,7 +58,7 @@ csdk store list --where.id.equalTo --orderBy ID_ASC ### Create a store ```bash -csdk store create --name --databaseId [--hash ] +csdk store create --name --scopeId [--hash ] ``` ### Get a store by id diff --git a/.agents/skills/cli-public/references/transfer-log-module.md b/.agents/skills/cli-public/references/transfer-log-module.md new file mode 100644 index 0000000000..7759fd0f46 --- /dev/null +++ b/.agents/skills/cli-public/references/transfer-log-module.md @@ -0,0 +1,68 @@ +# transferLogModule + + + +CRUD operations for TransferLogModule records via csdk CLI + +## Usage + +```bash +csdk transfer-log-module list +csdk transfer-log-module list --where.. --orderBy +csdk transfer-log-module list --limit 10 --after +csdk transfer-log-module find-first --where.. +csdk transfer-log-module get --id +csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +csdk transfer-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +csdk transfer-log-module delete --id +``` + +## Examples + +### List transferLogModule records + +```bash +csdk transfer-log-module list +``` + +### List transferLogModule records with pagination + +```bash +csdk transfer-log-module list --limit 10 --offset 0 +``` + +### List transferLogModule records with cursor pagination + +```bash +csdk transfer-log-module list --limit 10 --after +``` + +### Find first matching transferLogModule + +```bash +csdk transfer-log-module find-first --where.id.equalTo +``` + +### List transferLogModule records with field selection + +```bash +csdk transfer-log-module list --select id,id +``` + +### List transferLogModule records with filtering and ordering + +```bash +csdk transfer-log-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a transferLogModule + +```bash +csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] +``` + +### Get a transferLogModule by id + +```bash +csdk transfer-log-module get --id +``` diff --git a/.agents/skills/cli-public/references/update-node-at-path.md b/.agents/skills/cli-public/references/update-node-at-path.md index 8d52fff70e..cd28f74f5e 100644 --- a/.agents/skills/cli-public/references/update-node-at-path.md +++ b/.agents/skills/cli-public/references/update-node-at-path.md @@ -7,7 +7,7 @@ Execute the updateNodeAtPath mutation ## Usage ```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk update-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` ## Examples @@ -15,5 +15,5 @@ csdk update-node-at-path --input.clientMutationId --input.dbId - ### Run updateNodeAtPath ```bash -csdk update-node-at-path --input.clientMutationId --input.dbId --input.root --input.path --input.data --input.kids --input.ktree +csdk update-node-at-path --input.clientMutationId --input.sId --input.root --input.path --input.data --input.kids --input.ktree ``` diff --git a/.agents/skills/hooks-admin/SKILL.md b/.agents/skills/hooks-admin/SKILL.md index c2b711eaaa..bf0729bf21 100644 --- a/.agents/skills/hooks-admin/SKILL.md +++ b/.agents/skills/hooks-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-admin -description: React Query hooks for the admin API — provides typed query and mutation hooks for 45 tables and 12 custom operations +description: React Query hooks for the admin API — provides typed query and mutation hooks for 44 tables and 12 custom operations --- # hooks-admin -React Query hooks for the admin API — provides typed query and mutation hooks for 45 tables and 12 custom operations +React Query hooks for the admin API — provides typed query and mutation hooks for 44 tables and 12 custom operations ## Usage @@ -47,42 +47,41 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-credit](references/app-limit-credit.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) +- [org-permission-default](references/org-permission-default.md) +- [app-membership-default](references/app-membership-default.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-membership-default](references/org-membership-default.md) +- [org-owner-grant](references/org-owner-grant.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) - [app-limit-cap](references/app-limit-cap.md) - [org-limit-cap](references/org-limit-cap.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [membership-type](references/membership-type.md) +- [org-chart-edge](references/org-chart-edge.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) - [org-limit-credit](references/org-limit-credit.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) - [app-limit-warning](references/app-limit-warning.md) -- [org-limit-warning](references/org-limit-warning.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) +- [org-limit-warning](references/org-limit-warning.md) +- [membership-type](references/membership-type.md) - [app-grant](references/app-grant.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) +- [org-grant](references/org-grant.md) - [app-limit-event](references/app-limit-event.md) - [org-limit-event](references/org-limit-event.md) -- [org-grant](references/org-grant.md) -- [org-chart-edge](references/org-chart-edge.md) -- [usage-snapshot](references/usage-snapshot.md) -- [app-limit](references/app-limit.md) -- [app-invite](references/app-invite.md) - [org-membership-setting](references/org-membership-setting.md) +- [app-membership](references/app-membership.md) +- [app-limit](references/app-limit.md) +- [org-membership](references/org-membership.md) +- [org-member-profile](references/org-member-profile.md) - [org-limit-aggregate](references/org-limit-aggregate.md) - [org-limit](references/org-limit.md) -- [org-member-profile](references/org-member-profile.md) -- [app-membership](references/app-membership.md) +- [app-invite](references/app-invite.md) - [org-invite](references/org-invite.md) -- [org-membership](references/org-membership.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) diff --git a/.agents/skills/hooks-admin/references/app-limit-event.md b/.agents/skills/hooks-admin/references/app-limit-event.md index d67a98c768..76524be944 100644 --- a/.agents/skills/hooks-admin/references/app-limit-event.md +++ b/.agents/skills/hooks-admin/references/app-limit-event.md @@ -7,8 +7,11 @@ Append-only log of limit events for historical reporting and audit ## Usage ```typescript -useAppLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useAppLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useAppLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitEventMutation({}) ``` ## Examples @@ -17,7 +20,7 @@ useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) ```typescript const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); ``` diff --git a/.agents/skills/hooks-admin/references/org-limit-event.md b/.agents/skills/hooks-admin/references/org-limit-event.md index 4055f0c39e..c3bab2354e 100644 --- a/.agents/skills/hooks-admin/references/org-limit-event.md +++ b/.agents/skills/hooks-admin/references/org-limit-event.md @@ -7,8 +7,11 @@ Append-only log of limit events for historical reporting and audit ## Usage ```typescript -useOrgLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useOrgLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useOrgLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitEventMutation({}) ``` ## Examples @@ -17,7 +20,7 @@ useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) ```typescript const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); ``` diff --git a/.agents/skills/hooks-auth/SKILL.md b/.agents/skills/hooks-auth/SKILL.md index 30d2a73833..c48f4f2347 100644 --- a/.agents/skills/hooks-auth/SKILL.md +++ b/.agents/skills/hooks-auth/SKILL.md @@ -42,7 +42,7 @@ See the `references/` directory for detailed per-entity API documentation: - [phone-number](references/phone-number.md) - [crypto-address](references/crypto-address.md) - [webauthn-credential](references/webauthn-credential.md) -- [audit-log](references/audit-log.md) +- [audit-log-auth](references/audit-log-auth.md) - [identity-provider](references/identity-provider.md) - [role-type](references/role-type.md) - [user-connected-account](references/user-connected-account.md) @@ -67,10 +67,10 @@ See the `references/` directory for detailed per-entity API documentation: - [reset-password](references/reset-password.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) - [sign-up](references/sign-up.md) -- [request-cross-origin-token](references/request-cross-origin-token.md) - [sign-in](references/sign-in.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) +- [request-cross-origin-token](references/request-cross-origin-token.md) - [forgot-password](references/forgot-password.md) - [send-verification-email](references/send-verification-email.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-auth/references/audit-log-auth.md b/.agents/skills/hooks-auth/references/audit-log-auth.md new file mode 100644 index 0000000000..4764e57104 --- /dev/null +++ b/.agents/skills/hooks-auth/references/audit-log-auth.md @@ -0,0 +1,34 @@ +# auditLogAuth + + + +Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + +## Usage + +```typescript +useAuditLogAuthsQuery({ selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } } }) +useAuditLogAuthQuery({ id: '', selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } } }) +useCreateAuditLogAuthMutation({ selection: { fields: { id: true } } }) +useUpdateAuditLogAuthMutation({ selection: { fields: { id: true } } }) +useDeleteAuditLogAuthMutation({}) +``` + +## Examples + +### List all auditLogAuths + +```typescript +const { data, isLoading } = useAuditLogAuthsQuery({ + selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }, +}); +``` + +### Create a auditLogAuth + +```typescript +const { mutate } = useCreateAuditLogAuthMutation({ + selection: { fields: { id: true } }, +}); +mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); +``` diff --git a/.agents/skills/hooks-objects/references/commit.md b/.agents/skills/hooks-objects/references/commit.md index a6c4430011..d47f70910c 100644 --- a/.agents/skills/hooks-objects/references/commit.md +++ b/.agents/skills/hooks-objects/references/commit.md @@ -7,8 +7,8 @@ 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 } } }) +useCommitsQuery({ selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCommitQuery({ id: '', selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) useCreateCommitMutation({ selection: { fields: { id: true } } }) useUpdateCommitMutation({ selection: { fields: { id: true } } }) useDeleteCommitMutation({}) @@ -20,7 +20,7 @@ useDeleteCommitMutation({}) ```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 } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useCommitsQuery({ const { mutate } = useCreateCommitMutation({ selection: { fields: { id: true } }, }); -mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +mutate({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/freeze-objects.md b/.agents/skills/hooks-objects/references/freeze-objects.md index bbb6e628f3..2ab48606e5 100644 --- a/.agents/skills/hooks-objects/references/freeze-objects.md +++ b/.agents/skills/hooks-objects/references/freeze-objects.md @@ -7,7 +7,7 @@ React Query mutation hook for freezeObjects ## Usage ```typescript -const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); +const { mutate } = useFreezeObjectsMutation(); mutate({ input: { sId: '', id: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); +mutate({ input: { sId: '', id: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/get-all-objects-from-root.md b/.agents/skills/hooks-objects/references/get-all-objects-from-root.md index 8b80aa7df4..5725c7af0a 100644 --- a/.agents/skills/hooks-objects/references/get-all-objects-from-root.md +++ b/.agents/skills/hooks-objects/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) +useGetAllObjectsFromRootQuery({ sId: '', id: '', first: '', offset: '', after: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', id: '', first: '', offset: '', after: '' }); +const { data, isLoading } = useGetAllObjectsFromRootQuery({ sId: '', id: '', first: '', offset: '', after: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/get-object-at-path.md b/.agents/skills/hooks-objects/references/get-object-at-path.md index 7c01530d9d..8038eb7b3b 100644 --- a/.agents/skills/hooks-objects/references/get-object-at-path.md +++ b/.agents/skills/hooks-objects/references/get-object-at-path.md @@ -7,7 +7,7 @@ React Query query hook for getObjectAtPath ## Usage ```typescript -useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) +useGetObjectAtPathQuery({ sId: '', storeId: '', path: '', refname: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', r ### Use useGetObjectAtPathQuery ```typescript -const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); +const { data, isLoading } = useGetObjectAtPathQuery({ sId: '', storeId: '', path: '', refname: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/get-path-objects-from-root.md b/.agents/skills/hooks-objects/references/get-path-objects-from-root.md index 7a0bc57eda..cefdbc17ce 100644 --- a/.agents/skills/hooks-objects/references/get-path-objects-from-root.md +++ b/.agents/skills/hooks-objects/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) +useGetPathObjectsFromRootQuery({ sId: '', id: '', path: '', first: '', offset: '', after: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', id: '', path: '', first: '', offset: '', after: '' }); +const { data, isLoading } = useGetPathObjectsFromRootQuery({ sId: '', id: '', path: '', first: '', offset: '', after: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/init-empty-repo.md b/.agents/skills/hooks-objects/references/init-empty-repo.md index a6c8e875b4..2886faeeb7 100644 --- a/.agents/skills/hooks-objects/references/init-empty-repo.md +++ b/.agents/skills/hooks-objects/references/init-empty-repo.md @@ -7,7 +7,7 @@ React Query mutation hook for initEmptyRepo ## Usage ```typescript -const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', storeId: '' } }); +const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { sId: '', storeId: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useInitEmptyRepoMutation(); -mutate({ input: { dbId: '', storeId: '' } }); +mutate({ input: { sId: '', storeId: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/object.md b/.agents/skills/hooks-objects/references/object.md index 02b80242e6..cea5abc22d 100644 --- a/.agents/skills/hooks-objects/references/object.md +++ b/.agents/skills/hooks-objects/references/object.md @@ -7,8 +7,8 @@ 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 } } }) +useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) useCreateObjectMutation({ selection: { fields: { id: true } } }) useUpdateObjectMutation({ selection: { fields: { id: true } } }) useDeleteObjectMutation({}) @@ -20,7 +20,7 @@ useDeleteObjectMutation({}) ```typescript const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useObjectsQuery({ const { mutate } = useCreateObjectMutation({ selection: { fields: { id: true } }, }); -mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +mutate({ hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/ref.md b/.agents/skills/hooks-objects/references/ref.md index ec187041d4..64b4e891fe 100644 --- a/.agents/skills/hooks-objects/references/ref.md +++ b/.agents/skills/hooks-objects/references/ref.md @@ -7,8 +7,8 @@ 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 } } }) +useRefsQuery({ selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) +useRefQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) useCreateRefMutation({ selection: { fields: { id: true } } }) useUpdateRefMutation({ selection: { fields: { id: true } } }) useDeleteRefMutation({}) @@ -20,7 +20,7 @@ useDeleteRefMutation({}) ```typescript const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRefsQuery({ const { mutate } = useCreateRefMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); +mutate({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/remove-node-at-path.md b/.agents/skills/hooks-objects/references/remove-node-at-path.md index 49129cd05c..8c837ff704 100644 --- a/.agents/skills/hooks-objects/references/remove-node-at-path.md +++ b/.agents/skills/hooks-objects/references/remove-node-at-path.md @@ -7,7 +7,7 @@ React Query mutation hook for removeNodeAtPath ## Usage ```typescript -const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); +const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { sId: '', root: '', path: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); +mutate({ input: { sId: '', root: '', path: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/rev-parse.md b/.agents/skills/hooks-objects/references/rev-parse.md index eaaf37b062..75c8b24588 100644 --- a/.agents/skills/hooks-objects/references/rev-parse.md +++ b/.agents/skills/hooks-objects/references/rev-parse.md @@ -7,7 +7,7 @@ React Query query hook for revParse ## Usage ```typescript -useRevParseQuery({ dbId: '', storeId: '', refname: '' }) +useRevParseQuery({ sId: '', storeId: '', refname: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useRevParseQuery({ dbId: '', storeId: '', refname: '' }) ### Use useRevParseQuery ```typescript -const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); +const { data, isLoading } = useRevParseQuery({ sId: '', storeId: '', refname: '' }); ``` diff --git a/.agents/skills/hooks-objects/references/set-data-at-path.md b/.agents/skills/hooks-objects/references/set-data-at-path.md index e22c1a1cd5..dcb9adb0aa 100644 --- a/.agents/skills/hooks-objects/references/set-data-at-path.md +++ b/.agents/skills/hooks-objects/references/set-data-at-path.md @@ -7,7 +7,7 @@ React Query mutation hook for setDataAtPath ## Usage ```typescript -const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +const { mutate } = useSetDataAtPathMutation(); mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useSetDataAtPathMutation(); -mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/set-props-and-commit.md b/.agents/skills/hooks-objects/references/set-props-and-commit.md index b02527816a..b71f40bcf4 100644 --- a/.agents/skills/hooks-objects/references/set-props-and-commit.md +++ b/.agents/skills/hooks-objects/references/set-props-and-commit.md @@ -7,7 +7,7 @@ React Query mutation hook for setPropsAndCommit ## Usage ```typescript -const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); +const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); +mutate({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }); ``` diff --git a/.agents/skills/hooks-objects/references/store.md b/.agents/skills/hooks-objects/references/store.md index fd0c67b206..27d3b4bdbc 100644 --- a/.agents/skills/hooks-objects/references/store.md +++ b/.agents/skills/hooks-objects/references/store.md @@ -7,8 +7,8 @@ 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 } } }) +useStoresQuery({ selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) +useStoreQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) useCreateStoreMutation({ selection: { fields: { id: true } } }) useUpdateStoreMutation({ selection: { fields: { id: true } } }) useDeleteStoreMutation({}) @@ -20,7 +20,7 @@ useDeleteStoreMutation({}) ```typescript const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStoresQuery({ const { mutate } = useCreateStoreMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', hash: '' }); +mutate({ name: '', scopeId: '', hash: '' }); ``` diff --git a/.agents/skills/hooks-public/SKILL.md b/.agents/skills/hooks-public/SKILL.md index 27abfaa170..6e38eeec05 100644 --- a/.agents/skills/hooks-public/SKILL.md +++ b/.agents/skills/hooks-public/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-public -description: React Query hooks for the public API — provides typed query and mutation hooks for 148 tables and 69 custom operations +description: React Query hooks for the public API — provides typed query and mutation hooks for 151 tables and 69 custom operations --- # hooks-public -React Query hooks for the public API — provides typed query and mutation hooks for 148 tables and 69 custom operations +React Query hooks for the public API — provides typed query and mutation hooks for 151 tables and 69 custom operations ## Usage @@ -41,9 +41,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-managers-record](references/org-get-managers-record.md) - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [get-all-record](references/get-all-record.md) +- [object](references/object.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) -- [object](references/object.md) - [database](references/database.md) - [schema](references/schema.md) - [table](references/table.md) @@ -68,6 +68,7 @@ See the `references/` directory for detailed per-entity API documentation: - [session-secrets-module](references/session-secrets-module.md) - [identity-providers-module](references/identity-providers-module.md) - [realtime-module](references/realtime-module.md) +- [config-secrets-org-module](references/config-secrets-org-module.md) - [schema-grant](references/schema-grant.md) - [default-privilege](references/default-privilege.md) - [enum](references/enum.md) @@ -92,7 +93,7 @@ See the `references/` directory for detailed per-entity API documentation: - [default-ids-module](references/default-ids-module.md) - [denormalized-table-field](references/denormalized-table-field.md) - [emails-module](references/emails-module.md) -- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [config-secrets-user-module](references/config-secrets-user-module.md) - [invites-module](references/invites-module.md) - [events-module](references/events-module.md) - [limits-module](references/limits-module.md) @@ -113,6 +114,11 @@ See the `references/` directory for detailed per-entity API documentation: - [webauthn-credentials-module](references/webauthn-credentials-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) - [notifications-module](references/notifications-module.md) +- [inference-log-module](references/inference-log-module.md) +- [compute-log-module](references/compute-log-module.md) +- [transfer-log-module](references/transfer-log-module.md) +- [storage-log-module](references/storage-log-module.md) +- [db-usage-module](references/db-usage-module.md) - [database-provision-module](references/database-provision-module.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) @@ -142,48 +148,45 @@ See the `references/` directory for detailed per-entity API documentation: - [app-claimed-invite](references/app-claimed-invite.md) - [org-invite](references/org-invite.md) - [org-claimed-invite](references/org-claimed-invite.md) -- [audit-log](references/audit-log.md) -- [agent-thread](references/agent-thread.md) -- [agent-message](references/agent-message.md) -- [agent-task](references/agent-task.md) -- [role-type](references/role-type.md) +- [audit-log-auth](references/audit-log-auth.md) - [identity-provider](references/identity-provider.md) - [ref](references/ref.md) - [store](references/store.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) +- [role-type](references/role-type.md) +- [migrate-file](references/migrate-file.md) +- [devices-module](references/devices-module.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) +- [node-type-registry](references/node-type-registry.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) - [app-limit-cap](references/app-limit-cap.md) - [org-limit-cap](references/org-limit-cap.md) -- [membership-type](references/membership-type.md) -- [migrate-file](references/migrate-file.md) -- [devices-module](references/devices-module.md) -- [node-type-registry](references/node-type-registry.md) +- [user-connected-account](references/user-connected-account.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) - [app-limit-warning](references/app-limit-warning.md) -- [user-connected-account](references/user-connected-account.md) - [commit](references/commit.md) - [pubkey-setting](references/pubkey-setting.md) - [rate-limits-module](references/rate-limits-module.md) -- [usage-snapshot](references/usage-snapshot.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) +- [membership-type](references/membership-type.md) - [rls-setting](references/rls-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [rls-module](references/rls-module.md) +- [agent-chat-module](references/agent-chat-module.md) - [rate-limit-meters-module](references/rate-limit-meters-module.md) - [plans-module](references/plans-module.md) - [sql-action](references/sql-action.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [database-setting](references/database-setting.md) -- [billing-module](references/billing-module.md) -- [ast-migration](references/ast-migration.md) -- [user](references/user.md) - [org-membership-setting](references/org-membership-setting.md) -- [webauthn-setting](references/webauthn-setting.md) - [app-membership](references/app-membership.md) +- [user](references/user.md) +- [ast-migration](references/ast-migration.md) +- [webauthn-setting](references/webauthn-setting.md) +- [billing-module](references/billing-module.md) - [billing-provider-module](references/billing-provider-module.md) - [hierarchy-module](references/hierarchy-module.md) - [current-user-id](references/current-user-id.md) @@ -200,11 +203,11 @@ See the `references/` directory for detailed per-entity API documentation: - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) - [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [get-all-objects-from-root](references/get-all-objects-from-root.md) - [get-path-objects-from-root](references/get-path-objects-from-root.md) - [get-object-at-path](references/get-object-at-path.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [current-user](references/current-user.md) - [send-account-deletion-email](references/send-account-deletion-email.md) - [sign-out](references/sign-out.md) @@ -230,7 +233,10 @@ See the `references/` directory for detailed per-entity API documentation: - [remove-node-at-path](references/remove-node-at-path.md) - [copy-template-to-blueprint](references/copy-template-to-blueprint.md) - [provision-spatial-relation](references/provision-spatial-relation.md) +- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [bootstrap-user](references/bootstrap-user.md) +- [sign-up](references/sign-up.md) +- [sign-in](references/sign-in.md) - [set-field-order](references/set-field-order.md) - [provision-check-constraint](references/provision-check-constraint.md) - [provision-unique-constraint](references/provision-unique-constraint.md) @@ -244,14 +250,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-and-commit](references/set-and-commit.md) - [provision-relation](references/provision-relation.md) - [apply-rls](references/apply-rls.md) -- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [create-user-database](references/create-user-database.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) -- [sign-up](references/sign-up.md) - [request-cross-origin-token](references/request-cross-origin-token.md) -- [sign-in](references/sign-in.md) - [provision-table](references/provision-table.md) +- [send-verification-email](references/send-verification-email.md) +- [forgot-password](references/forgot-password.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-public/references/agent-chat-module.md b/.agents/skills/hooks-public/references/agent-chat-module.md new file mode 100644 index 0000000000..b9b88acae1 --- /dev/null +++ b/.agents/skills/hooks-public/references/agent-chat-module.md @@ -0,0 +1,34 @@ +# agentChatModule + + + +React Query hooks for AgentChatModule data operations + +## Usage + +```typescript +useAgentChatModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: true } } }) +useAgentChatModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: true } } }) +useCreateAgentChatModuleMutation({ selection: { fields: { id: true } } }) +useUpdateAgentChatModuleMutation({ selection: { fields: { id: true } } }) +useDeleteAgentChatModuleMutation({}) +``` + +## Examples + +### List all agentChatModules + +```typescript +const { data, isLoading } = useAgentChatModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: true } }, +}); +``` + +### Create a agentChatModule + +```typescript +const { mutate } = useCreateAgentChatModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', apiId: '', threadTableId: '', threadTableName: '', messageTableId: '', messageTableName: '', taskTableId: '', taskTableName: '', prefix: '' }); +``` diff --git a/.agents/skills/hooks-public/references/app-limit-event.md b/.agents/skills/hooks-public/references/app-limit-event.md index d67a98c768..76524be944 100644 --- a/.agents/skills/hooks-public/references/app-limit-event.md +++ b/.agents/skills/hooks-public/references/app-limit-event.md @@ -7,8 +7,11 @@ Append-only log of limit events for historical reporting and audit ## Usage ```typescript -useAppLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useAppLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useAppLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateAppLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteAppLimitEventMutation({}) ``` ## Examples @@ -17,7 +20,7 @@ useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) ```typescript const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); ``` diff --git a/.agents/skills/hooks-public/references/audit-log-auth.md b/.agents/skills/hooks-public/references/audit-log-auth.md new file mode 100644 index 0000000000..4764e57104 --- /dev/null +++ b/.agents/skills/hooks-public/references/audit-log-auth.md @@ -0,0 +1,34 @@ +# auditLogAuth + + + +Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + +## Usage + +```typescript +useAuditLogAuthsQuery({ selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } } }) +useAuditLogAuthQuery({ id: '', selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } } }) +useCreateAuditLogAuthMutation({ selection: { fields: { id: true } } }) +useUpdateAuditLogAuthMutation({ selection: { fields: { id: true } } }) +useDeleteAuditLogAuthMutation({}) +``` + +## Examples + +### List all auditLogAuths + +```typescript +const { data, isLoading } = useAuditLogAuthsQuery({ + selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }, +}); +``` + +### Create a auditLogAuth + +```typescript +const { mutate } = useCreateAuditLogAuthMutation({ + selection: { fields: { id: true } }, +}); +mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); +``` diff --git a/.agents/skills/hooks-public/references/billing-module.md b/.agents/skills/hooks-public/references/billing-module.md index 8501e0aa38..307e504dac 100644 --- a/.agents/skills/hooks-public/references/billing-module.md +++ b/.agents/skills/hooks-public/references/billing-module.md @@ -7,8 +7,8 @@ React Query hooks for BillingModule data operations ## Usage ```typescript -useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } } }) -useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } } }) +useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } } }) +useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } } }) useCreateBillingModuleMutation({ selection: { fields: { id: true } } }) useUpdateBillingModuleMutation({ selection: { fields: { id: true } } }) useDeleteBillingModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteBillingModuleMutation({}) ```typescript const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBillingModulesQuery({ const { mutate } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }); ``` diff --git a/.agents/skills/hooks-public/references/commit.md b/.agents/skills/hooks-public/references/commit.md index a6c4430011..d47f70910c 100644 --- a/.agents/skills/hooks-public/references/commit.md +++ b/.agents/skills/hooks-public/references/commit.md @@ -7,8 +7,8 @@ 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 } } }) +useCommitsQuery({ selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) +useCommitQuery({ id: '', selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) useCreateCommitMutation({ selection: { fields: { id: true } } }) useUpdateCommitMutation({ selection: { fields: { id: true } } }) useDeleteCommitMutation({}) @@ -20,7 +20,7 @@ useDeleteCommitMutation({}) ```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 } }, + selection: { fields: { id: true, message: true, scopeId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useCommitsQuery({ const { mutate } = useCreateCommitMutation({ selection: { fields: { id: true } }, }); -mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +mutate({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` diff --git a/.agents/skills/hooks-public/references/compute-log-module.md b/.agents/skills/hooks-public/references/compute-log-module.md new file mode 100644 index 0000000000..e57ab1b035 --- /dev/null +++ b/.agents/skills/hooks-public/references/compute-log-module.md @@ -0,0 +1,34 @@ +# computeLogModule + + + +React Query hooks for ComputeLogModule data operations + +## Usage + +```typescript +useComputeLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) +useComputeLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) +useCreateComputeLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateComputeLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteComputeLogModuleMutation({}) +``` + +## Examples + +### List all computeLogModules + +```typescript +const { data, isLoading } = useComputeLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, +}); +``` + +### Create a computeLogModule + +```typescript +const { mutate } = useCreateComputeLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); +``` diff --git a/.agents/skills/hooks-public/references/config-secrets-org-module.md b/.agents/skills/hooks-public/references/config-secrets-org-module.md new file mode 100644 index 0000000000..2ef82ecff1 --- /dev/null +++ b/.agents/skills/hooks-public/references/config-secrets-org-module.md @@ -0,0 +1,34 @@ +# configSecretsOrgModule + + + +Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + +## Usage + +```typescript +useConfigSecretsOrgModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useConfigSecretsOrgModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useCreateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) +useUpdateConfigSecretsOrgModuleMutation({ selection: { fields: { id: true } } }) +useDeleteConfigSecretsOrgModuleMutation({}) +``` + +## Examples + +### List all configSecretsOrgModules + +```typescript +const { data, isLoading } = useConfigSecretsOrgModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a configSecretsOrgModule + +```typescript +const { mutate } = useCreateConfigSecretsOrgModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/.agents/skills/hooks-public/references/config-secrets-user-module.md b/.agents/skills/hooks-public/references/config-secrets-user-module.md new file mode 100644 index 0000000000..7f6c855ee2 --- /dev/null +++ b/.agents/skills/hooks-public/references/config-secrets-user-module.md @@ -0,0 +1,34 @@ +# configSecretsUserModule + + + +React Query hooks for ConfigSecretsUserModule data operations + +## Usage + +```typescript +useConfigSecretsUserModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useConfigSecretsUserModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } } }) +useCreateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) +useUpdateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } } }) +useDeleteConfigSecretsUserModuleMutation({}) +``` + +## Examples + +### List all configSecretsUserModules + +```typescript +const { data, isLoading } = useConfigSecretsUserModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); +``` + +### Create a configSecretsUserModule + +```typescript +const { mutate } = useCreateConfigSecretsUserModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` diff --git a/.agents/skills/hooks-public/references/construct-blueprint.md b/.agents/skills/hooks-public/references/construct-blueprint.md index 0e082c469c..a7ea6581a2 100644 --- a/.agents/skills/hooks-public/references/construct-blueprint.md +++ b/.agents/skills/hooks-public/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. ## Usage diff --git a/.agents/skills/hooks-public/references/db-usage-module.md b/.agents/skills/hooks-public/references/db-usage-module.md new file mode 100644 index 0000000000..33b68aa1ac --- /dev/null +++ b/.agents/skills/hooks-public/references/db-usage-module.md @@ -0,0 +1,34 @@ +# dbUsageModule + + + +React Query hooks for DbUsageModule data operations + +## Usage + +```typescript +useDbUsageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } } }) +useDbUsageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } } }) +useCreateDbUsageModuleMutation({ selection: { fields: { id: true } } }) +useUpdateDbUsageModuleMutation({ selection: { fields: { id: true } } }) +useDeleteDbUsageModuleMutation({}) +``` + +## Examples + +### List all dbUsageModules + +```typescript +const { data, isLoading } = useDbUsageModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }, +}); +``` + +### Create a dbUsageModule + +```typescript +const { mutate } = useCreateDbUsageModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }); +``` diff --git a/.agents/skills/hooks-public/references/freeze-objects.md b/.agents/skills/hooks-public/references/freeze-objects.md index bbb6e628f3..2ab48606e5 100644 --- a/.agents/skills/hooks-public/references/freeze-objects.md +++ b/.agents/skills/hooks-public/references/freeze-objects.md @@ -7,7 +7,7 @@ React Query mutation hook for freezeObjects ## Usage ```typescript -const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); +const { mutate } = useFreezeObjectsMutation(); mutate({ input: { sId: '', id: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useFreezeObjectsMutation(); mutate({ input: { databaseId: '', id: '' } }); +mutate({ input: { sId: '', id: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/get-all-objects-from-root.md b/.agents/skills/hooks-public/references/get-all-objects-from-root.md index 8b80aa7df4..5725c7af0a 100644 --- a/.agents/skills/hooks-public/references/get-all-objects-from-root.md +++ b/.agents/skills/hooks-public/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) +useGetAllObjectsFromRootQuery({ sId: '', id: '', first: '', offset: '', after: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', id: '', first: '', offset: '', after: '' }); +const { data, isLoading } = useGetAllObjectsFromRootQuery({ sId: '', id: '', first: '', offset: '', after: '' }); ``` diff --git a/.agents/skills/hooks-public/references/get-object-at-path.md b/.agents/skills/hooks-public/references/get-object-at-path.md index 7c01530d9d..8038eb7b3b 100644 --- a/.agents/skills/hooks-public/references/get-object-at-path.md +++ b/.agents/skills/hooks-public/references/get-object-at-path.md @@ -7,7 +7,7 @@ React Query query hook for getObjectAtPath ## Usage ```typescript -useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) +useGetObjectAtPathQuery({ sId: '', storeId: '', path: '', refname: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', r ### Use useGetObjectAtPathQuery ```typescript -const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); +const { data, isLoading } = useGetObjectAtPathQuery({ sId: '', storeId: '', path: '', refname: '' }); ``` diff --git a/.agents/skills/hooks-public/references/get-path-objects-from-root.md b/.agents/skills/hooks-public/references/get-path-objects-from-root.md index 7a0bc57eda..cefdbc17ce 100644 --- a/.agents/skills/hooks-public/references/get-path-objects-from-root.md +++ b/.agents/skills/hooks-public/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) +useGetPathObjectsFromRootQuery({ sId: '', id: '', path: '', first: '', offset: '', after: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', id: '', path: '', first: '', offset: '', after: '' }); +const { data, isLoading } = useGetPathObjectsFromRootQuery({ sId: '', id: '', path: '', first: '', offset: '', after: '' }); ``` diff --git a/.agents/skills/hooks-public/references/inference-log-module.md b/.agents/skills/hooks-public/references/inference-log-module.md new file mode 100644 index 0000000000..09627ca729 --- /dev/null +++ b/.agents/skills/hooks-public/references/inference-log-module.md @@ -0,0 +1,34 @@ +# inferenceLogModule + + + +React Query hooks for InferenceLogModule data operations + +## Usage + +```typescript +useInferenceLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) +useInferenceLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) +useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteInferenceLogModuleMutation({}) +``` + +## Examples + +### List all inferenceLogModules + +```typescript +const { data, isLoading } = useInferenceLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, +}); +``` + +### Create a inferenceLogModule + +```typescript +const { mutate } = useCreateInferenceLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); +``` diff --git a/.agents/skills/hooks-public/references/init-empty-repo.md b/.agents/skills/hooks-public/references/init-empty-repo.md index a6c8e875b4..2886faeeb7 100644 --- a/.agents/skills/hooks-public/references/init-empty-repo.md +++ b/.agents/skills/hooks-public/references/init-empty-repo.md @@ -7,7 +7,7 @@ React Query mutation hook for initEmptyRepo ## Usage ```typescript -const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', storeId: '' } }); +const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { sId: '', storeId: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useInitEmptyRepoMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useInitEmptyRepoMutation(); -mutate({ input: { dbId: '', storeId: '' } }); +mutate({ input: { sId: '', storeId: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/object.md b/.agents/skills/hooks-public/references/object.md index 02b80242e6..cea5abc22d 100644 --- a/.agents/skills/hooks-public/references/object.md +++ b/.agents/skills/hooks-public/references/object.md @@ -7,8 +7,8 @@ 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 } } }) +useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) +useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) useCreateObjectMutation({ selection: { fields: { id: true } } }) useUpdateObjectMutation({ selection: { fields: { id: true } } }) useDeleteObjectMutation({}) @@ -20,7 +20,7 @@ useDeleteObjectMutation({}) ```typescript const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useObjectsQuery({ const { mutate } = useCreateObjectMutation({ selection: { fields: { id: true } }, }); -mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +mutate({ hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }); ``` diff --git a/.agents/skills/hooks-public/references/org-limit-event.md b/.agents/skills/hooks-public/references/org-limit-event.md index 4055f0c39e..c3bab2354e 100644 --- a/.agents/skills/hooks-public/references/org-limit-event.md +++ b/.agents/skills/hooks-public/references/org-limit-event.md @@ -7,8 +7,11 @@ Append-only log of limit events for historical reporting and audit ## Usage ```typescript -useOrgLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useOrgLimitEventsQuery({ selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useOrgLimitEventQuery({ id: '', selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitEventMutation({}) ``` ## Examples @@ -17,7 +20,7 @@ useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) ```typescript const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); ``` diff --git a/.agents/skills/hooks-public/references/partition.md b/.agents/skills/hooks-public/references/partition.md index 7f32eed30d..767583706d 100644 --- a/.agents/skills/hooks-public/references/partition.md +++ b/.agents/skills/hooks-public/references/partition.md @@ -7,8 +7,8 @@ React Query hooks for Partition data operations ## Usage ```typescript -usePartitionsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } } }) -usePartitionQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } } }) +usePartitionsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } } }) +usePartitionQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } } }) useCreatePartitionMutation({ selection: { fields: { id: true } } }) useUpdatePartitionMutation({ selection: { fields: { id: true } } }) useDeletePartitionMutation({}) @@ -20,7 +20,7 @@ useDeletePartitionMutation({}) ```typescript const { data, isLoading } = usePartitionsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePartitionsQuery({ const { mutate } = useCreatePartitionMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }); +mutate({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }); ``` diff --git a/.agents/skills/hooks-public/references/ref.md b/.agents/skills/hooks-public/references/ref.md index ec187041d4..64b4e891fe 100644 --- a/.agents/skills/hooks-public/references/ref.md +++ b/.agents/skills/hooks-public/references/ref.md @@ -7,8 +7,8 @@ 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 } } }) +useRefsQuery({ selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) +useRefQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } } }) useCreateRefMutation({ selection: { fields: { id: true } } }) useUpdateRefMutation({ selection: { fields: { id: true } } }) useDeleteRefMutation({}) @@ -20,7 +20,7 @@ useDeleteRefMutation({}) ```typescript const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRefsQuery({ const { mutate } = useCreateRefMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); +mutate({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` diff --git a/.agents/skills/hooks-public/references/remove-node-at-path.md b/.agents/skills/hooks-public/references/remove-node-at-path.md index 49129cd05c..8c837ff704 100644 --- a/.agents/skills/hooks-public/references/remove-node-at-path.md +++ b/.agents/skills/hooks-public/references/remove-node-at-path.md @@ -7,7 +7,7 @@ React Query mutation hook for removeNodeAtPath ## Usage ```typescript -const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); +const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { sId: '', root: '', path: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '' } }); +mutate({ input: { sId: '', root: '', path: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/rev-parse.md b/.agents/skills/hooks-public/references/rev-parse.md index eaaf37b062..75c8b24588 100644 --- a/.agents/skills/hooks-public/references/rev-parse.md +++ b/.agents/skills/hooks-public/references/rev-parse.md @@ -7,7 +7,7 @@ React Query query hook for revParse ## Usage ```typescript -useRevParseQuery({ dbId: '', storeId: '', refname: '' }) +useRevParseQuery({ sId: '', storeId: '', refname: '' }) ``` ## Examples @@ -15,5 +15,5 @@ useRevParseQuery({ dbId: '', storeId: '', refname: '' }) ### Use useRevParseQuery ```typescript -const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); +const { data, isLoading } = useRevParseQuery({ sId: '', storeId: '', refname: '' }); ``` diff --git a/.agents/skills/hooks-public/references/set-data-at-path.md b/.agents/skills/hooks-public/references/set-data-at-path.md index e22c1a1cd5..dcb9adb0aa 100644 --- a/.agents/skills/hooks-public/references/set-data-at-path.md +++ b/.agents/skills/hooks-public/references/set-data-at-path.md @@ -7,7 +7,7 @@ React Query mutation hook for setDataAtPath ## Usage ```typescript -const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +const { mutate } = useSetDataAtPathMutation(); mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetDataAtPathMutation(); mutate({ input: { dbId: '', ```typescript const { mutate, isLoading } = useSetDataAtPathMutation(); -mutate({ input: { dbId: '', root: '', path: '', data: '' } }); +mutate({ input: { sId: '', root: '', path: '', data: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/set-props-and-commit.md b/.agents/skills/hooks-public/references/set-props-and-commit.md index b02527816a..b71f40bcf4 100644 --- a/.agents/skills/hooks-public/references/set-props-and-commit.md +++ b/.agents/skills/hooks-public/references/set-props-and-commit.md @@ -7,7 +7,7 @@ React Query mutation hook for setPropsAndCommit ## Usage ```typescript -const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); +const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }); ``` ## Examples @@ -16,5 +16,5 @@ const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }); +mutate({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }); ``` diff --git a/.agents/skills/hooks-public/references/storage-log-module.md b/.agents/skills/hooks-public/references/storage-log-module.md new file mode 100644 index 0000000000..60e48f80ff --- /dev/null +++ b/.agents/skills/hooks-public/references/storage-log-module.md @@ -0,0 +1,34 @@ +# storageLogModule + + + +React Query hooks for StorageLogModule data operations + +## Usage + +```typescript +useStorageLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) +useStorageLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) +useCreateStorageLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateStorageLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteStorageLogModuleMutation({}) +``` + +## Examples + +### List all storageLogModules + +```typescript +const { data, isLoading } = useStorageLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, +}); +``` + +### Create a storageLogModule + +```typescript +const { mutate } = useCreateStorageLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); +``` diff --git a/.agents/skills/hooks-public/references/storage-module.md b/.agents/skills/hooks-public/references/storage-module.md index 36f889c71d..de468fa9b2 100644 --- a/.agents/skills/hooks-public/references/storage-module.md +++ b/.agents/skills/hooks-public/references/storage-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageModule data operations ## Usage ```typescript -useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) +useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } } }) useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageModuleMutation({}) ```typescript const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); ``` diff --git a/.agents/skills/hooks-public/references/store.md b/.agents/skills/hooks-public/references/store.md index fd0c67b206..27d3b4bdbc 100644 --- a/.agents/skills/hooks-public/references/store.md +++ b/.agents/skills/hooks-public/references/store.md @@ -7,8 +7,8 @@ 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 } } }) +useStoresQuery({ selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) +useStoreQuery({ id: '', selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } } }) useCreateStoreMutation({ selection: { fields: { id: true } } }) useUpdateStoreMutation({ selection: { fields: { id: true } } }) useDeleteStoreMutation({}) @@ -20,7 +20,7 @@ useDeleteStoreMutation({}) ```typescript const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStoresQuery({ const { mutate } = useCreateStoreMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', databaseId: '', hash: '' }); +mutate({ name: '', scopeId: '', hash: '' }); ``` diff --git a/.agents/skills/hooks-public/references/transfer-log-module.md b/.agents/skills/hooks-public/references/transfer-log-module.md new file mode 100644 index 0000000000..926ec45e6a --- /dev/null +++ b/.agents/skills/hooks-public/references/transfer-log-module.md @@ -0,0 +1,34 @@ +# transferLogModule + + + +React Query hooks for TransferLogModule data operations + +## Usage + +```typescript +useTransferLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) +useTransferLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } } }) +useCreateTransferLogModuleMutation({ selection: { fields: { id: true } } }) +useUpdateTransferLogModuleMutation({ selection: { fields: { id: true } } }) +useDeleteTransferLogModuleMutation({}) +``` + +## Examples + +### List all transferLogModules + +```typescript +const { data, isLoading } = useTransferLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, +}); +``` + +### Create a transferLogModule + +```typescript +const { mutate } = useCreateTransferLogModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); +``` diff --git a/.agents/skills/orm-admin/SKILL.md b/.agents/skills/orm-admin/SKILL.md index b4f5b2d280..a70ddfb7f6 100644 --- a/.agents/skills/orm-admin/SKILL.md +++ b/.agents/skills/orm-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-admin -description: ORM client for the admin API — provides typed CRUD operations for 45 tables and 12 custom operations +description: ORM client for the admin API — provides typed CRUD operations for 44 tables and 12 custom operations --- # orm-admin -ORM client for the admin API — provides typed CRUD operations for 45 tables and 12 custom operations +ORM client for the admin API — provides typed CRUD operations for 44 tables and 12 custom operations ## Usage @@ -46,42 +46,41 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-credit](references/app-limit-credit.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) -- [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) +- [org-permission-default](references/org-permission-default.md) +- [app-membership-default](references/app-membership-default.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-membership-default](references/org-membership-default.md) +- [org-owner-grant](references/org-owner-grant.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) - [app-limit-cap](references/app-limit-cap.md) - [org-limit-cap](references/org-limit-cap.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [membership-type](references/membership-type.md) +- [org-chart-edge](references/org-chart-edge.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) - [org-limit-credit](references/org-limit-credit.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) - [app-limit-warning](references/app-limit-warning.md) -- [org-limit-warning](references/org-limit-warning.md) - [org-chart-edge-grant](references/org-chart-edge-grant.md) - [app-claimed-invite](references/app-claimed-invite.md) +- [org-limit-warning](references/org-limit-warning.md) +- [membership-type](references/membership-type.md) - [app-grant](references/app-grant.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) +- [org-grant](references/org-grant.md) - [app-limit-event](references/app-limit-event.md) - [org-limit-event](references/org-limit-event.md) -- [org-grant](references/org-grant.md) -- [org-chart-edge](references/org-chart-edge.md) -- [usage-snapshot](references/usage-snapshot.md) -- [app-limit](references/app-limit.md) -- [app-invite](references/app-invite.md) - [org-membership-setting](references/org-membership-setting.md) +- [app-membership](references/app-membership.md) +- [app-limit](references/app-limit.md) +- [org-membership](references/org-membership.md) +- [org-member-profile](references/org-member-profile.md) - [org-limit-aggregate](references/org-limit-aggregate.md) - [org-limit](references/org-limit.md) -- [org-member-profile](references/org-member-profile.md) -- [app-membership](references/app-membership.md) +- [app-invite](references/app-invite.md) - [org-invite](references/org-invite.md) -- [org-membership](references/org-membership.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) - [org-is-manager-of](references/org-is-manager-of.md) diff --git a/.agents/skills/orm-auth/SKILL.md b/.agents/skills/orm-auth/SKILL.md index fca9cc2752..f0d0d3d01a 100644 --- a/.agents/skills/orm-auth/SKILL.md +++ b/.agents/skills/orm-auth/SKILL.md @@ -15,7 +15,7 @@ ORM client for the auth API — provides typed CRUD operations for 9 tables and // Import the ORM client import { db } from './orm'; -// Available models: email, phoneNumber, cryptoAddress, webauthnCredential, auditLog, identityProvider, roleType, userConnectedAccount, ... +// Available models: email, phoneNumber, cryptoAddress, webauthnCredential, auditLogAuth, identityProvider, roleType, userConnectedAccount, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -41,7 +41,7 @@ See the `references/` directory for detailed per-entity API documentation: - [phone-number](references/phone-number.md) - [crypto-address](references/crypto-address.md) - [webauthn-credential](references/webauthn-credential.md) -- [audit-log](references/audit-log.md) +- [audit-log-auth](references/audit-log-auth.md) - [identity-provider](references/identity-provider.md) - [role-type](references/role-type.md) - [user-connected-account](references/user-connected-account.md) @@ -66,10 +66,10 @@ See the `references/` directory for detailed per-entity API documentation: - [reset-password](references/reset-password.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) - [sign-up](references/sign-up.md) -- [request-cross-origin-token](references/request-cross-origin-token.md) - [sign-in](references/sign-in.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) +- [request-cross-origin-token](references/request-cross-origin-token.md) - [forgot-password](references/forgot-password.md) - [send-verification-email](references/send-verification-email.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-auth/references/audit-log-auth.md b/.agents/skills/orm-auth/references/audit-log-auth.md new file mode 100644 index 0000000000..0ad392c546 --- /dev/null +++ b/.agents/skills/orm-auth/references/audit-log-auth.md @@ -0,0 +1,34 @@ +# auditLogAuth + + + +Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + +## Usage + +```typescript +db.auditLogAuth.findMany({ select: { id: true } }).execute() +db.auditLogAuth.findOne({ id: '', select: { id: true } }).execute() +db.auditLogAuth.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() +db.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() +db.auditLogAuth.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all auditLogAuth records + +```typescript +const items = await db.auditLogAuth.findMany({ + select: { id: true, event: true } +}).execute(); +``` + +### Create a auditLogAuth + +```typescript +const item = await db.auditLogAuth.create({ + data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-objects/references/commit.md b/.agents/skills/orm-objects/references/commit.md index b3e1b59c39..6b9ec65906 100644 --- a/.agents/skills/orm-objects/references/commit.md +++ b/.agents/skills/orm-objects/references/commit.md @@ -9,7 +9,7 @@ A commit records changes to the repository. ```typescript db.commit.findMany({ select: { id: true } }).execute() db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() db.commit.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.commit.findMany({ ```typescript const item = await db.commit.create({ - data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, + data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/freeze-objects.md b/.agents/skills/orm-objects/references/freeze-objects.md index 110be1e17b..7e943be68e 100644 --- a/.agents/skills/orm-objects/references/freeze-objects.md +++ b/.agents/skills/orm-objects/references/freeze-objects.md @@ -7,7 +7,7 @@ Execute the freezeObjects mutation ## Usage ```typescript -db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute() +db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).exe ### Run freezeObjects ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/get-all-objects-from-root.md b/.agents/skills/orm-objects/references/get-all-objects-from-root.md index b7f2f7210e..9234ed582f 100644 --- a/.agents/skills/orm-objects/references/get-all-objects-from-root.md +++ b/.agents/skills/orm-objects/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() +db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/get-object-at-path.md b/.agents/skills/orm-objects/references/get-object-at-path.md index cdf5df837b..de47977f32 100644 --- a/.agents/skills/orm-objects/references/get-object-at-path.md +++ b/.agents/skills/orm-objects/references/get-object-at-path.md @@ -7,7 +7,7 @@ Execute the getObjectAtPath query ## Usage ```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() +db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', ### Run getObjectAtPath ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/get-path-objects-from-root.md b/.agents/skills/orm-objects/references/get-path-objects-from-root.md index 663305d3fd..e7280a240a 100644 --- a/.agents/skills/orm-objects/references/get-path-objects-from-root.md +++ b/.agents/skills/orm-objects/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() +db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/init-empty-repo.md b/.agents/skills/orm-objects/references/init-empty-repo.md index 00eb301388..9134c92d86 100644 --- a/.agents/skills/orm-objects/references/init-empty-repo.md +++ b/.agents/skills/orm-objects/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```typescript -db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute() +db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).exec ### Run initEmptyRepo ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/object.md b/.agents/skills/orm-objects/references/object.md index 130fc55c2f..aad69373d6 100644 --- a/.agents/skills/orm-objects/references/object.md +++ b/.agents/skills/orm-objects/references/object.md @@ -9,7 +9,7 @@ ORM operations for Object records ```typescript db.object.findMany({ select: { id: true } }).execute() db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() +db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() db.object.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.object.findMany({ ```typescript const item = await db.object.create({ - data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, + data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/ref.md b/.agents/skills/orm-objects/references/ref.md index 56499466ae..294d1f88c9 100644 --- a/.agents/skills/orm-objects/references/ref.md +++ b/.agents/skills/orm-objects/references/ref.md @@ -9,7 +9,7 @@ A ref is a data structure for pointing to a commit. ```typescript db.ref.findMany({ select: { id: true } }).execute() db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.ref.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.ref.findMany({ ```typescript const item = await db.ref.create({ - data: { name: '', databaseId: '', storeId: '', commitId: '' }, + data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/remove-node-at-path.md b/.agents/skills/orm-objects/references/remove-node-at-path.md index 84d7fdbbf2..cebd5201d4 100644 --- a/.agents/skills/orm-objects/references/remove-node-at-path.md +++ b/.agents/skills/orm-objects/references/remove-node-at-path.md @@ -7,7 +7,7 @@ Execute the removeNodeAtPath mutation ## Usage ```typescript -db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute() +db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '< ### Run removeNodeAtPath ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/rev-parse.md b/.agents/skills/orm-objects/references/rev-parse.md index 7fffc37e47..35525be0e4 100644 --- a/.agents/skills/orm-objects/references/rev-parse.md +++ b/.agents/skills/orm-objects/references/rev-parse.md @@ -7,7 +7,7 @@ Execute the revParse query ## Usage ```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() +db.query.revParse({ sId: '', storeId: '', refname: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.revParse({ dbId: '', storeId: '', refname: '' }).ex ### Run revParse ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/set-data-at-path.md b/.agents/skills/orm-objects/references/set-data-at-path.md index 6098a15a51..4176ca275b 100644 --- a/.agents/skills/orm-objects/references/set-data-at-path.md +++ b/.agents/skills/orm-objects/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```typescript -db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute() +db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/set-props-and-commit.md b/.agents/skills/orm-objects/references/set-props-and-commit.md index c5573289b9..9991d36029 100644 --- a/.agents/skills/orm-objects/references/set-props-and-commit.md +++ b/.agents/skills/orm-objects/references/set-props-and-commit.md @@ -7,7 +7,7 @@ Execute the setPropsAndCommit mutation ## Usage ```typescript -db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute() +db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refn ### Run setPropsAndCommit ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` diff --git a/.agents/skills/orm-objects/references/store.md b/.agents/skills/orm-objects/references/store.md index 63f88e898e..8c6fb84921 100644 --- a/.agents/skills/orm-objects/references/store.md +++ b/.agents/skills/orm-objects/references/store.md @@ -9,7 +9,7 @@ A store represents an isolated object repository within a database. ```typescript db.store.findMany({ select: { id: true } }).execute() db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute() db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.store.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.store.findMany({ ```typescript const item = await db.store.create({ - data: { name: '', databaseId: '', hash: '' }, + data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/SKILL.md b/.agents/skills/orm-public/SKILL.md index 0d220c10e9..1b550ae10a 100644 --- a/.agents/skills/orm-public/SKILL.md +++ b/.agents/skills/orm-public/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-public -description: ORM client for the public API — provides typed CRUD operations for 148 tables and 69 custom operations +description: ORM client for the public API — provides typed CRUD operations for 151 tables and 69 custom operations --- # orm-public -ORM client for the public API — provides typed CRUD operations for 148 tables and 69 custom operations +ORM client for the public API — provides typed CRUD operations for 151 tables and 69 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the public API — provides typed CRUD operations for 148 tables // Import the ORM client import { db } from './orm'; -// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, getAllRecord, appPermission, orgPermission, object, database, schema, ... +// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, getAllRecord, object, appPermission, orgPermission, database, schema, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -40,9 +40,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-managers-record](references/org-get-managers-record.md) - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [get-all-record](references/get-all-record.md) +- [object](references/object.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) -- [object](references/object.md) - [database](references/database.md) - [schema](references/schema.md) - [table](references/table.md) @@ -67,6 +67,7 @@ See the `references/` directory for detailed per-entity API documentation: - [session-secrets-module](references/session-secrets-module.md) - [identity-providers-module](references/identity-providers-module.md) - [realtime-module](references/realtime-module.md) +- [config-secrets-org-module](references/config-secrets-org-module.md) - [schema-grant](references/schema-grant.md) - [default-privilege](references/default-privilege.md) - [enum](references/enum.md) @@ -91,7 +92,7 @@ See the `references/` directory for detailed per-entity API documentation: - [default-ids-module](references/default-ids-module.md) - [denormalized-table-field](references/denormalized-table-field.md) - [emails-module](references/emails-module.md) -- [encrypted-secrets-module](references/encrypted-secrets-module.md) +- [config-secrets-user-module](references/config-secrets-user-module.md) - [invites-module](references/invites-module.md) - [events-module](references/events-module.md) - [limits-module](references/limits-module.md) @@ -112,6 +113,11 @@ See the `references/` directory for detailed per-entity API documentation: - [webauthn-credentials-module](references/webauthn-credentials-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) - [notifications-module](references/notifications-module.md) +- [inference-log-module](references/inference-log-module.md) +- [compute-log-module](references/compute-log-module.md) +- [transfer-log-module](references/transfer-log-module.md) +- [storage-log-module](references/storage-log-module.md) +- [db-usage-module](references/db-usage-module.md) - [database-provision-module](references/database-provision-module.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) @@ -141,48 +147,45 @@ See the `references/` directory for detailed per-entity API documentation: - [app-claimed-invite](references/app-claimed-invite.md) - [org-invite](references/org-invite.md) - [org-claimed-invite](references/org-claimed-invite.md) -- [audit-log](references/audit-log.md) -- [agent-thread](references/agent-thread.md) -- [agent-message](references/agent-message.md) -- [agent-task](references/agent-task.md) -- [role-type](references/role-type.md) +- [audit-log-auth](references/audit-log-auth.md) - [identity-provider](references/identity-provider.md) - [ref](references/ref.md) - [store](references/store.md) - [app-permission-default](references/app-permission-default.md) -- [app-limit-credit-code](references/app-limit-credit-code.md) +- [role-type](references/role-type.md) +- [migrate-file](references/migrate-file.md) +- [devices-module](references/devices-module.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) +- [node-type-registry](references/node-type-registry.md) - [app-limit-caps-default](references/app-limit-caps-default.md) - [org-limit-caps-default](references/org-limit-caps-default.md) - [app-limit-cap](references/app-limit-cap.md) - [org-limit-cap](references/org-limit-cap.md) -- [membership-type](references/membership-type.md) -- [migrate-file](references/migrate-file.md) -- [devices-module](references/devices-module.md) -- [node-type-registry](references/node-type-registry.md) +- [user-connected-account](references/user-connected-account.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) +- [app-limit-credit-code](references/app-limit-credit-code.md) - [app-limit-warning](references/app-limit-warning.md) -- [user-connected-account](references/user-connected-account.md) - [commit](references/commit.md) - [pubkey-setting](references/pubkey-setting.md) - [rate-limits-module](references/rate-limits-module.md) -- [usage-snapshot](references/usage-snapshot.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) +- [membership-type](references/membership-type.md) - [rls-setting](references/rls-setting.md) -- [app-limit-event](references/app-limit-event.md) -- [org-limit-event](references/org-limit-event.md) - [rls-module](references/rls-module.md) +- [agent-chat-module](references/agent-chat-module.md) - [rate-limit-meters-module](references/rate-limit-meters-module.md) - [plans-module](references/plans-module.md) - [sql-action](references/sql-action.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [database-setting](references/database-setting.md) -- [billing-module](references/billing-module.md) -- [ast-migration](references/ast-migration.md) -- [user](references/user.md) - [org-membership-setting](references/org-membership-setting.md) -- [webauthn-setting](references/webauthn-setting.md) - [app-membership](references/app-membership.md) +- [user](references/user.md) +- [ast-migration](references/ast-migration.md) +- [webauthn-setting](references/webauthn-setting.md) +- [billing-module](references/billing-module.md) - [billing-provider-module](references/billing-provider-module.md) - [hierarchy-module](references/hierarchy-module.md) - [current-user-id](references/current-user-id.md) @@ -199,11 +202,11 @@ See the `references/` directory for detailed per-entity API documentation: - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) - [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [get-all-objects-from-root](references/get-all-objects-from-root.md) - [get-path-objects-from-root](references/get-path-objects-from-root.md) - [get-object-at-path](references/get-object-at-path.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [current-user](references/current-user.md) - [send-account-deletion-email](references/send-account-deletion-email.md) - [sign-out](references/sign-out.md) @@ -229,7 +232,10 @@ See the `references/` directory for detailed per-entity API documentation: - [remove-node-at-path](references/remove-node-at-path.md) - [copy-template-to-blueprint](references/copy-template-to-blueprint.md) - [provision-spatial-relation](references/provision-spatial-relation.md) +- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [bootstrap-user](references/bootstrap-user.md) +- [sign-up](references/sign-up.md) +- [sign-in](references/sign-in.md) - [set-field-order](references/set-field-order.md) - [provision-check-constraint](references/provision-check-constraint.md) - [provision-unique-constraint](references/provision-unique-constraint.md) @@ -243,14 +249,11 @@ See the `references/` directory for detailed per-entity API documentation: - [set-and-commit](references/set-and-commit.md) - [provision-relation](references/provision-relation.md) - [apply-rls](references/apply-rls.md) -- [sign-in-cross-origin](references/sign-in-cross-origin.md) - [create-user-database](references/create-user-database.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) -- [sign-up](references/sign-up.md) - [request-cross-origin-token](references/request-cross-origin-token.md) -- [sign-in](references/sign-in.md) - [provision-table](references/provision-table.md) +- [send-verification-email](references/send-verification-email.md) +- [forgot-password](references/forgot-password.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-public/references/agent-chat-module.md b/.agents/skills/orm-public/references/agent-chat-module.md new file mode 100644 index 0000000000..94b0afff53 --- /dev/null +++ b/.agents/skills/orm-public/references/agent-chat-module.md @@ -0,0 +1,34 @@ +# agentChatModule + + + +ORM operations for AgentChatModule records + +## Usage + +```typescript +db.agentChatModule.findMany({ select: { id: true } }).execute() +db.agentChatModule.findOne({ id: '', select: { id: true } }).execute() +db.agentChatModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', apiId: '', threadTableId: '', threadTableName: '', messageTableId: '', messageTableName: '', taskTableId: '', taskTableName: '', prefix: '' }, select: { id: true } }).execute() +db.agentChatModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.agentChatModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentChatModule records + +```typescript +const items = await db.agentChatModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a agentChatModule + +```typescript +const item = await db.agentChatModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', apiId: '', threadTableId: '', threadTableName: '', messageTableId: '', messageTableName: '', taskTableId: '', taskTableName: '', prefix: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/audit-log-auth.md b/.agents/skills/orm-public/references/audit-log-auth.md new file mode 100644 index 0000000000..0ad392c546 --- /dev/null +++ b/.agents/skills/orm-public/references/audit-log-auth.md @@ -0,0 +1,34 @@ +# auditLogAuth + + + +Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + +## Usage + +```typescript +db.auditLogAuth.findMany({ select: { id: true } }).execute() +db.auditLogAuth.findOne({ id: '', select: { id: true } }).execute() +db.auditLogAuth.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() +db.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() +db.auditLogAuth.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all auditLogAuth records + +```typescript +const items = await db.auditLogAuth.findMany({ + select: { id: true, event: true } +}).execute(); +``` + +### Create a auditLogAuth + +```typescript +const item = await db.auditLogAuth.create({ + data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/billing-module.md b/.agents/skills/orm-public/references/billing-module.md index 564f7dcb11..a0ed719170 100644 --- a/.agents/skills/orm-public/references/billing-module.md +++ b/.agents/skills/orm-public/references/billing-module.md @@ -9,7 +9,7 @@ ORM operations for BillingModule records ```typescript db.billingModule.findMany({ select: { id: true } }).execute() db.billingModule.findOne({ id: '', select: { id: true } }).execute() -db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute() +db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute() db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.billingModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.billingModule.findMany({ ```typescript const item = await db.billingModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/commit.md b/.agents/skills/orm-public/references/commit.md index b3e1b59c39..6b9ec65906 100644 --- a/.agents/skills/orm-public/references/commit.md +++ b/.agents/skills/orm-public/references/commit.md @@ -9,7 +9,7 @@ A commit records changes to the repository. ```typescript db.commit.findMany({ select: { id: true } }).execute() db.commit.findOne({ id: '', select: { id: true } }).execute() -db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.commit.create({ data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() db.commit.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.commit.findMany({ ```typescript const item = await db.commit.create({ - data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, + data: { message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/compute-log-module.md b/.agents/skills/orm-public/references/compute-log-module.md new file mode 100644 index 0000000000..981f802461 --- /dev/null +++ b/.agents/skills/orm-public/references/compute-log-module.md @@ -0,0 +1,34 @@ +# computeLogModule + + + +ORM operations for ComputeLogModule records + +## Usage + +```typescript +db.computeLogModule.findMany({ select: { id: true } }).execute() +db.computeLogModule.findOne({ id: '', select: { id: true } }).execute() +db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute() +db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.computeLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all computeLogModule records + +```typescript +const items = await db.computeLogModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a computeLogModule + +```typescript +const item = await db.computeLogModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/config-secrets-org-module.md b/.agents/skills/orm-public/references/config-secrets-org-module.md new file mode 100644 index 0000000000..b8ec2f1064 --- /dev/null +++ b/.agents/skills/orm-public/references/config-secrets-org-module.md @@ -0,0 +1,34 @@ +# configSecretsOrgModule + + + +Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + +## Usage + +```typescript +db.configSecretsOrgModule.findMany({ select: { id: true } }).execute() +db.configSecretsOrgModule.findOne({ id: '', select: { id: true } }).execute() +db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.configSecretsOrgModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all configSecretsOrgModule records + +```typescript +const items = await db.configSecretsOrgModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a configSecretsOrgModule + +```typescript +const item = await db.configSecretsOrgModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/config-secrets-user-module.md b/.agents/skills/orm-public/references/config-secrets-user-module.md new file mode 100644 index 0000000000..309152eda9 --- /dev/null +++ b/.agents/skills/orm-public/references/config-secrets-user-module.md @@ -0,0 +1,34 @@ +# configSecretsUserModule + + + +ORM operations for ConfigSecretsUserModule records + +## Usage + +```typescript +db.configSecretsUserModule.findMany({ select: { id: true } }).execute() +db.configSecretsUserModule.findOne({ id: '', select: { id: true } }).execute() +db.configSecretsUserModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.configSecretsUserModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all configSecretsUserModule records + +```typescript +const items = await db.configSecretsUserModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a configSecretsUserModule + +```typescript +const item = await db.configSecretsUserModule.create({ + data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/construct-blueprint.md b/.agents/skills/orm-public/references/construct-blueprint.md index 0256663916..292263fff3 100644 --- a/.agents/skills/orm-public/references/construct-blueprint.md +++ b/.agents/skills/orm-public/references/construct-blueprint.md @@ -2,7 +2,7 @@ -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. ## Usage diff --git a/.agents/skills/orm-public/references/db-usage-module.md b/.agents/skills/orm-public/references/db-usage-module.md new file mode 100644 index 0000000000..024a0dc4f7 --- /dev/null +++ b/.agents/skills/orm-public/references/db-usage-module.md @@ -0,0 +1,34 @@ +# dbUsageModule + + + +ORM operations for DbUsageModule records + +## Usage + +```typescript +db.dbUsageModule.findMany({ select: { id: true } }).execute() +db.dbUsageModule.findOne({ id: '', select: { id: true } }).execute() +db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, select: { id: true } }).execute() +db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.dbUsageModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all dbUsageModule records + +```typescript +const items = await db.dbUsageModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a dbUsageModule + +```typescript +const item = await db.dbUsageModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/freeze-objects.md b/.agents/skills/orm-public/references/freeze-objects.md index 110be1e17b..7e943be68e 100644 --- a/.agents/skills/orm-public/references/freeze-objects.md +++ b/.agents/skills/orm-public/references/freeze-objects.md @@ -7,7 +7,7 @@ Execute the freezeObjects mutation ## Usage ```typescript -db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute() +db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).exe ### Run freezeObjects ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/get-all-objects-from-root.md b/.agents/skills/orm-public/references/get-all-objects-from-root.md index b7f2f7210e..9234ed582f 100644 --- a/.agents/skills/orm-public/references/get-all-objects-from-root.md +++ b/.agents/skills/orm-public/references/get-all-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() +db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` diff --git a/.agents/skills/orm-public/references/get-object-at-path.md b/.agents/skills/orm-public/references/get-object-at-path.md index cdf5df837b..de47977f32 100644 --- a/.agents/skills/orm-public/references/get-object-at-path.md +++ b/.agents/skills/orm-public/references/get-object-at-path.md @@ -7,7 +7,7 @@ Execute the getObjectAtPath query ## Usage ```typescript -db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() +db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', ### Run getObjectAtPath ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` diff --git a/.agents/skills/orm-public/references/get-path-objects-from-root.md b/.agents/skills/orm-public/references/get-path-objects-from-root.md index 663305d3fd..e7280a240a 100644 --- a/.agents/skills/orm-public/references/get-path-objects-from-root.md +++ b/.agents/skills/orm-public/references/get-path-objects-from-root.md @@ -7,7 +7,7 @@ Reads and enables pagination through a set of `Object`. ## Usage ```typescript -db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() +db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` diff --git a/.agents/skills/orm-public/references/inference-log-module.md b/.agents/skills/orm-public/references/inference-log-module.md new file mode 100644 index 0000000000..5b327805ad --- /dev/null +++ b/.agents/skills/orm-public/references/inference-log-module.md @@ -0,0 +1,34 @@ +# inferenceLogModule + + + +ORM operations for InferenceLogModule records + +## Usage + +```typescript +db.inferenceLogModule.findMany({ select: { id: true } }).execute() +db.inferenceLogModule.findOne({ id: '', select: { id: true } }).execute() +db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute() +db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.inferenceLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all inferenceLogModule records + +```typescript +const items = await db.inferenceLogModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a inferenceLogModule + +```typescript +const item = await db.inferenceLogModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/init-empty-repo.md b/.agents/skills/orm-public/references/init-empty-repo.md index 00eb301388..9134c92d86 100644 --- a/.agents/skills/orm-public/references/init-empty-repo.md +++ b/.agents/skills/orm-public/references/init-empty-repo.md @@ -7,7 +7,7 @@ Execute the initEmptyRepo mutation ## Usage ```typescript -db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute() +db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).exec ### Run initEmptyRepo ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/object.md b/.agents/skills/orm-public/references/object.md index 130fc55c2f..aad69373d6 100644 --- a/.agents/skills/orm-public/references/object.md +++ b/.agents/skills/orm-public/references/object.md @@ -9,7 +9,7 @@ ORM operations for Object records ```typescript db.object.findMany({ select: { id: true } }).execute() db.object.findOne({ id: '', select: { id: true } }).execute() -db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() +db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() db.object.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.object.findMany({ ```typescript const item = await db.object.create({ - data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, + data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/partition.md b/.agents/skills/orm-public/references/partition.md index 1a19a5113f..8e11c306b6 100644 --- a/.agents/skills/orm-public/references/partition.md +++ b/.agents/skills/orm-public/references/partition.md @@ -9,7 +9,7 @@ ORM operations for Partition records ```typescript db.partition.findMany({ select: { id: true } }).execute() db.partition.findOne({ id: '', select: { id: true } }).execute() -db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, select: { id: true } }).execute() +db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute() db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.partition.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.partition.findMany({ ```typescript const item = await db.partition.create({ - data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, + data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/ref.md b/.agents/skills/orm-public/references/ref.md index 56499466ae..294d1f88c9 100644 --- a/.agents/skills/orm-public/references/ref.md +++ b/.agents/skills/orm-public/references/ref.md @@ -9,7 +9,7 @@ A ref is a data structure for pointing to a commit. ```typescript db.ref.findMany({ select: { id: true } }).execute() db.ref.findOne({ id: '', select: { id: true } }).execute() -db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.ref.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.ref.findMany({ ```typescript const item = await db.ref.create({ - data: { name: '', databaseId: '', storeId: '', commitId: '' }, + data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/remove-node-at-path.md b/.agents/skills/orm-public/references/remove-node-at-path.md index 84d7fdbbf2..cebd5201d4 100644 --- a/.agents/skills/orm-public/references/remove-node-at-path.md +++ b/.agents/skills/orm-public/references/remove-node-at-path.md @@ -7,7 +7,7 @@ Execute the removeNodeAtPath mutation ## Usage ```typescript -db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute() +db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '< ### Run removeNodeAtPath ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/rev-parse.md b/.agents/skills/orm-public/references/rev-parse.md index 7fffc37e47..35525be0e4 100644 --- a/.agents/skills/orm-public/references/rev-parse.md +++ b/.agents/skills/orm-public/references/rev-parse.md @@ -7,7 +7,7 @@ Execute the revParse query ## Usage ```typescript -db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() +db.query.revParse({ sId: '', storeId: '', refname: '' }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.query.revParse({ dbId: '', storeId: '', refname: '' }).ex ### Run revParse ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` diff --git a/.agents/skills/orm-public/references/set-data-at-path.md b/.agents/skills/orm-public/references/set-data-at-path.md index 6098a15a51..4176ca275b 100644 --- a/.agents/skills/orm-public/references/set-data-at-path.md +++ b/.agents/skills/orm-public/references/set-data-at-path.md @@ -7,7 +7,7 @@ Execute the setDataAtPath mutation ## Usage ```typescript -db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute() +db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/set-props-and-commit.md b/.agents/skills/orm-public/references/set-props-and-commit.md index c5573289b9..9991d36029 100644 --- a/.agents/skills/orm-public/references/set-props-and-commit.md +++ b/.agents/skills/orm-public/references/set-props-and-commit.md @@ -7,7 +7,7 @@ Execute the setPropsAndCommit mutation ## Usage ```typescript -db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute() +db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute() ``` ## Examples @@ -15,5 +15,5 @@ db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refn ### Run setPropsAndCommit ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/storage-log-module.md b/.agents/skills/orm-public/references/storage-log-module.md new file mode 100644 index 0000000000..90686e4f55 --- /dev/null +++ b/.agents/skills/orm-public/references/storage-log-module.md @@ -0,0 +1,34 @@ +# storageLogModule + + + +ORM operations for StorageLogModule records + +## Usage + +```typescript +db.storageLogModule.findMany({ select: { id: true } }).execute() +db.storageLogModule.findOne({ id: '', select: { id: true } }).execute() +db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute() +db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.storageLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all storageLogModule records + +```typescript +const items = await db.storageLogModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a storageLogModule + +```typescript +const item = await db.storageLogModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/storage-module.md b/.agents/skills/orm-public/references/storage-module.md index 77f0494965..8d992dc96a 100644 --- a/.agents/skills/orm-public/references/storage-module.md +++ b/.agents/skills/orm-public/references/storage-module.md @@ -9,7 +9,7 @@ ORM operations for StorageModule records ```typescript db.storageModule.findMany({ select: { id: true } }).execute() db.storageModule.findOne({ id: '', select: { id: true } }).execute() -db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute() db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.storageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageModule.findMany({ ```typescript const item = await db.storageModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/store.md b/.agents/skills/orm-public/references/store.md index 63f88e898e..8c6fb84921 100644 --- a/.agents/skills/orm-public/references/store.md +++ b/.agents/skills/orm-public/references/store.md @@ -9,7 +9,7 @@ A store represents an isolated object repository within a database. ```typescript db.store.findMany({ select: { id: true } }).execute() db.store.findOne({ id: '', select: { id: true } }).execute() -db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute() db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.store.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.store.findMany({ ```typescript const item = await db.store.create({ - data: { name: '', databaseId: '', hash: '' }, + data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/transfer-log-module.md b/.agents/skills/orm-public/references/transfer-log-module.md new file mode 100644 index 0000000000..ef006392d1 --- /dev/null +++ b/.agents/skills/orm-public/references/transfer-log-module.md @@ -0,0 +1,34 @@ +# transferLogModule + + + +ORM operations for TransferLogModule records + +## Usage + +```typescript +db.transferLogModule.findMany({ select: { id: true } }).execute() +db.transferLogModule.findOne({ id: '', select: { id: true } }).execute() +db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute() +db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.transferLogModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all transferLogModule records + +```typescript +const items = await db.transferLogModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a transferLogModule + +```typescript +const item = await db.transferLogModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-cli/src/admin/README.md b/sdk/constructive-cli/src/admin/README.md index 5a344d1d90..01696ddc08 100644 --- a/sdk/constructive-cli/src/admin/README.md +++ b/sdk/constructive-cli/src/admin/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 45 +- **Tables:** 44 - **Custom queries:** 9 - **Custom mutations:** 3 diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index 408473a1ac..c9c561fc45 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -35,42 +35,41 @@ csdk auth set-token | `app-limit-credit` | appLimitCredit CRUD operations | | `org-member` | orgMember CRUD operations | | `app-permission-default` | appPermissionDefault CRUD operations | -| `app-limit-credit-code` | appLimitCreditCode CRUD operations | -| `org-permission-default` | orgPermissionDefault CRUD operations | | `app-admin-grant` | appAdminGrant CRUD operations | | `app-owner-grant` | appOwnerGrant CRUD operations | +| `org-permission-default` | orgPermissionDefault CRUD operations | +| `app-membership-default` | appMembershipDefault CRUD operations | +| `org-admin-grant` | orgAdminGrant CRUD operations | +| `org-membership-default` | orgMembershipDefault CRUD operations | +| `org-owner-grant` | orgOwnerGrant CRUD operations | | `app-limit-caps-default` | appLimitCapsDefault CRUD operations | | `org-limit-caps-default` | orgLimitCapsDefault CRUD operations | | `app-limit-cap` | appLimitCap CRUD operations | | `org-limit-cap` | orgLimitCap CRUD operations | -| `org-admin-grant` | orgAdminGrant CRUD operations | -| `org-owner-grant` | orgOwnerGrant CRUD operations | -| `membership-type` | membershipType CRUD operations | +| `org-chart-edge` | orgChartEdge CRUD operations | | `app-limit-default` | appLimitDefault CRUD operations | | `org-limit-default` | orgLimitDefault CRUD operations | | `org-limit-credit` | orgLimitCredit CRUD operations | +| `app-limit-credit-code` | appLimitCreditCode CRUD operations | | `app-limit-warning` | appLimitWarning CRUD operations | -| `org-limit-warning` | orgLimitWarning CRUD operations | | `org-chart-edge-grant` | orgChartEdgeGrant CRUD operations | | `app-claimed-invite` | appClaimedInvite CRUD operations | +| `org-limit-warning` | orgLimitWarning CRUD operations | +| `membership-type` | membershipType CRUD operations | | `app-grant` | appGrant CRUD operations | -| `app-membership-default` | appMembershipDefault CRUD operations | -| `org-membership-default` | orgMembershipDefault CRUD operations | | `org-claimed-invite` | orgClaimedInvite CRUD operations | +| `org-grant` | orgGrant CRUD operations | | `app-limit-event` | appLimitEvent CRUD operations | | `org-limit-event` | orgLimitEvent CRUD operations | -| `org-grant` | orgGrant CRUD operations | -| `org-chart-edge` | orgChartEdge CRUD operations | -| `usage-snapshot` | usageSnapshot CRUD operations | -| `app-limit` | appLimit CRUD operations | -| `app-invite` | appInvite CRUD operations | | `org-membership-setting` | orgMembershipSetting CRUD operations | +| `app-membership` | appMembership CRUD operations | +| `app-limit` | appLimit CRUD operations | +| `org-membership` | orgMembership CRUD operations | +| `org-member-profile` | orgMemberProfile CRUD operations | | `org-limit-aggregate` | orgLimitAggregate CRUD operations | | `org-limit` | orgLimit CRUD operations | -| `org-member-profile` | orgMemberProfile CRUD operations | -| `app-membership` | appMembership CRUD operations | +| `app-invite` | appInvite CRUD operations | | `org-invite` | orgInvite CRUD operations | -| `org-membership` | orgMembership CRUD operations | | `app-permissions-get-padded-mask` | appPermissionsGetPaddedMask | | `org-permissions-get-padded-mask` | orgPermissionsGetPaddedMask | | `org-is-manager-of` | orgIsManagerOf | @@ -345,31 +344,59 @@ CRUD operations for AppPermissionDefault records. **Optional create fields (backend defaults):** `permissions` -### `app-limit-credit-code` +### `app-admin-grant` -CRUD operations for AppLimitCreditCode records. +CRUD operations for AppAdminGrant records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitCreditCode records | -| `find-first` | Find first matching appLimitCreditCode record | -| `get` | Get a appLimitCreditCode by id | -| `create` | Create a new appLimitCreditCode | -| `update` | Update an existing appLimitCreditCode | -| `delete` | Delete a appLimitCreditCode | +| `list` | List all appAdminGrant records | +| `find-first` | Find first matching appAdminGrant record | +| `get` | Get a appAdminGrant by id | +| `create` | Create a new appAdminGrant | +| `update` | Update an existing appAdminGrant | +| `delete` | Delete a appAdminGrant | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `code` | String | -| `maxRedemptions` | Int | -| `currentRedemptions` | Int | -| `expiresAt` | Datetime | +| `isGrant` | Boolean | +| `actorId` | UUID | +| `grantorId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | -**Required create fields:** `code` -**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `isGrant`, `grantorId` + +### `app-owner-grant` + +CRUD operations for AppOwnerGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appOwnerGrant records | +| `find-first` | Find first matching appOwnerGrant record | +| `get` | Get a appOwnerGrant by id | +| `create` | Create a new appOwnerGrant | +| `update` | Update an existing appOwnerGrant | +| `delete` | Delete a appOwnerGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `isGrant` | Boolean | +| `actorId` | UUID | +| `grantorId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `isGrant`, `grantorId` ### `org-permission-default` @@ -395,18 +422,45 @@ CRUD operations for OrgPermissionDefault records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `permissions` -### `app-admin-grant` +### `app-membership-default` -CRUD operations for AppAdminGrant records. +CRUD operations for AppMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all appAdminGrant records | -| `find-first` | Find first matching appAdminGrant record | -| `get` | Get a appAdminGrant by id | -| `create` | Create a new appAdminGrant | -| `update` | Update an existing appAdminGrant | -| `delete` | Delete a appAdminGrant | +| `list` | List all appMembershipDefault records | +| `find-first` | Find first matching appMembershipDefault record | +| `get` | Get a appMembershipDefault by id | +| `create` | Create a new appMembershipDefault | +| `update` | Update an existing appMembershipDefault | +| `delete` | Delete a appMembershipDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isVerified` | Boolean | + +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` + +### `org-admin-grant` + +CRUD operations for OrgAdminGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgAdminGrant records | +| `find-first` | Find first matching orgAdminGrant record | +| `get` | Get a orgAdminGrant by id | +| `create` | Create a new orgAdminGrant | +| `update` | Update an existing orgAdminGrant | +| `delete` | Delete a orgAdminGrant | **Fields:** @@ -415,25 +469,54 @@ CRUD operations for AppAdminGrant records. | `id` | UUID | | `isGrant` | Boolean | | `actorId` | UUID | +| `entityId` | UUID | | `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId` +**Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `isGrant`, `grantorId` -### `app-owner-grant` +### `org-membership-default` -CRUD operations for AppOwnerGrant records. +CRUD operations for OrgMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all appOwnerGrant records | -| `find-first` | Find first matching appOwnerGrant record | -| `get` | Get a appOwnerGrant by id | -| `create` | Create a new appOwnerGrant | -| `update` | Update an existing appOwnerGrant | -| `delete` | Delete a appOwnerGrant | +| `list` | List all orgMembershipDefault records | +| `find-first` | Find first matching orgMembershipDefault record | +| `get` | Get a orgMembershipDefault by id | +| `create` | Create a new orgMembershipDefault | +| `update` | Update an existing orgMembershipDefault | +| `delete` | Delete a orgMembershipDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `entityId` | UUID | + +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` + +### `org-owner-grant` + +CRUD operations for OrgOwnerGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgOwnerGrant records | +| `find-first` | Find first matching orgOwnerGrant record | +| `get` | Get a orgOwnerGrant by id | +| `create` | Create a new orgOwnerGrant | +| `update` | Update an existing orgOwnerGrant | +| `delete` | Delete a orgOwnerGrant | **Fields:** @@ -442,11 +525,12 @@ CRUD operations for AppOwnerGrant records. | `id` | UUID | | `isGrant` | Boolean | | `actorId` | UUID | +| `entityId` | UUID | | `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId` +**Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `isGrant`, `grantorId` ### `app-limit-caps-default` @@ -547,132 +631,78 @@ CRUD operations for OrgLimitCap records. **Required create fields:** `name`, `entityId` **Optional create fields (backend defaults):** `max` -### `org-admin-grant` +### `org-chart-edge` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdge records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgAdminGrant records | -| `find-first` | Find first matching orgAdminGrant record | -| `get` | Get a orgAdminGrant by id | -| `create` | Create a new orgAdminGrant | -| `update` | Update an existing orgAdminGrant | -| `delete` | Delete a orgAdminGrant | +| `list` | List all orgChartEdge records | +| `find-first` | Find first matching orgChartEdge record | +| `get` | Get a orgChartEdge by id | +| `create` | Create a new orgChartEdge | +| `update` | Update an existing orgChartEdge | +| `delete` | Delete a orgChartEdge | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | -| `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | +| `entityId` | UUID | +| `childId` | UUID | +| `parentId` | UUID | +| `positionTitle` | String | +| `positionLevel` | Int | -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` +**Required create fields:** `entityId`, `childId` +**Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` -### `org-owner-grant` +### `app-limit-default` -CRUD operations for OrgOwnerGrant records. +CRUD operations for AppLimitDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgOwnerGrant records | -| `find-first` | Find first matching orgOwnerGrant record | -| `get` | Get a orgOwnerGrant by id | -| `create` | Create a new orgOwnerGrant | -| `update` | Update an existing orgOwnerGrant | -| `delete` | Delete a orgOwnerGrant | +| `list` | List all appLimitDefault records | +| `find-first` | Find first matching appLimitDefault record | +| `get` | Get a appLimitDefault by id | +| `create` | Create a new appLimitDefault | +| `update` | Update an existing appLimitDefault | +| `delete` | Delete a appLimitDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | +| `name` | String | +| `max` | BigInt | +| `softMax` | BigInt | -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` +**Required create fields:** `name` +**Optional create fields (backend defaults):** `max`, `softMax` -### `membership-type` +### `org-limit-default` -CRUD operations for MembershipType records. +CRUD operations for OrgLimitDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all membershipType records | -| `find-first` | Find first matching membershipType record | -| `get` | Get a membershipType by id | -| `create` | Create a new membershipType | -| `update` | Update an existing membershipType | -| `delete` | Delete a membershipType | +| `list` | List all orgLimitDefault records | +| `find-first` | Find first matching orgLimitDefault record | +| `get` | Get a orgLimitDefault by id | +| `create` | Create a new orgLimitDefault | +| `update` | Update an existing orgLimitDefault | +| `delete` | Delete a orgLimitDefault | **Fields:** | Field | Type | |-------|------| -| `id` | Int | -| `name` | String | -| `description` | String | -| `prefix` | String | -| `parentMembershipType` | Int | -| `hasUsersTableEntry` | Boolean | - -**Required create fields:** `name`, `description`, `prefix` -**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` - -### `app-limit-default` - -CRUD operations for AppLimitDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitDefault records | -| `find-first` | Find first matching appLimitDefault record | -| `get` | Get a appLimitDefault by id | -| `create` | Create a new appLimitDefault | -| `update` | Update an existing appLimitDefault | -| `delete` | Delete a appLimitDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `max` | BigInt | -| `softMax` | BigInt | - -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max`, `softMax` - -### `org-limit-default` - -CRUD operations for OrgLimitDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitDefault records | -| `find-first` | Find first matching orgLimitDefault record | -| `get` | Get a orgLimitDefault by id | -| `create` | Create a new orgLimitDefault | -| `update` | Update an existing orgLimitDefault | -| `delete` | Delete a orgLimitDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | +| `id` | UUID | | `name` | String | | `max` | BigInt | | `softMax` | BigInt | @@ -708,43 +738,44 @@ CRUD operations for OrgLimitCredit records. **Required create fields:** `defaultLimitId`, `amount` **Optional create fields (backend defaults):** `actorId`, `entityId`, `creditType`, `reason` -### `app-limit-warning` +### `app-limit-credit-code` -CRUD operations for AppLimitWarning records. +CRUD operations for AppLimitCreditCode records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitWarning records | -| `find-first` | Find first matching appLimitWarning record | -| `get` | Get a appLimitWarning by id | -| `create` | Create a new appLimitWarning | -| `update` | Update an existing appLimitWarning | -| `delete` | Delete a appLimitWarning | +| `list` | List all appLimitCreditCode records | +| `find-first` | Find first matching appLimitCreditCode record | +| `get` | Get a appLimitCreditCode by id | +| `create` | Create a new appLimitCreditCode | +| `update` | Update an existing appLimitCreditCode | +| `delete` | Delete a appLimitCreditCode | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `warningType` | String | -| `thresholdValue` | BigInt | -| `taskIdentifier` | String | +| `code` | String | +| `maxRedemptions` | Int | +| `currentRedemptions` | Int | +| `expiresAt` | Datetime | -**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` +**Required create fields:** `code` +**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` -### `org-limit-warning` +### `app-limit-warning` -CRUD operations for OrgLimitWarning records. +CRUD operations for AppLimitWarning records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgLimitWarning records | -| `find-first` | Find first matching orgLimitWarning record | -| `get` | Get a orgLimitWarning by id | -| `create` | Create a new orgLimitWarning | -| `update` | Update an existing orgLimitWarning | -| `delete` | Delete a orgLimitWarning | +| `list` | List all appLimitWarning records | +| `find-first` | Find first matching appLimitWarning record | +| `get` | Get a appLimitWarning by id | +| `create` | Create a new appLimitWarning | +| `update` | Update an existing appLimitWarning | +| `delete` | Delete a appLimitWarning | **Fields:** @@ -755,10 +786,8 @@ CRUD operations for OrgLimitWarning records. | `warningType` | String | | `thresholdValue` | BigInt | | `taskIdentifier` | String | -| `entityId` | UUID | **Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` -**Optional create fields (backend defaults):** `entityId` ### `org-chart-edge-grant` @@ -816,88 +845,87 @@ CRUD operations for AppClaimedInvite records. **Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` -### `app-grant` +### `org-limit-warning` -CRUD operations for AppGrant records. +CRUD operations for OrgLimitWarning records. | Subcommand | Description | |------------|-------------| -| `list` | List all appGrant records | -| `find-first` | Find first matching appGrant record | -| `get` | Get a appGrant by id | -| `create` | Create a new appGrant | -| `update` | Update an existing appGrant | -| `delete` | Delete a appGrant | +| `list` | List all orgLimitWarning records | +| `find-first` | Find first matching orgLimitWarning record | +| `get` | Get a orgLimitWarning by id | +| `create` | Create a new orgLimitWarning | +| `update` | Update an existing orgLimitWarning | +| `delete` | Delete a orgLimitWarning | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `permissions` | BitString | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `grantorId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | +| `name` | String | +| `warningType` | String | +| `thresholdValue` | BigInt | +| `taskIdentifier` | String | +| `entityId` | UUID | -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` +**Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` +**Optional create fields (backend defaults):** `entityId` -### `app-membership-default` +### `membership-type` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. | Subcommand | Description | |------------|-------------| -| `list` | List all appMembershipDefault records | -| `find-first` | Find first matching appMembershipDefault record | -| `get` | Get a appMembershipDefault by id | -| `create` | Create a new appMembershipDefault | -| `update` | Update an existing appMembershipDefault | -| `delete` | Delete a appMembershipDefault | +| `list` | List all membershipType records | +| `find-first` | Find first matching membershipType record | +| `get` | Get a membershipType by id | +| `create` | Create a new membershipType | +| `update` | Update an existing membershipType | +| `delete` | Delete a membershipType | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isVerified` | Boolean | +| `id` | Int | +| `name` | String | +| `description` | String | +| `prefix` | String | +| `parentMembershipType` | Int | +| `hasUsersTableEntry` | Boolean | -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` +**Required create fields:** `name`, `description`, `prefix` +**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` -### `org-membership-default` +### `app-grant` -CRUD operations for OrgMembershipDefault records. +CRUD operations for AppGrant records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipDefault records | -| `find-first` | Find first matching orgMembershipDefault record | -| `get` | Get a orgMembershipDefault by id | -| `create` | Create a new orgMembershipDefault | -| `update` | Update an existing orgMembershipDefault | -| `delete` | Delete a orgMembershipDefault | +| `list` | List all appGrant records | +| `find-first` | Find first matching appGrant record | +| `get` | Get a appGrant by id | +| `create` | Create a new appGrant | +| `update` | Update an existing appGrant | +| `delete` | Delete a appGrant | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `permissions` | BitString | +| `isGrant` | Boolean | +| `actorId` | UUID | +| `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `entityId` | UUID | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` ### `org-claimed-invite` @@ -927,6 +955,35 @@ CRUD operations for OrgClaimedInvite records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` +### `org-grant` + +CRUD operations for OrgGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgGrant records | +| `find-first` | Find first matching orgGrant record | +| `get` | Get a orgGrant by id | +| `create` | Create a new orgGrant | +| `update` | Update an existing orgGrant | +| `delete` | Delete a orgGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `permissions` | BitString | +| `isGrant` | Boolean | +| `actorId` | UUID | +| `entityId` | UUID | +| `grantorId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `actorId`, `entityId` +**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` + ### `app-limit-event` CRUD operations for AppLimitEvent records. @@ -944,6 +1001,8 @@ CRUD operations for AppLimitEvent records. | Field | Type | |-------|------| +| `createdAt` | Datetime | +| `id` | UUID | | `name` | String | | `actorId` | UUID | | `entityId` | UUID | @@ -973,6 +1032,8 @@ CRUD operations for OrgLimitEvent records. | Field | Type | |-------|------| +| `createdAt` | Datetime | +| `id` | UUID | | `name` | String | | `actorId` | UUID | | `entityId` | UUID | @@ -985,47 +1046,53 @@ CRUD operations for OrgLimitEvent records. **Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` -### `org-grant` +### `org-membership-setting` -CRUD operations for OrgGrant records. +CRUD operations for OrgMembershipSetting records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgGrant records | -| `find-first` | Find first matching orgGrant record | -| `get` | Get a orgGrant by id | -| `create` | Create a new orgGrant | -| `update` | Update an existing orgGrant | -| `delete` | Delete a orgGrant | +| `list` | List all orgMembershipSetting records | +| `find-first` | Find first matching orgMembershipSetting record | +| `get` | Get a orgMembershipSetting by id | +| `create` | Create a new orgMembershipSetting | +| `update` | Update an existing orgMembershipSetting | +| `delete` | Delete a orgMembershipSetting | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `permissions` | BitString | -| `isGrant` | Boolean | -| `actorId` | UUID | -| `entityId` | UUID | -| `grantorId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `entityId` | UUID | +| `deleteMemberCascadeChildren` | Boolean | +| `createChildCascadeOwners` | Boolean | +| `createChildCascadeAdmins` | Boolean | +| `createChildCascadeMembers` | Boolean | +| `allowExternalMembers` | Boolean | +| `inviteProfileAssignmentMode` | String | +| `populateMemberEmail` | Boolean | +| `limitAllocationMode` | String | -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` -### `org-chart-edge` +### `app-membership` -CRUD operations for OrgChartEdge records. +CRUD operations for AppMembership records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgChartEdge records | -| `find-first` | Find first matching orgChartEdge record | -| `get` | Get a orgChartEdge by id | -| `create` | Create a new orgChartEdge | -| `update` | Update an existing orgChartEdge | -| `delete` | Delete a orgChartEdge | +| `list` | List all appMembership records | +| `find-first` | Find first matching appMembership record | +| `get` | Get a appMembership by id | +| `create` | Create a new appMembership | +| `update` | Update an existing appMembership | +| `delete` | Delete a appMembership | **Fields:** @@ -1034,41 +1101,22 @@ CRUD operations for OrgChartEdge records. | `id` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `entityId` | UUID | -| `childId` | UUID | -| `parentId` | UUID | -| `positionTitle` | String | -| `positionLevel` | Int | - -**Required create fields:** `entityId`, `childId` -**Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` - -### `usage-snapshot` - -CRUD operations for UsageSnapshot records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all usageSnapshot records | -| `find-first` | Find first matching usageSnapshot record | -| `get` | Get a usageSnapshot by id | -| `create` | Create a new usageSnapshot | -| `update` | Update an existing usageSnapshot | -| `delete` | Delete a usageSnapshot | - -**Fields:** - -| Field | Type | -|-------|------| -| `databaseId` | UUID | -| `metricName` | String | -| `metricValue` | BigInt | -| `dimensions` | JSON | -| `capturedAt` | Datetime | -| `id` | UUID | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isBanned` | Boolean | +| `isDisabled` | Boolean | +| `isVerified` | Boolean | +| `isActive` | Boolean | +| `isOwner` | Boolean | +| `isAdmin` | Boolean | +| `permissions` | BitString | +| `granted` | BitString | +| `actorId` | UUID | +| `profileId` | UUID | -**Required create fields:** `databaseId`, `metricName` -**Optional create fields (backend defaults):** `metricValue`, `dimensions`, `capturedAt` +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` ### `app-limit` @@ -1102,51 +1150,57 @@ CRUD operations for AppLimit records. **Required create fields:** `actorId` **Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits` -### `app-invite` +### `org-membership` -CRUD operations for AppInvite records. +CRUD operations for OrgMembership records. | Subcommand | Description | |------------|-------------| -| `list` | List all appInvite records | -| `find-first` | Find first matching appInvite record | -| `get` | Get a appInvite by id | -| `create` | Create a new appInvite | -| `update` | Update an existing appInvite | -| `delete` | Delete a appInvite | +| `list` | List all orgMembership records | +| `find-first` | Find first matching orgMembership record | +| `get` | Get a orgMembership by id | +| `create` | Create a new orgMembership | +| `update` | Update an existing orgMembership | +| `delete` | Delete a orgMembership | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `email` | Email | -| `senderId` | UUID | -| `inviteToken` | String | -| `inviteValid` | Boolean | -| `inviteLimit` | Int | -| `inviteCount` | Int | -| `multiple` | Boolean | -| `data` | JSON | -| `profileId` | UUID | -| `expiresAt` | Datetime | | `createdAt` | Datetime | | `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isBanned` | Boolean | +| `isDisabled` | Boolean | +| `isActive` | Boolean | +| `isExternal` | Boolean | +| `isOwner` | Boolean | +| `isAdmin` | Boolean | +| `permissions` | BitString | +| `granted` | BitString | +| `actorId` | UUID | +| `entityId` | UUID | +| `isReadOnly` | Boolean | +| `profileId` | UUID | -**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` +**Required create fields:** `actorId`, `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isActive`, `isExternal`, `isOwner`, `isAdmin`, `permissions`, `granted`, `isReadOnly`, `profileId` -### `org-membership-setting` +### `org-member-profile` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgMemberProfile records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipSetting records | -| `find-first` | Find first matching orgMembershipSetting record | -| `get` | Get a orgMembershipSetting by id | -| `create` | Create a new orgMembershipSetting | -| `update` | Update an existing orgMembershipSetting | -| `delete` | Delete a orgMembershipSetting | +| `list` | List all orgMemberProfile records | +| `find-first` | Find first matching orgMemberProfile record | +| `get` | Get a orgMemberProfile by id | +| `create` | Create a new orgMemberProfile | +| `update` | Update an existing orgMemberProfile | +| `delete` | Delete a orgMemberProfile | **Fields:** @@ -1155,20 +1209,17 @@ CRUD operations for OrgMembershipSetting records. | `id` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | +| `membershipId` | UUID | | `entityId` | UUID | -| `deleteMemberCascadeChildren` | Boolean | -| `createChildCascadeOwners` | Boolean | -| `createChildCascadeAdmins` | Boolean | -| `createChildCascadeMembers` | Boolean | -| `allowExternalMembers` | Boolean | -| `inviteProfileAssignmentMode` | String | -| `populateMemberEmail` | Boolean | -| `limitAllocationMode` | String | +| `actorId` | UUID | +| `displayName` | String | +| `email` | String | +| `title` | String | +| `bio` | String | +| `profilePicture` | Image | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` +**Required create fields:** `membershipId`, `entityId`, `actorId` +**Optional create fields (backend defaults):** `displayName`, `email`, `title`, `bio`, `profilePicture` ### `org-limit-aggregate` @@ -1236,74 +1287,38 @@ CRUD operations for OrgLimit records. **Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration`, `planMax`, `purchasedCredits`, `periodCredits` -### `org-member-profile` - -CRUD operations for OrgMemberProfile records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMemberProfile records | -| `find-first` | Find first matching orgMemberProfile record | -| `get` | Get a orgMemberProfile by id | -| `create` | Create a new orgMemberProfile | -| `update` | Update an existing orgMemberProfile | -| `delete` | Delete a orgMemberProfile | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `membershipId` | UUID | -| `entityId` | UUID | -| `actorId` | UUID | -| `displayName` | String | -| `email` | String | -| `title` | String | -| `bio` | String | -| `profilePicture` | Image | - -**Required create fields:** `membershipId`, `entityId`, `actorId` -**Optional create fields (backend defaults):** `displayName`, `email`, `title`, `bio`, `profilePicture` - -### `app-membership` +### `app-invite` -CRUD operations for AppMembership records. +CRUD operations for AppInvite records. | Subcommand | Description | |------------|-------------| -| `list` | List all appMembership records | -| `find-first` | Find first matching appMembership record | -| `get` | Get a appMembership by id | -| `create` | Create a new appMembership | -| `update` | Update an existing appMembership | -| `delete` | Delete a appMembership | +| `list` | List all appInvite records | +| `find-first` | Find first matching appInvite record | +| `get` | Get a appInvite by id | +| `create` | Create a new appInvite | +| `update` | Update an existing appInvite | +| `delete` | Delete a appInvite | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `email` | Email | +| `senderId` | UUID | +| `inviteToken` | String | +| `inviteValid` | Boolean | +| `inviteLimit` | Int | +| `inviteCount` | Int | +| `multiple` | Boolean | +| `data` | JSON | +| `profileId` | UUID | +| `expiresAt` | Datetime | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isBanned` | Boolean | -| `isDisabled` | Boolean | -| `isVerified` | Boolean | -| `isActive` | Boolean | -| `isOwner` | Boolean | -| `isAdmin` | Boolean | -| `permissions` | BitString | -| `granted` | BitString | -| `actorId` | UUID | -| `profileId` | UUID | -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` +**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` ### `org-invite` @@ -1342,45 +1357,6 @@ CRUD operations for OrgInvite records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `isReadOnly`, `expiresAt` -### `org-membership` - -CRUD operations for OrgMembership records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgMembership records | -| `find-first` | Find first matching orgMembership record | -| `get` | Get a orgMembership by id | -| `create` | Create a new orgMembership | -| `update` | Update an existing orgMembership | -| `delete` | Delete a orgMembership | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isBanned` | Boolean | -| `isDisabled` | Boolean | -| `isActive` | Boolean | -| `isExternal` | Boolean | -| `isOwner` | Boolean | -| `isAdmin` | Boolean | -| `permissions` | BitString | -| `granted` | BitString | -| `actorId` | UUID | -| `entityId` | UUID | -| `isReadOnly` | Boolean | -| `profileId` | UUID | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isActive`, `isExternal`, `isOwner`, `isAdmin`, `permissions`, `granted`, `isReadOnly`, `profileId` - ## Custom Operations ### `app-permissions-get-padded-mask` diff --git a/sdk/constructive-cli/src/admin/cli/commands.ts b/sdk/constructive-cli/src/admin/cli/commands.ts index c21319615c..9610e3d31d 100644 --- a/sdk/constructive-cli/src/admin/cli/commands.ts +++ b/sdk/constructive-cli/src/admin/cli/commands.ts @@ -15,42 +15,41 @@ import appLimitCreditCodeItemCmd from './commands/app-limit-credit-code-item'; import appLimitCreditCmd from './commands/app-limit-credit'; import orgMemberCmd from './commands/org-member'; import appPermissionDefaultCmd from './commands/app-permission-default'; -import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; -import orgPermissionDefaultCmd from './commands/org-permission-default'; import appAdminGrantCmd from './commands/app-admin-grant'; import appOwnerGrantCmd from './commands/app-owner-grant'; +import orgPermissionDefaultCmd from './commands/org-permission-default'; +import appMembershipDefaultCmd from './commands/app-membership-default'; +import orgAdminGrantCmd from './commands/org-admin-grant'; +import orgMembershipDefaultCmd from './commands/org-membership-default'; +import orgOwnerGrantCmd from './commands/org-owner-grant'; import appLimitCapsDefaultCmd from './commands/app-limit-caps-default'; import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default'; import appLimitCapCmd from './commands/app-limit-cap'; import orgLimitCapCmd from './commands/org-limit-cap'; -import orgAdminGrantCmd from './commands/org-admin-grant'; -import orgOwnerGrantCmd from './commands/org-owner-grant'; -import membershipTypeCmd from './commands/membership-type'; +import orgChartEdgeCmd from './commands/org-chart-edge'; import appLimitDefaultCmd from './commands/app-limit-default'; import orgLimitDefaultCmd from './commands/org-limit-default'; import orgLimitCreditCmd from './commands/org-limit-credit'; +import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; import appLimitWarningCmd from './commands/app-limit-warning'; -import orgLimitWarningCmd from './commands/org-limit-warning'; import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; import appClaimedInviteCmd from './commands/app-claimed-invite'; +import orgLimitWarningCmd from './commands/org-limit-warning'; +import membershipTypeCmd from './commands/membership-type'; import appGrantCmd from './commands/app-grant'; -import appMembershipDefaultCmd from './commands/app-membership-default'; -import orgMembershipDefaultCmd from './commands/org-membership-default'; import orgClaimedInviteCmd from './commands/org-claimed-invite'; +import orgGrantCmd from './commands/org-grant'; import appLimitEventCmd from './commands/app-limit-event'; import orgLimitEventCmd from './commands/org-limit-event'; -import orgGrantCmd from './commands/org-grant'; -import orgChartEdgeCmd from './commands/org-chart-edge'; -import usageSnapshotCmd from './commands/usage-snapshot'; -import appLimitCmd from './commands/app-limit'; -import appInviteCmd from './commands/app-invite'; import orgMembershipSettingCmd from './commands/org-membership-setting'; +import appMembershipCmd from './commands/app-membership'; +import appLimitCmd from './commands/app-limit'; +import orgMembershipCmd from './commands/org-membership'; +import orgMemberProfileCmd from './commands/org-member-profile'; import orgLimitAggregateCmd from './commands/org-limit-aggregate'; import orgLimitCmd from './commands/org-limit'; -import orgMemberProfileCmd from './commands/org-member-profile'; -import appMembershipCmd from './commands/app-membership'; +import appInviteCmd from './commands/app-invite'; import orgInviteCmd from './commands/org-invite'; -import orgMembershipCmd from './commands/org-membership'; import appPermissionsGetPaddedMaskCmd from './commands/app-permissions-get-padded-mask'; import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padded-mask'; import orgIsManagerOfCmd from './commands/org-is-manager-of'; @@ -82,42 +81,41 @@ const createCommandMap: () => Record< 'app-limit-credit': appLimitCreditCmd, 'org-member': orgMemberCmd, 'app-permission-default': appPermissionDefaultCmd, - 'app-limit-credit-code': appLimitCreditCodeCmd, - 'org-permission-default': orgPermissionDefaultCmd, 'app-admin-grant': appAdminGrantCmd, 'app-owner-grant': appOwnerGrantCmd, + 'org-permission-default': orgPermissionDefaultCmd, + 'app-membership-default': appMembershipDefaultCmd, + 'org-admin-grant': orgAdminGrantCmd, + 'org-membership-default': orgMembershipDefaultCmd, + 'org-owner-grant': orgOwnerGrantCmd, 'app-limit-caps-default': appLimitCapsDefaultCmd, 'org-limit-caps-default': orgLimitCapsDefaultCmd, 'app-limit-cap': appLimitCapCmd, 'org-limit-cap': orgLimitCapCmd, - 'org-admin-grant': orgAdminGrantCmd, - 'org-owner-grant': orgOwnerGrantCmd, - 'membership-type': membershipTypeCmd, + 'org-chart-edge': orgChartEdgeCmd, 'app-limit-default': appLimitDefaultCmd, 'org-limit-default': orgLimitDefaultCmd, 'org-limit-credit': orgLimitCreditCmd, + 'app-limit-credit-code': appLimitCreditCodeCmd, 'app-limit-warning': appLimitWarningCmd, - 'org-limit-warning': orgLimitWarningCmd, 'org-chart-edge-grant': orgChartEdgeGrantCmd, 'app-claimed-invite': appClaimedInviteCmd, + 'org-limit-warning': orgLimitWarningCmd, + 'membership-type': membershipTypeCmd, 'app-grant': appGrantCmd, - 'app-membership-default': appMembershipDefaultCmd, - 'org-membership-default': orgMembershipDefaultCmd, 'org-claimed-invite': orgClaimedInviteCmd, + 'org-grant': orgGrantCmd, 'app-limit-event': appLimitEventCmd, 'org-limit-event': orgLimitEventCmd, - 'org-grant': orgGrantCmd, - 'org-chart-edge': orgChartEdgeCmd, - 'usage-snapshot': usageSnapshotCmd, - 'app-limit': appLimitCmd, - 'app-invite': appInviteCmd, 'org-membership-setting': orgMembershipSettingCmd, + 'app-membership': appMembershipCmd, + 'app-limit': appLimitCmd, + 'org-membership': orgMembershipCmd, + 'org-member-profile': orgMemberProfileCmd, 'org-limit-aggregate': orgLimitAggregateCmd, 'org-limit': orgLimitCmd, - 'org-member-profile': orgMemberProfileCmd, - 'app-membership': appMembershipCmd, + 'app-invite': appInviteCmd, 'org-invite': orgInviteCmd, - 'org-membership': orgMembershipCmd, 'app-permissions-get-padded-mask': appPermissionsGetPaddedMaskCmd, 'org-permissions-get-padded-mask': orgPermissionsGetPaddedMaskCmd, 'org-is-manager-of': orgIsManagerOfCmd, @@ -132,7 +130,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-limit appLimit CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-membership appMembership CRUD operations\n org-invite orgInvite CRUD operations\n org-membership orgMembership CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\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 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 submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n membership-type membershipType CRUD operations\n app-grant appGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-grant orgGrant CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n app-membership appMembership CRUD operations\n app-limit appLimit CRUD operations\n org-membership orgMembership CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n app-invite appInvite CRUD operations\n org-invite orgInvite CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\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 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 submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts b/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts index 0e8be421d2..1cec8ade46 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts @@ -16,6 +16,8 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', name: 'string', actorId: 'uuid', entityId: 'uuid', @@ -27,7 +29,7 @@ const fieldSchema: FieldSchema = { reason: 'string', }; const usage = - '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n create Create a new appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n get Get a appLimitEvent by ID\n create Create a new appLimitEvent\n update Update an existing appLimitEvent\n delete Delete a appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -44,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +63,14 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(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); @@ -71,6 +79,8 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -100,6 +110,8 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -126,6 +138,44 @@ async function handleFindFirst(argv: Partial>, _prompter 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.appLimitEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: 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, [ @@ -213,6 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In reason: cleanedData.reason, }, select: { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -234,3 +286,150 @@ async function handleCreate(argv: Partial>, prompter: In 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, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitEventPatch; + const client = getClient(); + const result = await client.appLimitEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: 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.appLimitEvent + .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/admin/cli/commands/org-limit-event.ts b/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts index c8ef656d6e..20f8250015 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts @@ -16,6 +16,8 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', name: 'string', actorId: 'uuid', entityId: 'uuid', @@ -27,7 +29,7 @@ const fieldSchema: FieldSchema = { reason: 'string', }; const usage = - '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n create Create a new orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n get Get a orgLimitEvent by ID\n create Create a new orgLimitEvent\n update Update an existing orgLimitEvent\n delete Delete a orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -44,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +63,14 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(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); @@ -71,6 +79,8 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -100,6 +110,8 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -126,6 +138,44 @@ async function handleFindFirst(argv: Partial>, _prompter 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.orgLimitEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: 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, [ @@ -213,6 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In reason: cleanedData.reason, }, select: { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -234,3 +286,150 @@ async function handleCreate(argv: Partial>, prompter: In 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, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitEventPatch; + const client = getClient(); + const result = await client.orgLimitEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: 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.orgLimitEvent + .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/admin/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index 06cda7b6e2..b973588a8f 100644 --- a/sdk/constructive-cli/src/admin/orm/README.md +++ b/sdk/constructive-cli/src/admin/orm/README.md @@ -30,42 +30,41 @@ const db = createClient({ | `appLimitCredit` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | +| `orgLimitWarning` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `orgGrant` | findMany, findOne, create, update, delete | | `appLimitEvent` | findMany, findOne, create, update, delete | | `orgLimitEvent` | findMany, findOne, create, update, delete | -| `orgGrant` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | -| `usageSnapshot` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgMembership` | findMany, findOne, create, update, delete | +| `orgMemberProfile` | findMany, findOne, create, update, delete | | `orgLimitAggregate` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | -| `orgMemberProfile` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | -| `orgMembership` | findMany, findOne, create, update, delete | ## Table Operations @@ -355,37 +354,72 @@ const updated = await db.appPermissionDefault.update({ where: { id: '' }, const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.appAdminGrant` -CRUD operations for AppLimitCreditCode records. +CRUD operations for AppAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// List all 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.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermissionDefault` @@ -419,9 +453,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appAdminGrant` +### `db.appMembershipDefault` -CRUD operations for AppAdminGrant records. +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgAdminGrant` + +CRUD operations for OrgAdminGrant records. **Fields:** @@ -430,6 +499,7 @@ CRUD operations for AppAdminGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -437,25 +507,60 @@ CRUD operations for AppAdminGrant records. **Operations:** ```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all 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.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: 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.appAdminGrant.create({ data: { isGrant: '', actorId: '', 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.appAdminGrant.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.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appOwnerGrant` +### `db.orgMembershipDefault` -CRUD operations for AppOwnerGrant records. +CRUD operations for OrgMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: 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 } }).execute(); + +// Create +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, 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.orgOwnerGrant` + +CRUD operations for OrgOwnerGrant records. **Fields:** @@ -464,6 +569,7 @@ CRUD operations for AppOwnerGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -471,20 +577,20 @@ CRUD operations for AppOwnerGrant records. **Operations:** ```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all 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.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: 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.appOwnerGrant.create({ data: { isGrant: '', actorId: '', 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.appOwnerGrant.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.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -613,154 +719,86 @@ const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { n const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgChartEdge` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdge records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// 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 } }).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.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.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, 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.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.appLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: 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.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgLimitDefault` -CRUD operations for MembershipType records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | +| `id` | UUID | No | | `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** @@ -816,42 +854,42 @@ const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitWarning` +### `db.appLimitCreditCode` -CRUD operations for AppLimitWarning records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitWarning` +### `db.appLimitWarning` -CRUD operations for OrgLimitWarning records. +CRUD operations for AppLimitWarning records. **Fields:** @@ -862,25 +900,24 @@ CRUD operations for OrgLimitWarning records. | `warningType` | String | Yes | | `thresholdValue` | BigInt | Yes | | `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -954,109 +991,107 @@ const updated = await db.appClaimedInvite.update({ where: { id: '' }, data const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appGrant` +### `db.orgLimitWarning` -CRUD operations for AppGrant records. +CRUD operations for OrgLimitWarning records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitWarning records +const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: 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.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: 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.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.appGrant` -CRUD operations for OrgMembershipDefault records. +CRUD operations for AppGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all 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.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: 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.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgClaimedInvite` @@ -1094,51 +1129,52 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` +### `db.orgGrant` -CRUD operations for AppLimitEvent records. +CRUD operations for OrgGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | Yes | +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all 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.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, 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.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitEvent` +### `db.appLimitEvent` -CRUD operations for OrgLimitEvent records. +CRUD operations for AppLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | @@ -1152,61 +1188,64 @@ CRUD operations for OrgLimitEvent records. **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgGrant` +### `db.orgLimitEvent` -CRUD operations for OrgGrant records. +CRUD operations for OrgLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | +| `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all 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(); +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgChartEdge` +### `db.orgMembershipSetting` -CRUD operations for OrgChartEdge records. +CRUD operations for OrgMembershipSetting records. **Fields:** @@ -1215,63 +1254,79 @@ CRUD operations for OrgChartEdge records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | | `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | 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 } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: 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 } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.usageSnapshot` +### `db.appMembership` -CRUD operations for UsageSnapshot records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `databaseId` | UUID | Yes | -| `metricName` | String | Yes | -| `metricValue` | BigInt | Yes | -| `dimensions` | JSON | Yes | -| `capturedAt` | Datetime | Yes | | `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all usageSnapshot records -const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); +// List all 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.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: 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.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, 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.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -1313,50 +1368,55 @@ const updated = await db.appLimit.update({ where: { id: '' }, data: { name const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.appInvite` +### `db.orgMembership` -CRUD operations for AppInvite records. +CRUD operations for OrgMembership 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 | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.orgMemberProfile` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgMemberProfile records. **Fields:** @@ -1365,35 +1425,32 @@ CRUD operations for OrgMembershipSetting records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | +| `membershipId` | UUID | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `actorId` | UUID | Yes | +| `displayName` | String | Yes | +| `email` | String | Yes | +| `title` | String | Yes | +| `bio` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all orgMemberProfile records +const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitAggregate` @@ -1476,87 +1533,45 @@ const updated = await db.orgLimit.update({ where: { id: '' }, data: { name const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMemberProfile` +### `db.appInvite` -CRUD operations for OrgMemberProfile records. +CRUD operations for AppInvite 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 | +| `profileId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembership` - -CRUD operations for AppMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all 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(); +// List all appInvite records +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: 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.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: 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.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` @@ -1603,52 +1618,6 @@ const updated = await db.orgInvite.update({ where: { id: '' }, data: { ema const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.appPermissionsGetPaddedMask` diff --git a/sdk/constructive-cli/src/admin/orm/index.ts b/sdk/constructive-cli/src/admin/orm/index.ts index ceecedd2a4..3bd22a1077 100644 --- a/sdk/constructive-cli/src/admin/orm/index.ts +++ b/sdk/constructive-cli/src/admin/orm/index.ts @@ -14,46 +14,45 @@ import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; import { AppLimitCreditModel } from './models/appLimitCredit'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; import { AppLimitCapModel } from './models/appLimitCap'; import { OrgLimitCapModel } from './models/orgLimitCap'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitCreditModel } from './models/orgLimitCredit'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; +import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { MembershipTypeModel } from './models/membershipType'; import { AppGrantModel } from './models/appGrant'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { OrgGrantModel } from './models/orgGrant'; import { AppLimitEventModel } from './models/appLimitEvent'; import { OrgLimitEventModel } from './models/orgLimitEvent'; -import { OrgGrantModel } from './models/orgGrant'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; -import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppLimitModel } from './models/appLimit'; -import { AppInviteModel } from './models/appInvite'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; +import { AppMembershipModel } from './models/appMembership'; +import { AppLimitModel } from './models/appLimit'; +import { OrgMembershipModel } from './models/orgMembership'; +import { OrgMemberProfileModel } from './models/orgMemberProfile'; import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { OrgLimitModel } from './models/orgLimit'; -import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { AppMembershipModel } from './models/appMembership'; +import { AppInviteModel } from './models/appInvite'; import { OrgInviteModel } from './models/orgInvite'; -import { OrgMembershipModel } from './models/orgMembership'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; @@ -94,42 +93,41 @@ export function createClient(config: OrmClientConfig) { appLimitCredit: new AppLimitCreditModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), appLimitCap: new AppLimitCapModel(client), orgLimitCap: new OrgLimitCapModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - membershipType: new MembershipTypeModel(client), + orgChartEdge: new OrgChartEdgeModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitCredit: new OrgLimitCreditModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), appLimitWarning: new AppLimitWarningModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), + orgLimitWarning: new OrgLimitWarningModel(client), + membershipType: new MembershipTypeModel(client), appGrant: new AppGrantModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), + orgGrant: new OrgGrantModel(client), appLimitEvent: new AppLimitEventModel(client), orgLimitEvent: new OrgLimitEventModel(client), - orgGrant: new OrgGrantModel(client), - orgChartEdge: new OrgChartEdgeModel(client), - usageSnapshot: new UsageSnapshotModel(client), - appLimit: new AppLimitModel(client), - appInvite: new AppInviteModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), + appMembership: new AppMembershipModel(client), + appLimit: new AppLimitModel(client), + orgMembership: new OrgMembershipModel(client), + orgMemberProfile: new OrgMemberProfileModel(client), orgLimitAggregate: new OrgLimitAggregateModel(client), orgLimit: new OrgLimitModel(client), - orgMemberProfile: new OrgMemberProfileModel(client), - appMembership: new AppMembershipModel(client), + appInvite: new AppInviteModel(client), orgInvite: new OrgInviteModel(client), - orgMembership: new OrgMembershipModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-cli/src/admin/orm/input-types.ts b/sdk/constructive-cli/src/admin/orm/input-types.ts index 0e9e56aec5..54a2d80e58 100644 --- a/sdk/constructive-cli/src/admin/orm/input-types.ts +++ b/sdk/constructive-cli/src/admin/orm/input-types.ts @@ -316,17 +316,27 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { +/** Records of admin role grants and revocations between members */ +export interface AppAdminGrant { id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Records of ownership transfers and grants between members */ +export interface AppOwnerGrant { + id: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { @@ -336,24 +346,52 @@ export interface OrgPermissionDefault { /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** Records of admin role grants and revocations between members */ -export interface AppAdminGrant { +export interface OrgAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} /** Records of ownership transfers and grants between members */ -export interface AppOwnerGrant { +export interface OrgOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -394,46 +432,21 @@ export interface OrgLimitCap { /** Override cap value for this entity */ max?: string | null; } -/** Records of admin role grants and revocations between members */ -export interface OrgAdminGrant { +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - /** The entity (org or group) this admin grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface OrgOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - /** The entity (org or group) this ownership grant applies to */ + /** Organization this hierarchy edge belongs to */ entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; } /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { @@ -471,20 +484,20 @@ export interface OrgLimitCredit { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string | null; } -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; } /** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { +export interface AppLimitWarning { id: string; /** Limit name this warning applies to (must match a default_limits entry) */ name?: string | null; @@ -494,8 +507,6 @@ export interface OrgLimitWarning { thresholdValue?: string | null; /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -529,6 +540,35 @@ export interface AppClaimedInvite { createdAt?: string | null; updatedAt?: string | null; } +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface OrgLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; +} /** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; @@ -542,30 +582,6 @@ export interface AppGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; @@ -579,8 +595,26 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ +export interface OrgGrant { + id: string; + /** Bitmask of permissions being granted or revoked */ + permissions?: string | null; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ + actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Append-only log of limit events for historical reporting and audit */ export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -602,6 +636,9 @@ export interface AppLimitEvent { } /** Append-only log of limit events for historical reporting and audit */ export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -621,52 +658,62 @@ export interface OrgLimitEvent { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ -export interface OrgGrant { +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - /** The entity (org or group) this permission grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; } -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ - entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; -} -/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ -export interface UsageSnapshot { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string | null; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string | null; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string | null; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: Record | null; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string | null; - id: string; -} -/** Tracks per-actor usage counts against configurable maximum limits */ + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + profileId?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; /** Name identifier of the limit being tracked */ @@ -690,57 +737,60 @@ export interface AppLimit { /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; } -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface OrgMembership { id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ + entityId?: string | null; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean | null; + profileId?: string | null; } -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { +/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ +export interface OrgMemberProfile { id: string; createdAt?: string | null; updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ + /** References the membership this profile belongs to (1:1) */ + membershipId?: string | null; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string | null; + /** Display name shown to other entity members */ + displayName?: string | null; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string | null; + /** Job title or role description visible to other entity members */ + title?: string | null; + /** Short biography visible to other entity members */ + bio?: string | null; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage | null; } /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ export interface OrgLimitAggregate { @@ -793,56 +843,31 @@ export interface OrgLimit { periodCredits?: string | null; entityId?: string | null; } -/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ -export interface OrgMemberProfile { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string | null; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string | null; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string | null; - /** Display name shown to other entity members */ - displayName?: string | null; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string | null; - /** Job title or role description visible to other entity members */ - title?: string | null; - /** Short biography visible to other entity members */ - bio?: string | null; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { id: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ + data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { @@ -875,39 +900,6 @@ export interface OrgInvite { updatedAt?: string | null; entityId?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface OrgMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - /** References the entity (org or group) this membership belongs to */ - entityId?: string | null; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean | null; - profileId?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -937,20 +929,18 @@ export interface AppLimitCreditRelations { } export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} +export interface OrgPermissionDefaultRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgAdminGrantRelations {} +export interface OrgMembershipDefaultRelations {} +export interface OrgOwnerGrantRelations {} export interface AppLimitCapsDefaultRelations {} export interface OrgLimitCapsDefaultRelations {} export interface AppLimitCapRelations {} export interface OrgLimitCapRelations {} -export interface OrgAdminGrantRelations {} -export interface OrgOwnerGrantRelations {} -export interface MembershipTypeRelations {} +export interface OrgChartEdgeRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; @@ -961,37 +951,38 @@ export interface OrgLimitDefaultRelations { export interface OrgLimitCreditRelations { defaultLimit?: OrgLimitDefault | null; } +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} export interface AppLimitWarningRelations {} -export interface OrgLimitWarningRelations {} export interface OrgChartEdgeGrantRelations {} export interface AppClaimedInviteRelations {} +export interface OrgLimitWarningRelations {} +export interface MembershipTypeRelations {} export interface AppGrantRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations {} export interface OrgClaimedInviteRelations {} +export interface OrgGrantRelations {} export interface AppLimitEventRelations {} export interface OrgLimitEventRelations {} -export interface OrgGrantRelations {} -export interface OrgChartEdgeRelations {} -export interface UsageSnapshotRelations {} -export interface AppLimitRelations {} -export interface AppInviteRelations {} export interface OrgMembershipSettingRelations {} -export interface OrgLimitAggregateRelations {} -export interface OrgLimitRelations {} -export interface OrgMemberProfileRelations { - membership?: OrgMembership | null; -} export interface AppMembershipRelations {} -export interface OrgInviteRelations {} +export interface AppLimitRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } -// ============ Entity Types With Relations ============ -export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & - OrgGetManagersRecordRelations; -export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & - OrgGetSubordinatesRecordRelations; +export interface OrgMemberProfileRelations { + membership?: OrgMembership | null; +} +export interface OrgLimitAggregateRelations {} +export interface OrgLimitRelations {} +export interface AppInviteRelations {} +export interface OrgInviteRelations {} +// ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & @@ -1002,46 +993,45 @@ export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelatio export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; +export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; -export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; -export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; +export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; +export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; -export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; -export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { userId?: boolean; @@ -1107,42 +1097,59 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { +export type AppAdminGrantSelect = { id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type OrgPermissionDefaultSelect = { id?: boolean; permissions?: boolean; entityId?: boolean; }; -export type AppAdminGrantSelect = { +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; }; -export type AppOwnerGrantSelect = { +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; +}; +export type OrgOwnerGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1169,31 +1176,15 @@ export type OrgLimitCapSelect = { entityId?: boolean; max?: boolean; }; -export type OrgAdminGrantSelect = { +export type OrgChartEdgeSelect = { id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; -}; -export type OrgOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; }; export type AppLimitDefaultSelect = { id?: boolean; @@ -1237,20 +1228,31 @@ export type OrgLimitCreditSelect = { select: OrgLimitDefaultSelect; }; }; -export type AppLimitWarningSelect = { +export type AppLimitCreditCodeSelect = { id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; }; -export type OrgLimitWarningSelect = { +export type AppLimitWarningSelect = { id?: boolean; name?: boolean; warningType?: boolean; thresholdValue?: boolean; taskIdentifier?: boolean; - entityId?: boolean; }; export type OrgChartEdgeGrantSelect = { id?: boolean; @@ -1271,6 +1273,22 @@ export type AppClaimedInviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; + entityId?: boolean; +}; +export type MembershipTypeSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; +}; export type AppGrantSelect = { id?: boolean; permissions?: boolean; @@ -1280,24 +1298,6 @@ export type AppGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; -}; export type OrgClaimedInviteSelect = { id?: boolean; data?: boolean; @@ -1307,7 +1307,19 @@ export type OrgClaimedInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; +export type OrgGrantSelect = { + id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1319,6 +1331,8 @@ export type AppLimitEventSelect = { reason?: boolean; }; export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1329,33 +1343,39 @@ export type OrgLimitEventSelect = { maxAtEvent?: boolean; reason?: boolean; }; -export type OrgGrantSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; }; -export type OrgChartEdgeSelect = { +export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; -}; -export type UsageSnapshotSelect = { - databaseId?: boolean; - metricName?: boolean; - metricValue?: boolean; - dimensions?: boolean; - capturedAt?: boolean; - id?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; }; export type AppLimitSelect = { id?: boolean; @@ -1370,36 +1390,44 @@ export type AppLimitSelect = { purchasedCredits?: boolean; periodCredits?: boolean; }; -export type AppInviteSelect = { +export type OrgMembershipSelect = { id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; -}; -export type OrgMembershipSettingSelect = { + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + entityId?: boolean; + isReadOnly?: boolean; + profileId?: boolean; + orgMemberProfileByMembershipId?: { + select: OrgMemberProfileSelect; + }; +}; +export type OrgMemberProfileSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; + membershipId?: boolean; entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; + actorId?: boolean; + displayName?: boolean; + email?: boolean; + title?: boolean; + bio?: boolean; + profilePicture?: boolean; + membership?: { + select: OrgMembershipSelect; + }; }; export type OrgLimitAggregateSelect = { id?: boolean; @@ -1429,39 +1457,20 @@ export type OrgLimitSelect = { periodCredits?: boolean; entityId?: boolean; }; -export type OrgMemberProfileSelect = { +export type AppInviteSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - membershipId?: boolean; - entityId?: boolean; - actorId?: boolean; - displayName?: boolean; email?: boolean; - title?: boolean; - bio?: boolean; - profilePicture?: boolean; - membership?: { - select: OrgMembershipSelect; - }; -}; -export type AppMembershipSelect = { - id?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -1481,29 +1490,6 @@ export type OrgInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; -export type OrgMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - entityId?: boolean; - isReadOnly?: boolean; - profileId?: boolean; - orgMemberProfileByMembershipId?: { - select: OrgMemberProfileSelect; - }; -}; // ============ Table Filter Types ============ export interface OrgGetManagersRecordFilter { userId?: UUIDFilter; @@ -1643,31 +1629,45 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { +export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppLimitCreditCodeFilter[]; + and?: AppAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; + or?: AppAdminGrantFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppOwnerGrantFilter[]; + /** Negates the expression. */ + not?: AppOwnerGrantFilter; } export interface OrgPermissionDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1683,13 +1683,37 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } -export interface AppAdminGrantFilter { +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; +} +export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1697,19 +1721,43 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; + or?: OrgAdminGrantFilter[]; /** Negates the expression. */ - not?: AppAdminGrantFilter; + not?: OrgAdminGrantFilter; } -export interface AppOwnerGrantFilter { +export interface OrgMembershipDefaultFilter { + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} +export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1717,11 +1765,11 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; + and?: OrgOwnerGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; + or?: OrgOwnerGrantFilter[]; /** Negates the expression. */ - not?: AppOwnerGrantFilter; + not?: OrgOwnerGrantFilter; } export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1783,71 +1831,31 @@ export interface OrgLimitCapFilter { /** Negates the expression. */ not?: OrgLimitCapFilter; } -export interface OrgAdminGrantFilter { +export interface OrgChartEdgeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; + and?: OrgChartEdgeFilter[]; /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; + or?: OrgChartEdgeFilter[]; /** Negates the expression. */ - not?: OrgAdminGrantFilter; + not?: OrgChartEdgeFilter; } -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: 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?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -export interface AppLimitDefaultFilter { +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1915,25 +1923,33 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } -export interface AppLimitWarningFilter { +export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; + and?: AppLimitCreditCodeFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: AppLimitCreditCodeFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -export interface OrgLimitWarningFilter { +export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1944,14 +1960,12 @@ export interface OrgLimitWarningFilter { thresholdValue?: BigIntFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; + and?: AppLimitWarningFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; + or?: AppLimitWarningFilter[]; /** Negates the expression. */ - not?: OrgLimitWarningFilter; + not?: AppLimitWarningFilter; } export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1997,6 +2011,46 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} export interface AppGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2019,71 +2073,55 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } -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; -} -export interface OrgMembershipDefaultFilter { +export interface OrgClaimedInviteFilter { /** 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; - /** 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 `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: OrgClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: OrgClaimedInviteFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; + not?: OrgClaimedInviteFilter; } -export interface OrgClaimedInviteFilter { +export interface OrgGrantFilter { /** 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 `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; + and?: OrgGrantFilter[]; /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; + or?: OrgGrantFilter[]; /** Negates the expression. */ - not?: OrgClaimedInviteFilter; + not?: OrgGrantFilter; } export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2110,6 +2148,10 @@ export interface AppLimitEventFilter { not?: AppLimitEventFilter; } export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2135,77 +2177,85 @@ export interface OrgLimitEventFilter { /** Negates the expression. */ not?: OrgLimitEventFilter; } -export interface OrgGrantFilter { +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: OrgGrantFilter; + not?: OrgMembershipSettingFilter; } -export interface OrgChartEdgeFilter { +export interface AppMembershipFilter { /** 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 `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + /** 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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipFilter[]; + /** Negates the expression. */ + not?: AppMembershipFilter; +} +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2233,73 +2283,85 @@ export interface AppLimitFilter { /** Negates the expression. */ not?: AppLimitFilter; } -export interface AppInviteFilter { +export interface OrgMembershipFilter { /** 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 `profileId` field. */ - profileId?: UUIDFilter; - /** 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 `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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isExternal` field. */ + isExternal?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; + and?: OrgMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; + or?: OrgMembershipFilter[]; /** Negates the expression. */ - not?: AppInviteFilter; + not?: OrgMembershipFilter; + /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ + orgMemberProfileByMembershipId?: OrgMemberProfileFilter; + /** A related `orgMemberProfileByMembershipId` exists. */ + orgMemberProfileByMembershipIdExists?: boolean; } -export interface OrgMembershipSettingFilter { +export interface OrgMemberProfileFilter { /** 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 `membershipId` field. */ + membershipId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `bio` field. */ + bio?: StringFilter; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: OrgMemberProfileFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: OrgMemberProfileFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; + not?: OrgMemberProfileFilter; + /** Filter by the object’s `membership` relation. */ + membership?: OrgMembershipFilter; } export interface OrgLimitAggregateFilter { /** Filter by the object’s `id` field. */ @@ -2365,77 +2427,37 @@ export interface OrgLimitFilter { /** Negates the expression. */ not?: OrgLimitFilter; } -export interface OrgMemberProfileFilter { +export interface AppInviteFilter { /** 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 `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + 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 `profileId` field. */ + profileId?: UUIDFilter; + /** 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 `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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; + and?: AppInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; + or?: AppInviteFilter[]; /** Negates the expression. */ - not?: AppMembershipFilter; + not?: AppInviteFilter; } export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ @@ -2475,54 +2497,6 @@ export interface OrgInviteFilter { /** Negates the expression. */ not?: OrgInviteFilter; } -export interface OrgMembershipFilter { - /** 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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} // ============ OrderBy Types ============ export type OrgGetManagersRecordsOrderBy = | 'PRIMARY_KEY_ASC' @@ -2628,20 +2602,38 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = +export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2652,7 +2644,25 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppAdminGrantOrderBy = +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2662,13 +2672,33 @@ export type AppAdminGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppOwnerGrantOrderBy = +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2678,6 +2708,8 @@ export type AppOwnerGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -2728,58 +2760,26 @@ export type OrgLimitCapOrderBy = | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgChartEdgeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2822,21 +2822,21 @@ export type OrgLimitCreditOrderBy = | 'CREDIT_TYPE_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type AppLimitWarningOrderBy = +export type AppLimitCreditCodeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type OrgLimitWarningOrderBy = + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2849,9 +2849,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'TASK_IDENTIFIER_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2890,60 +2888,56 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppGrantOrderBy = +export type OrgLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; +export type AppGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'UPDATED_AT_DESC'; export type OrgClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2962,28 +2956,34 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppLimitEventOrderBy = +export type OrgGrantOrderBy = | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -3002,27 +3002,33 @@ export type OrgLimitEventOrderBy = | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type OrgGrantOrderBy = +export type OrgLimitEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgChartEdgeOrderBy = + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3032,32 +3038,64 @@ export type OrgChartEdgeOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type UsageSnapshotOrderBy = + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' | 'ID_ASC' - | 'ID_DESC'; + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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 AppLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3084,37 +3122,47 @@ export type AppLimitOrderBy = | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC'; -export type AppInviteOrderBy = +export type OrgMembershipOrderBy = | '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' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMembershipSettingOrderBy = + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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_EXTERNAL_ASC' + | 'IS_EXTERNAL_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' + | 'ENTITY_ID_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; +export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3124,28 +3172,22 @@ export type OrgMembershipSettingOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' + | 'MEMBERSHIP_ID_ASC' + | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'BIO_ASC' + | 'BIO_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC'; export type OrgLimitAggregateOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3202,68 +3244,36 @@ export type OrgLimitOrderBy = | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMemberProfileOrderBy = +export type AppInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | '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' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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'; + | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3300,46 +3310,6 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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_EXTERNAL_ASC' - | 'IS_EXTERNAL_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' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; @@ -3539,27 +3509,47 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateAppAdminGrantInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + appAdminGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface AppAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + appAdminGrantPatch: AppAdminGrantPatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteAppAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3583,47 +3573,99 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppAdminGrantInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - appAdminGrant: { + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + orgAdminGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppAdminGrantPatch { +export interface OrgAdminGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppAdminGrantInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - appAdminGrantPatch: AppAdminGrantPatch; + orgAdminGrantPatch: OrgAdminGrantPatch; } -export interface DeleteAppAdminGrantInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppOwnerGrantInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - appOwnerGrant: { + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppOwnerGrantPatch { +export interface OrgOwnerGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppOwnerGrantInput { +export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; + orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface DeleteAppOwnerGrantInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3683,107 +3725,59 @@ export interface AppLimitCapPatch { export interface UpdateAppLimitCapInput { clientMutationId?: string; id: string; - appLimitCapPatch: AppLimitCapPatch; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - orgLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface OrgLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - orgLimitCapPatch: OrgLimitCapPatch; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; + appLimitCapPatch: AppLimitCapPatch; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteAppLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateOrgOwnerGrantInput { +export interface CreateOrgLimitCapInput { clientMutationId?: string; - orgOwnerGrant: { - isGrant?: boolean; - actorId: string; + orgLimitCap: { + name: string; entityId: string; - grantorId?: string; + max?: string; }; } -export interface OrgOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgLimitCapPatch { + name?: string | null; entityId?: string | null; - grantorId?: string | null; + max?: string | null; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateOrgLimitCapInput { clientMutationId?: string; id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; + orgLimitCapPatch: OrgLimitCapPatch; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { +export interface CreateOrgChartEdgeInput { clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; }; } -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; } -export interface UpdateMembershipTypeInput { +export interface UpdateOrgChartEdgeInput { clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; } -export interface DeleteMembershipTypeInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; - id: number; + id: string; } export interface CreateAppLimitDefaultInput { clientMutationId?: string; @@ -3857,53 +3851,51 @@ export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitWarningInput { +export interface CreateAppLimitCreditCodeInput { clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; }; } -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; } -export interface UpdateAppLimitWarningInput { +export interface UpdateAppLimitCreditCodeInput { clientMutationId?: string; id: string; - appLimitWarningPatch: AppLimitWarningPatch; + appLimitCreditCodePatch: AppLimitCreditCodePatch; } -export interface DeleteAppLimitWarningInput { +export interface DeleteAppLimitCreditCodeInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitWarningInput { +export interface CreateAppLimitWarningInput { clientMutationId?: string; - orgLimitWarning: { + appLimitWarning: { name: string; warningType: string; thresholdValue: string; taskIdentifier: string; - entityId?: string; }; } -export interface OrgLimitWarningPatch { +export interface AppLimitWarningPatch { name?: string | null; warningType?: string | null; thresholdValue?: string | null; taskIdentifier?: string | null; - entityId?: string | null; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; + appLimitWarningPatch: AppLimitWarningPatch; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } @@ -3959,75 +3951,79 @@ export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppGrantInput { +export interface CreateOrgLimitWarningInput { clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; + orgLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + entityId?: string; }; } -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; +export interface OrgLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; + entityId?: string | null; } -export interface UpdateAppGrantInput { +export interface UpdateOrgLimitWarningInput { clientMutationId?: string; id: string; - appGrantPatch: AppGrantPatch; + orgLimitWarningPatch: OrgLimitWarningPatch; } -export interface DeleteAppGrantInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateAppMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppGrantInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + appGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface AppGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppGrantInput { clientMutationId?: string; id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + appGrantPatch: AppGrantPatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } @@ -4055,6 +4051,32 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitEventInput { clientMutationId?: string; appLimitEvent: { @@ -4097,107 +4119,109 @@ export interface CreateOrgLimitEventInput { entityId?: string; eventType?: string; delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgGrantInput { - clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; }; } -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; +export interface OrgLimitEventPatch { + name?: string | null; actorId?: string | null; entityId?: string | null; - grantorId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; } -export interface UpdateOrgGrantInput { +export interface UpdateOrgLimitEventInput { clientMutationId?: string; id: string; - orgGrantPatch: OrgGrantPatch; + orgLimitEventPatch: OrgLimitEventPatch; } -export interface DeleteOrgGrantInput { +export interface DeleteOrgLimitEventInput { clientMutationId?: string; id: string; } -export interface CreateOrgChartEdgeInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - orgChartEdge: { + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; entityId: string; - childId: string; - parentId?: string; - positionTitle?: string; - positionLevel?: number; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface OrgChartEdgePatch { +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; entityId?: string | null; - childId?: string | null; - parentId?: string | null; - positionTitle?: string | null; - positionLevel?: number | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateOrgChartEdgeInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - orgChartEdgePatch: OrgChartEdgePatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface CreateUsageSnapshotInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - usageSnapshot: { - databaseId: string; - metricName: string; - metricValue?: string; - dimensions?: Record; - capturedAt?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface UsageSnapshotPatch { - databaseId?: string | null; - metricName?: string | null; - metricValue?: string | null; - dimensions?: Record | null; - capturedAt?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; } -export interface UpdateUsageSnapshotInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - usageSnapshotPatch: UsageSnapshotPatch; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteUsageSnapshotInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } @@ -4237,77 +4261,82 @@ export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface CreateAppInviteInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; + orgMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + entityId: string; + isReadOnly?: boolean; profileId?: string; - expiresAt?: string; }; } -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; +export interface OrgMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isExternal?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + entityId?: string | null; + isReadOnly?: boolean | null; profileId?: string | null; - expiresAt?: string | null; } -export interface UpdateAppInviteInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - appInvitePatch: AppInvitePatch; + orgMembershipPatch: OrgMembershipPatch; } -export interface DeleteAppInviteInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; + orgMemberProfile: { + membershipId: string; entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; + actorId: string; + displayName?: string; + email?: string; + title?: string; + bio?: string; + profilePicture?: ConstructiveInternalTypeImage; }; } -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; +export interface OrgMemberProfilePatch { + membershipId?: string | null; entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; + actorId?: string | null; + displayName?: string | null; + email?: string | null; + title?: string | null; + bio?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + profilePictureUpload?: File | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + orgMemberProfilePatch: OrgMemberProfilePatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } @@ -4378,87 +4407,48 @@ export interface OrgLimitPatch { periodCredits?: string | null; entityId?: string | null; } -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppInviteInput { + clientMutationId?: string; + appInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; profileId?: string; + expiresAt?: string; }; } -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; +export interface AppInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; profileId?: string | null; + expiresAt?: string | null; } -export interface UpdateAppMembershipInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - appMembershipPatch: AppMembershipPatch; + appInvitePatch: AppInvitePatch; } -export interface DeleteAppMembershipInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } @@ -4504,58 +4494,8 @@ export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -4563,6 +4503,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, } as Record>; // ============ Custom Input Types (from schema) ============ export interface SubmitAppInviteCodeInput { @@ -4582,24 +4526,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitDefaultToManyAppLimitCreditFilter { /** Filters to entities where at least one related entity matches. */ @@ -4627,6 +4553,24 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ export interface IntervalFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -4652,6 +4596,41 @@ export interface IntervalFilter { /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: IntervalInput; } +/** 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). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} /** 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). */ @@ -4729,101 +4708,49 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** 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). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; + and?: AppLimitCreditFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; + or?: AppLimitCreditFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; + not?: AppLimitCreditFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `creditCodeId` field. */ creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; + and?: AppLimitCreditCodeItemFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; + or?: AppLimitCreditCodeItemFilter[]; /** Negates the expression. */ - not?: AppLimitCreditFilter; + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } @@ -4852,6 +4779,23 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -4998,6 +4942,31 @@ export interface StringFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: 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?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -5025,31 +4994,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** 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?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** 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. */ @@ -5513,184 +5457,319 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type CreateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +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 CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface CreateOrgPermissionDefaultPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateOrgPermissionDefaultPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateOrgPermissionDefaultPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateOrgPermissionDefaultPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteOrgPermissionDefaultPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteOrgPermissionDefaultPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateAppAdminGrantPayload { +export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type CreateAppAdminGrantPayloadSelect = { +export type CreateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateAppAdminGrantPayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateAppAdminGrantPayloadSelect = { +export type UpdateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteAppAdminGrantPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type DeleteAppAdminGrantPayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateAppOwnerGrantPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateAppOwnerGrantPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateAppOwnerGrantPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateAppOwnerGrantPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteAppOwnerGrantPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteAppOwnerGrantPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -5843,169 +5922,79 @@ export type CreateOrgLimitCapPayloadSelect = { select: OrgLimitCapEdgeSelect; }; }; -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type UpdateOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type DeleteOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type CreateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface UpdateOrgOwnerGrantPayload { +export interface UpdateOrgLimitCapPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } -export type UpdateOrgOwnerGrantPayloadSelect = { +export type UpdateOrgLimitCapPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitCap?: { + select: OrgLimitCapSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; }; }; -export interface DeleteOrgOwnerGrantPayload { +export interface DeleteOrgLimitCapPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } -export type DeleteOrgOwnerGrantPayloadSelect = { +export type DeleteOrgLimitCapPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitCap?: { + select: OrgLimitCapSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; }; }; -export interface CreateMembershipTypePayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateMembershipTypePayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -6143,6 +6132,51 @@ export type DeleteOrgLimitCreditPayloadSelect = { select: OrgLimitCreditEdgeSelect; }; }; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -6188,51 +6222,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; /** The `OrgChartEdgeGrant` that was created by this mutation. */ @@ -6323,139 +6312,139 @@ export type DeleteAppClaimedInvitePayloadSelect = { select: AppClaimedInviteEdgeSelect; }; }; -export interface CreateAppGrantPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type CreateAppGrantPayloadSelect = { +export type CreateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface UpdateAppGrantPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type UpdateAppGrantPayloadSelect = { +export type UpdateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface DeleteAppGrantPayload { +export interface DeleteOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type DeleteAppGrantPayloadSelect = { +export type DeleteOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; export interface CreateOrgClaimedInvitePayload { @@ -6503,28 +6492,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -6570,94 +6537,184 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateOrgChartEdgePayload { +export interface CreateAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type CreateOrgChartEdgePayloadSelect = { +export type CreateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface UpdateOrgChartEdgePayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type UpdateOrgChartEdgePayloadSelect = { +export type UpdateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface DeleteOrgChartEdgePayload { +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type DeleteOrgChartEdgePayloadSelect = { +export type DeleteAppLimitEventPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface CreateUsageSnapshotPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was created by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type CreateUsageSnapshotPayloadSelect = { +export type CreateAppMembershipPayloadSelect = { clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; + appMembership?: { + select: AppMembershipSelect; }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; -export interface UpdateUsageSnapshotPayload { +export interface UpdateAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was updated by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type UpdateUsageSnapshotPayloadSelect = { +export type UpdateAppMembershipPayloadSelect = { clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; + appMembership?: { + select: AppMembershipSelect; }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; -export interface DeleteUsageSnapshotPayload { +export interface DeleteAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was deleted by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type DeleteUsageSnapshotPayloadSelect = { +export type DeleteAppMembershipPayloadSelect = { clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; + appMembership?: { + select: AppMembershipSelect; }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; export interface CreateAppLimitPayload { @@ -6705,94 +6762,94 @@ export type DeleteAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; -export interface CreateAppInvitePayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type CreateAppInvitePayloadSelect = { +export type CreateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface UpdateAppInvitePayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type UpdateAppInvitePayloadSelect = { +export type UpdateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface DeleteAppInvitePayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type DeleteAppInvitePayloadSelect = { +export type DeleteOrgMembershipPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type UpdateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type DeleteOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; export interface CreateOrgLimitAggregatePayload { @@ -6885,94 +6942,49 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface CreateAppMembershipPayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type CreateAppMembershipPayloadSelect = { +export type CreateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface UpdateAppMembershipPayload { +export interface UpdateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type UpdateAppMembershipPayloadSelect = { +export type UpdateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface DeleteAppMembershipPayload { +export interface DeleteAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type DeleteAppMembershipPayloadSelect = { +export type DeleteAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; export interface CreateOrgInvitePayload { @@ -7020,51 +7032,6 @@ export type DeleteOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -7157,25 +7124,37 @@ export type OrgMemberEdgeSelect = { /** A `AppPermissionDefault` edge in the connection. */ export interface AppPermissionDefaultEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { + cursor?: string | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; } -export type AppPermissionDefaultEdgeSelect = { +export type AppAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionDefaultSelect; + select: AppAdminGrantSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `AppOwnerGrant` at the end of the edge. */ + node?: AppOwnerGrant | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type AppOwnerGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: AppOwnerGrantSelect; }; }; /** A `OrgPermissionDefault` edge in the connection. */ @@ -7190,28 +7169,52 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type AppAdminGrantEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppAdminGrantSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; } -export type AppOwnerGrantEdgeSelect = { +export type OrgAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppOwnerGrantSelect; + select: OrgAdminGrantSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -7262,40 +7265,16 @@ export type OrgLimitCapEdgeSelect = { select: OrgLimitCapSelect; }; }; -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -export type OrgAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgAdminGrantSelect; - }; -}; -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -export type OrgOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgOwnerGrantSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type MembershipTypeEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: OrgChartEdgeSelect; }; }; /** A `AppLimitDefault` edge in the connection. */ @@ -7334,28 +7313,28 @@ export type OrgLimitCreditEdgeSelect = { select: OrgLimitCreditSelect; }; }; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; } -export type AppLimitWarningEdgeSelect = { +export type AppLimitCreditCodeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitWarningSelect; + select: AppLimitCreditCodeSelect; }; }; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; } -export type OrgLimitWarningEdgeSelect = { +export type AppLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitWarningSelect; + select: AppLimitWarningSelect; }; }; /** A `OrgChartEdgeGrant` edge in the connection. */ @@ -7382,40 +7361,40 @@ export type AppClaimedInviteEdgeSelect = { select: AppClaimedInviteSelect; }; }; -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -export type AppGrantEdgeSelect = { +export type OrgLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: AppGrantSelect; + select: OrgLimitWarningSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type AppGrantEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: AppGrantSelect; }; }; /** A `OrgClaimedInvite` edge in the connection. */ @@ -7442,28 +7421,52 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type OrgChartEdgeEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: OrgChartEdgeSelect; + select: AppLimitEventSelect; + }; +}; +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} +export type OrgLimitEventEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitEventSelect; + }; +}; +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} +export type OrgMembershipSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSettingSelect; }; }; -/** A `UsageSnapshot` edge in the connection. */ -export interface UsageSnapshotEdge { +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { cursor?: string | null; - /** The `UsageSnapshot` at the end of the edge. */ - node?: UsageSnapshot | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; } -export type UsageSnapshotEdgeSelect = { +export type AppMembershipEdgeSelect = { cursor?: boolean; node?: { - select: UsageSnapshotSelect; + select: AppMembershipSelect; }; }; /** A `AppLimit` edge in the connection. */ @@ -7478,28 +7481,28 @@ export type AppLimitEdgeSelect = { select: AppLimitSelect; }; }; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } -export type AppInviteEdgeSelect = { +export type OrgMembershipEdgeSelect = { cursor?: boolean; node?: { - select: AppInviteSelect; + select: OrgMembershipSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; } -export type OrgMembershipSettingEdgeSelect = { +export type OrgMemberProfileEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipSettingSelect; + select: OrgMemberProfileSelect; }; }; /** A `OrgLimitAggregate` edge in the connection. */ @@ -7526,28 +7529,16 @@ export type OrgLimitEdgeSelect = { select: OrgLimitSelect; }; }; -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -export type OrgMemberProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberProfileSelect; - }; -}; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; } -export type AppMembershipEdgeSelect = { +export type AppInviteEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: AppInviteSelect; }; }; /** A `OrgInvite` edge in the connection. */ @@ -7562,15 +7553,3 @@ export type OrgInviteEdgeSelect = { select: OrgInviteSelect; }; }; -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -export type OrgMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSelect; - }; -}; diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts +++ b/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-cli/src/admin/orm/models/index.ts b/sdk/constructive-cli/src/admin/orm/models/index.ts index 68ff613876..baa9547682 100644 --- a/sdk/constructive-cli/src/admin/orm/models/index.ts +++ b/sdk/constructive-cli/src/admin/orm/models/index.ts @@ -12,39 +12,38 @@ export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; export { AppLimitCreditModel } from './appLimitCredit'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; export { AppLimitCapModel } from './appLimitCap'; export { OrgLimitCapModel } from './orgLimitCap'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgLimitCreditModel } from './orgLimitCredit'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; export { AppLimitWarningModel } from './appLimitWarning'; -export { OrgLimitWarningModel } from './orgLimitWarning'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; +export { OrgLimitWarningModel } from './orgLimitWarning'; +export { MembershipTypeModel } from './membershipType'; export { AppGrantModel } from './appGrant'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { OrgGrantModel } from './orgGrant'; export { AppLimitEventModel } from './appLimitEvent'; export { OrgLimitEventModel } from './orgLimitEvent'; -export { OrgGrantModel } from './orgGrant'; -export { OrgChartEdgeModel } from './orgChartEdge'; -export { UsageSnapshotModel } from './usageSnapshot'; -export { AppLimitModel } from './appLimit'; -export { AppInviteModel } from './appInvite'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; +export { AppMembershipModel } from './appMembership'; +export { AppLimitModel } from './appLimit'; +export { OrgMembershipModel } from './orgMembership'; +export { OrgMemberProfileModel } from './orgMemberProfile'; export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { OrgLimitModel } from './orgLimit'; -export { OrgMemberProfileModel } from './orgMemberProfile'; -export { AppMembershipModel } from './appMembership'; +export { AppInviteModel } from './appInvite'; export { OrgInviteModel } from './orgInvite'; -export { OrgMembershipModel } from './orgMembership'; diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index 83eb4f0e75..3481d60f8e 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -30,7 +30,7 @@ csdk auth set-token | `phone-number` | phoneNumber CRUD operations | | `crypto-address` | cryptoAddress CRUD operations | | `webauthn-credential` | webauthnCredential CRUD operations | -| `audit-log` | auditLog CRUD operations | +| `audit-log-auth` | auditLogAuth CRUD operations | | `identity-provider` | identityProvider CRUD operations | | `role-type` | roleType CRUD operations | | `user-connected-account` | userConnectedAccount CRUD operations | @@ -55,10 +55,10 @@ csdk auth set-token | `reset-password` | resetPassword | | `sign-in-cross-origin` | signInCrossOrigin | | `sign-up` | signUp | -| `request-cross-origin-token` | requestCrossOriginToken | | `sign-in` | signIn | | `extend-token-expires` | extendTokenExpires | | `create-api-key` | createApiKey | +| `request-cross-origin-token` | requestCrossOriginToken | | `forgot-password` | forgotPassword | | `send-verification-email` | sendVerificationEmail | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. @@ -230,23 +230,24 @@ CRUD operations for WebauthnCredential records. **Required create fields:** `credentialId`, `publicKey`, `webauthnUserId`, `credentialDeviceType` **Optional create fields (backend defaults):** `ownerId`, `signCount`, `transports`, `backupEligible`, `backupState`, `name`, `lastUsedAt` -### `audit-log` +### `audit-log-auth` -CRUD operations for AuditLog records. +CRUD operations for AuditLogAuth records. | Subcommand | Description | |------------|-------------| -| `list` | List all auditLog records | -| `find-first` | Find first matching auditLog record | -| `get` | Get a auditLog by id | -| `create` | Create a new auditLog | -| `update` | Update an existing auditLog | -| `delete` | Delete a auditLog | +| `list` | List all auditLogAuth records | +| `find-first` | Find first matching auditLogAuth record | +| `get` | Get a auditLogAuth by id | +| `create` | Create a new auditLogAuth | +| `update` | Update an existing auditLogAuth | +| `delete` | Delete a auditLogAuth | **Fields:** | Field | Type | |-------|------| +| `createdAt` | Datetime | | `id` | UUID | | `event` | String | | `actorId` | UUID | @@ -254,7 +255,6 @@ CRUD operations for AuditLog records. | `userAgent` | String | | `ipAddress` | InternetAddress | | `success` | Boolean | -| `createdAt` | Datetime | **Required create fields:** `event`, `success` **Optional create fields (backend defaults):** `actorId`, `origin`, `userAgent`, `ipAddress` @@ -623,21 +623,6 @@ signUp | `--input.csrfToken` | String | | `--input.deviceToken` | String | -### `request-cross-origin-token` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | String | - | `--input.password` | String | - | `--input.origin` | Origin | - | `--input.rememberMe` | Boolean | - ### `sign-in` signIn @@ -682,6 +667,21 @@ createApiKey | `--input.mfaLevel` | String | | `--input.expiresIn` | IntervalInput | +### `request-cross-origin-token` + +requestCrossOriginToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | String | + | `--input.password` | String | + | `--input.origin` | Origin | + | `--input.rememberMe` | Boolean | + ### `forgot-password` forgotPassword diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index e007bbbcc5..786a64e33e 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -10,7 +10,7 @@ import emailCmd from './commands/email'; import phoneNumberCmd from './commands/phone-number'; import cryptoAddressCmd from './commands/crypto-address'; import webauthnCredentialCmd from './commands/webauthn-credential'; -import auditLogCmd from './commands/audit-log'; +import auditLogAuthCmd from './commands/audit-log-auth'; import identityProviderCmd from './commands/identity-provider'; import roleTypeCmd from './commands/role-type'; import userConnectedAccountCmd from './commands/user-connected-account'; @@ -35,10 +35,10 @@ import provisionNewUserCmd from './commands/provision-new-user'; import resetPasswordCmd from './commands/reset-password'; import signInCrossOriginCmd from './commands/sign-in-cross-origin'; import signUpCmd from './commands/sign-up'; -import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; import signInCmd from './commands/sign-in'; import extendTokenExpiresCmd from './commands/extend-token-expires'; import createApiKeyCmd from './commands/create-api-key'; +import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; import forgotPasswordCmd from './commands/forgot-password'; import sendVerificationEmailCmd from './commands/send-verification-email'; import provisionBucketCmd from './commands/provision-bucket'; @@ -56,7 +56,7 @@ const createCommandMap: () => Record< 'phone-number': phoneNumberCmd, 'crypto-address': cryptoAddressCmd, 'webauthn-credential': webauthnCredentialCmd, - 'audit-log': auditLogCmd, + 'audit-log-auth': auditLogAuthCmd, 'identity-provider': identityProviderCmd, 'role-type': roleTypeCmd, 'user-connected-account': userConnectedAccountCmd, @@ -81,16 +81,16 @@ const createCommandMap: () => Record< 'reset-password': resetPasswordCmd, 'sign-in-cross-origin': signInCrossOriginCmd, 'sign-up': signUpCmd, - 'request-cross-origin-token': requestCrossOriginTokenCmd, 'sign-in': signInCmd, 'extend-token-expires': extendTokenExpiresCmd, 'create-api-key': createApiKeyCmd, + 'request-cross-origin-token': requestCrossOriginTokenCmd, 'forgot-password': forgotPasswordCmd, 'send-verification-email': sendVerificationEmailCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - '\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 webauthn-credential webauthnCredential CRUD operations\n audit-log auditLog CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/auth/cli/commands/audit-log.ts b/sdk/constructive-cli/src/auth/cli/commands/audit-log-auth.ts similarity index 79% rename from sdk/constructive-cli/src/auth/cli/commands/audit-log.ts rename to sdk/constructive-cli/src/auth/cli/commands/audit-log-auth.ts index 97194c6a67..cfe2d760ed 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/audit-log.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/audit-log-auth.ts @@ -1,5 +1,5 @@ /** - * CLI commands for AuditLog + * CLI commands for AuditLogAuth * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,14 +8,15 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateAuditLogInput, - AuditLogPatch, - AuditLogSelect, - AuditLogFilter, - AuditLogOrderBy, + CreateAuditLogAuthInput, + AuditLogAuthPatch, + AuditLogAuthSelect, + AuditLogAuthFilter, + AuditLogAuthOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', id: 'uuid', event: 'string', actorId: 'uuid', @@ -23,10 +24,9 @@ const fieldSchema: FieldSchema = { userAgent: 'string', ipAddress: 'string', success: 'boolean', - createdAt: 'string', }; const usage = - '\naudit-log \n\nCommands:\n list List auditLog records\n find-first Find first matching auditLog record\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\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\naudit-log-auth \n\nCommands:\n list List auditLogAuth records\n find-first Find first matching auditLogAuth record\n get Get a auditLogAuth by ID\n create Create a new auditLogAuth\n update Update an existing auditLogAuth\n delete Delete a auditLogAuth\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -76,6 +76,7 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, id: true, event: true, actorId: true, @@ -83,15 +84,14 @@ async function handleList(argv: Partial>, _prompter: Inq userAgent: true, ipAddress: true, success: true, - createdAt: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AuditLogSelect; + FindManyArgs & { + select: AuditLogAuthSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.auditLog.findMany(findManyArgs).execute(); + const result = await client.auditLogAuth.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -104,6 +104,7 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, id: true, event: true, actorId: true, @@ -111,15 +112,14 @@ async function handleFindFirst(argv: Partial>, _prompter userAgent: true, ipAddress: true, success: true, - createdAt: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AuditLogSelect; + FindFirstArgs & { + select: AuditLogAuthSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.auditLog.findFirst(findFirstArgs).execute(); + const result = await client.auditLogAuth.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -140,10 +140,11 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.auditLog + const result = await client.auditLogAuth .findOne({ id: answers.id as string, select: { + createdAt: true, id: true, event: true, actorId: true, @@ -151,7 +152,6 @@ async function handleGet(argv: Partial>, prompter: Inqui userAgent: true, ipAddress: true, success: true, - createdAt: true, }, }) .execute(); @@ -209,9 +209,12 @@ async function handleCreate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateAuditLogInput['auditLog']; + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAuditLogAuthInput['auditLogAuth']; const client = getClient(); - const result = await client.auditLog + const result = await client.auditLogAuth .create({ data: { event: cleanedData.event, @@ -222,6 +225,7 @@ async function handleCreate(argv: Partial>, prompter: In success: cleanedData.success, }, select: { + createdAt: true, id: true, event: true, actorId: true, @@ -229,7 +233,6 @@ async function handleCreate(argv: Partial>, prompter: In userAgent: true, ipAddress: true, success: true, - createdAt: true, }, }) .execute(); @@ -293,9 +296,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AuditLogPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as AuditLogAuthPatch; const client = getClient(); - const result = await client.auditLog + const result = await client.auditLogAuth .update({ where: { id: answers.id as string, @@ -309,6 +312,7 @@ async function handleUpdate(argv: Partial>, prompter: In success: cleanedData.success, }, select: { + createdAt: true, id: true, event: true, actorId: true, @@ -316,7 +320,6 @@ async function handleUpdate(argv: Partial>, prompter: In userAgent: true, ipAddress: true, success: true, - createdAt: true, }, }) .execute(); @@ -341,7 +344,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.auditLog + const result = await client.auditLogAuth .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/auth/orm/README.md b/sdk/constructive-cli/src/auth/orm/README.md index c7374c1092..4a4fbb5278 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -25,7 +25,7 @@ const db = createClient({ | `phoneNumber` | findMany, findOne, create, update, delete | | `cryptoAddress` | findMany, findOne, create, update, delete | | `webauthnCredential` | findMany, findOne, create, update, delete | -| `auditLog` | findMany, findOne, create, update, delete | +| `auditLogAuth` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | @@ -184,14 +184,15 @@ const updated = await db.webauthnCredential.update({ where: { id: '' }, da const deleted = await db.webauthnCredential.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.auditLogAuth` -CRUD operations for AuditLog records. +CRUD operations for AuditLogAuth records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | | `event` | String | Yes | | `actorId` | UUID | Yes | @@ -199,25 +200,24 @@ CRUD operations for AuditLog records. | `userAgent` | String | Yes | | `ipAddress` | InternetAddress | Yes | | `success` | Boolean | Yes | -| `createdAt` | Datetime | No | **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 } }).execute(); +// List all auditLogAuth records +const items = await db.auditLogAuth.findMany({ select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: 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 } }).execute(); +const item = await db.auditLogAuth.findOne({ id: '', select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.auditLogAuth.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.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLogAuth.delete({ where: { id: '' } }).execute(); ``` ### `db.identityProvider` @@ -647,21 +647,6 @@ signUp const result = await db.mutation.signUp({ input: '' }).execute(); ``` -### `db.mutation.requestCrossOriginToken` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | - -```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); -``` - ### `db.mutation.signIn` signIn @@ -707,6 +692,21 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` +### `db.mutation.requestCrossOriginToken` + +requestCrossOriginToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestCrossOriginTokenInput (required) | + +```typescript +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +``` + ### `db.mutation.forgotPassword` forgotPassword diff --git a/sdk/constructive-cli/src/auth/orm/index.ts b/sdk/constructive-cli/src/auth/orm/index.ts index d0d3034de3..35448d7362 100644 --- a/sdk/constructive-cli/src/auth/orm/index.ts +++ b/sdk/constructive-cli/src/auth/orm/index.ts @@ -9,7 +9,7 @@ import { EmailModel } from './models/email'; import { PhoneNumberModel } from './models/phoneNumber'; import { CryptoAddressModel } from './models/cryptoAddress'; import { WebauthnCredentialModel } from './models/webauthnCredential'; -import { AuditLogModel } from './models/auditLog'; +import { AuditLogAuthModel } from './models/auditLogAuth'; import { IdentityProviderModel } from './models/identityProvider'; import { RoleTypeModel } from './models/roleType'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; @@ -17,7 +17,7 @@ import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; @@ -53,7 +53,7 @@ export function createClient(config: OrmClientConfig) { phoneNumber: new PhoneNumberModel(client), cryptoAddress: new CryptoAddressModel(client), webauthnCredential: new WebauthnCredentialModel(client), - auditLog: new AuditLogModel(client), + auditLogAuth: new AuditLogAuthModel(client), identityProvider: new IdentityProviderModel(client), roleType: new RoleTypeModel(client), userConnectedAccount: new UserConnectedAccountModel(client), diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index 33b5f19ae8..d1926edee2 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -310,8 +310,10 @@ export interface WebauthnCredential { createdAt?: string | null; updatedAt?: string | null; } -/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ -export interface AuditLog { +/** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ +export interface AuditLogAuth { + createdAt?: string | null; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; @@ -325,8 +327,6 @@ export interface AuditLog { ipAddress?: string | null; /** Whether the authentication attempt succeeded */ success?: boolean | null; - /** Timestamp when the audit event was recorded */ - createdAt?: string | null; } export interface IdentityProvider { slug?: string | null; @@ -390,7 +390,7 @@ export interface CryptoAddressRelations { export interface WebauthnCredentialRelations { owner?: User | null; } -export interface AuditLogRelations { +export interface AuditLogAuthRelations { actor?: User | null; } export interface IdentityProviderRelations {} @@ -402,14 +402,14 @@ export interface UserRelations { ownedPhoneNumbers?: ConnectionResult; ownedCryptoAddresses?: ConnectionResult; ownedWebauthnCredentials?: ConnectionResult; - auditLogsByActorId?: ConnectionResult; + auditLogAuthsByActorId?: ConnectionResult; } // ============ Entity Types With Relations ============ export type EmailWithRelations = Email & EmailRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type WebauthnCredentialWithRelations = WebauthnCredential & WebauthnCredentialRelations; -export type AuditLogWithRelations = AuditLog & AuditLogRelations; +export type AuditLogAuthWithRelations = AuditLogAuth & AuditLogAuthRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & @@ -475,7 +475,8 @@ export type WebauthnCredentialSelect = { select: UserSelect; }; }; -export type AuditLogSelect = { +export type AuditLogAuthSelect = { + createdAt?: boolean; id?: boolean; event?: boolean; actorId?: boolean; @@ -483,7 +484,6 @@ export type AuditLogSelect = { userAgent?: boolean; ipAddress?: boolean; success?: boolean; - createdAt?: boolean; actor?: { select: UserSelect; }; @@ -548,11 +548,11 @@ export type UserSelect = { filter?: WebauthnCredentialFilter; orderBy?: WebauthnCredentialOrderBy[]; }; - auditLogsByActorId?: { - select: AuditLogSelect; + auditLogAuthsByActorId?: { + select: AuditLogAuthSelect; first?: number; - filter?: AuditLogFilter; - orderBy?: AuditLogOrderBy[]; + filter?: AuditLogAuthFilter; + orderBy?: AuditLogAuthOrderBy[]; }; }; // ============ Table Filter Types ============ @@ -674,7 +674,9 @@ export interface WebauthnCredentialFilter { /** Filter by the object’s `owner` relation. */ owner?: UserFilter; } -export interface AuditLogFilter { +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -689,14 +691,12 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ @@ -797,10 +797,10 @@ export interface UserFilter { ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; /** `ownedWebauthnCredentials` exist. */ ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -908,10 +908,12 @@ export type WebauthnCredentialOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AuditLogOrderBy = +export type AuditLogAuthOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' @@ -925,9 +927,7 @@ export type AuditLogOrderBy = | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; + | 'SUCCESS_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -1111,9 +1111,9 @@ export interface DeleteWebauthnCredentialInput { clientMutationId?: string; id: string; } -export interface CreateAuditLogInput { +export interface CreateAuditLogAuthInput { clientMutationId?: string; - auditLog: { + auditLogAuth: { event: string; actorId?: string; origin?: ConstructiveInternalTypeOrigin; @@ -1122,7 +1122,7 @@ export interface CreateAuditLogInput { success: boolean; }; } -export interface AuditLogPatch { +export interface AuditLogAuthPatch { event?: string | null; actorId?: string | null; origin?: ConstructiveInternalTypeOrigin | null; @@ -1130,12 +1130,12 @@ export interface AuditLogPatch { ipAddress?: string | null; success?: boolean | null; } -export interface UpdateAuditLogInput { +export interface UpdateAuditLogAuthInput { clientMutationId?: string; id: string; - auditLogPatch: AuditLogPatch; + auditLogAuthPatch: AuditLogAuthPatch; } -export interface DeleteAuditLogInput { +export interface DeleteAuditLogAuthInput { clientMutationId?: string; id: string; } @@ -1241,7 +1241,7 @@ export const connectionFieldsMap = { ownedPhoneNumbers: 'PhoneNumber', ownedCryptoAddresses: 'CryptoAddress', ownedWebauthnCredentials: 'WebauthnCredential', - auditLogsByActorId: 'AuditLog', + auditLogAuthsByActorId: 'AuditLogAuth', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -1315,13 +1315,6 @@ export interface SignUpInput { csrfToken?: string; deviceToken?: string; } -export interface RequestCrossOriginTokenInput { - clientMutationId?: string; - email?: string; - password?: string; - origin?: ConstructiveInternalTypeOrigin; - rememberMe?: boolean; -} export interface SignInInput { clientMutationId?: string; email?: string; @@ -1342,6 +1335,13 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } +export interface RequestCrossOriginTokenInput { + clientMutationId?: string; + email?: string; + password?: string; + origin?: ConstructiveInternalTypeOrigin; + rememberMe?: boolean; +} export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; @@ -1682,14 +1682,14 @@ export interface UserToManyWebauthnCredentialFilter { /** Filters to entities where no related entity matches. */ none?: WebauthnCredentialFilter; } -/** A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAuditLogFilter { +/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogAuthFilter { /** Filters to entities where at least one related entity matches. */ - some?: AuditLogFilter; + some?: AuditLogAuthFilter; /** Filters to entities where every related entity matches. */ - every?: AuditLogFilter; + every?: AuditLogAuthFilter; /** Filters to entities where no related entity matches. */ - none?: AuditLogFilter; + none?: AuditLogAuthFilter; } /** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ export interface TrgmSearchInput { @@ -1839,8 +1839,10 @@ export interface WebauthnCredentialFilter { /** Filter by the object’s `owner` relation. */ owner?: UserFilter; } -/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogFilter { +/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -1855,14 +1857,12 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ @@ -2062,10 +2062,10 @@ export interface UserFilter { ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; /** `ownedWebauthnCredentials` exist. */ ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -2355,14 +2355,6 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; -export interface RequestCrossOriginTokenPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type RequestCrossOriginTokenPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface SignInPayload { clientMutationId?: string | null; result?: SignInRecord | null; @@ -2393,6 +2385,14 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; +export interface RequestCrossOriginTokenPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type RequestCrossOriginTokenPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ForgotPasswordPayload { clientMutationId?: string | null; } @@ -2609,49 +2609,49 @@ export type DeleteWebauthnCredentialPayloadSelect = { select: WebauthnCredentialEdgeSelect; }; }; -export interface CreateAuditLogPayload { +export interface CreateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was created by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type CreateAuditLogPayloadSelect = { +export type CreateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface UpdateAuditLogPayload { +export interface UpdateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was updated by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type UpdateAuditLogPayloadSelect = { +export type UpdateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface DeleteAuditLogPayload { +export interface DeleteAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was deleted by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type DeleteAuditLogPayloadSelect = { +export type DeleteAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; export interface CreateIdentityProviderPayload { @@ -2886,16 +2886,16 @@ export type WebauthnCredentialEdgeSelect = { select: WebauthnCredentialSelect; }; }; -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { +/** A `AuditLogAuth` edge in the connection. */ +export interface AuditLogAuthEdge { cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; + /** The `AuditLogAuth` at the end of the edge. */ + node?: AuditLogAuth | null; } -export type AuditLogEdgeSelect = { +export type AuditLogAuthEdgeSelect = { cursor?: boolean; node?: { - select: AuditLogSelect; + select: AuditLogAuthSelect; }; }; /** A `RoleType` edge in the connection. */ diff --git a/sdk/constructive-react/src/public/orm/models/agentMessage.ts b/sdk/constructive-cli/src/auth/orm/models/auditLogAuth.ts similarity index 53% rename from sdk/constructive-react/src/public/orm/models/agentMessage.ts rename to sdk/constructive-cli/src/auth/orm/models/auditLogAuth.ts index d128641c85..8a6665612c 100644 --- a/sdk/constructive-react/src/public/orm/models/agentMessage.ts +++ b/sdk/constructive-cli/src/auth/orm/models/auditLogAuth.ts @@ -1,5 +1,5 @@ /** - * AgentMessage model for ORM client + * AuditLogAuth 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 { - AgentMessage, - AgentMessageWithRelations, - AgentMessageSelect, - AgentMessageFilter, - AgentMessageOrderBy, - CreateAgentMessageInput, - UpdateAgentMessageInput, - AgentMessagePatch, + AuditLogAuth, + AuditLogAuthWithRelations, + AuditLogAuthSelect, + AuditLogAuthFilter, + AuditLogAuthOrderBy, + CreateAuditLogAuthInput, + UpdateAuditLogAuthInput, + AuditLogAuthPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class AgentMessageModel { +export class AuditLogAuthModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentMessages: ConnectionResult>; + auditLogAuths: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'AgentMessage', - 'agentMessages', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class AgentMessageModel { before: args?.before, offset: args?.offset, }, - 'AgentMessageFilter', - 'AgentMessageOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentMessage', - fieldName: 'agentMessages', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuths', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentMessage: InferSelectResult | null; + auditLogAuth: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'AgentMessage', - 'agentMessages', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'AgentMessageFilter', - 'AgentMessageOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentMessage', - fieldName: 'agentMessage', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', document, variables, transform: (data: { - agentMessages?: { - nodes?: InferSelectResult[]; + auditLogAuths?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentMessage: data.agentMessages?.nodes?.[0] ?? null, + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentMessage: InferSelectResult | null; + auditLogAuth: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'AgentMessage', - 'agentMessages', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: { @@ -124,90 +124,90 @@ export class AgentMessageModel { }, first: 1, }, - 'AgentMessageFilter', - 'AgentMessageOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentMessage', - fieldName: 'agentMessage', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', document, variables, transform: (data: { - agentMessages?: { - nodes?: InferSelectResult[]; + auditLogAuths?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentMessage: data.agentMessages?.nodes?.[0] ?? null, + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createAgentMessage: { - agentMessage: InferSelectResult; + createAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'AgentMessage', - 'createAgentMessage', - 'agentMessage', + 'AuditLogAuth', + 'createAuditLogAuth', + 'auditLogAuth', args.select, args.data, - 'CreateAgentMessageInput', + 'CreateAuditLogAuthInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentMessage', - fieldName: 'createAgentMessage', + operationName: 'AuditLogAuth', + fieldName: 'createAuditLogAuth', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - AgentMessagePatch + AuditLogAuthPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateAgentMessage: { - agentMessage: InferSelectResult; + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'AgentMessage', - 'updateAgentMessage', - 'agentMessage', + 'AuditLogAuth', + 'updateAuditLogAuth', + 'auditLogAuth', args.select, args.where.id, args.data, - 'UpdateAgentMessageInput', + 'UpdateAuditLogAuthInput', 'id', - 'agentMessagePatch', + 'auditLogAuthPatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentMessage', - fieldName: 'updateAgentMessage', + operationName: 'AuditLogAuth', + fieldName: 'updateAuditLogAuth', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -215,28 +215,28 @@ export class AgentMessageModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteAgentMessage: { - agentMessage: InferSelectResult; + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'AgentMessage', - 'deleteAgentMessage', - 'agentMessage', + 'AuditLogAuth', + 'deleteAuditLogAuth', + 'auditLogAuth', { id: args.where.id, }, - 'DeleteAgentMessageInput', + 'DeleteAuditLogAuthInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentMessage', - fieldName: 'deleteAgentMessage', + operationName: 'AuditLogAuth', + fieldName: 'deleteAuditLogAuth', document, variables, }); diff --git a/sdk/constructive-cli/src/auth/orm/models/index.ts b/sdk/constructive-cli/src/auth/orm/models/index.ts index 61627a92d0..f0ecad3b71 100644 --- a/sdk/constructive-cli/src/auth/orm/models/index.ts +++ b/sdk/constructive-cli/src/auth/orm/models/index.ts @@ -7,7 +7,7 @@ export { EmailModel } from './email'; export { PhoneNumberModel } from './phoneNumber'; export { CryptoAddressModel } from './cryptoAddress'; export { WebauthnCredentialModel } from './webauthnCredential'; -export { AuditLogModel } from './auditLog'; +export { AuditLogAuthModel } from './auditLogAuth'; export { IdentityProviderModel } from './identityProvider'; export { RoleTypeModel } from './roleType'; export { UserConnectedAccountModel } from './userConnectedAccount'; diff --git a/sdk/constructive-cli/src/auth/orm/mutation/index.ts b/sdk/constructive-cli/src/auth/orm/mutation/index.ts index 3681a0fb56..14c035b5d4 100644 --- a/sdk/constructive-cli/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/auth/orm/mutation/index.ts @@ -22,10 +22,10 @@ import type { ResetPasswordInput, SignInCrossOriginInput, SignUpInput, - RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, + RequestCrossOriginTokenInput, ForgotPasswordInput, SendVerificationEmailInput, ProvisionBucketInput, @@ -44,10 +44,10 @@ import type { ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, - RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, + RequestCrossOriginTokenPayload, ForgotPasswordPayload, SendVerificationEmailPayload, ProvisionBucketPayload, @@ -66,10 +66,10 @@ import type { ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, - RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, + RequestCrossOriginTokenPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, ProvisionBucketPayloadSelect, @@ -120,9 +120,6 @@ export interface SignInCrossOriginVariables { export interface SignUpVariables { input: SignUpInput; } -export interface RequestCrossOriginTokenVariables { - input: RequestCrossOriginTokenInput; -} export interface SignInVariables { input: SignInInput; } @@ -132,6 +129,9 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } +export interface RequestCrossOriginTokenVariables { + input: RequestCrossOriginTokenInput; +} export interface ForgotPasswordVariables { input: ForgotPasswordInput; } @@ -585,35 +585,6 @@ export function createMutationOperations(client: OrmClient) { 'SignUpPayload' ), }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', - ...buildCustomDocument( - 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', - options.select, - args, - [ - { - name: 'input', - type: 'RequestCrossOriginTokenInput!', - }, - ], - connectionFieldsMap, - 'RequestCrossOriginTokenPayload' - ), - }), signIn: ( args: SignInVariables, options: { @@ -701,6 +672,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), + requestCrossOriginToken: ( + args: RequestCrossOriginTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + requestCrossOriginToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RequestCrossOriginToken', + fieldName: 'requestCrossOriginToken', + ...buildCustomDocument( + 'mutation', + 'RequestCrossOriginToken', + 'requestCrossOriginToken', + options.select, + args, + [ + { + name: 'input', + type: 'RequestCrossOriginTokenInput!', + }, + ], + connectionFieldsMap, + 'RequestCrossOriginTokenPayload' + ), + }), forgotPassword: ( args: ForgotPasswordVariables, options: { diff --git a/sdk/constructive-cli/src/objects/cli/README.md b/sdk/constructive-cli/src/objects/cli/README.md index 8ae072103b..9b50b7a16d 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -130,14 +130,14 @@ CRUD operations for Object records. |-------|------| | `hashUuid` | UUID | | `id` | UUID | -| `databaseId` | UUID | +| `scopeId` | UUID | | `kids` | UUID | | `ktree` | String | | `data` | JSON | | `frzn` | Boolean | | `createdAt` | Datetime | -**Required create fields:** `databaseId` +**Required create fields:** `scopeId` **Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` ### `ref` @@ -159,11 +159,11 @@ CRUD operations for Ref records. |-------|------| | `id` | UUID | | `name` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | | `commitId` | UUID | -**Required create fields:** `name`, `databaseId`, `storeId` +**Required create fields:** `name`, `scopeId`, `storeId` **Optional create fields (backend defaults):** `commitId` ### `store` @@ -185,11 +185,11 @@ CRUD operations for Store records. |-------|------| | `id` | UUID | | `name` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `hash` | UUID | | `createdAt` | Datetime | -**Required create fields:** `name`, `databaseId` +**Required create fields:** `name`, `scopeId` **Optional create fields (backend defaults):** `hash` ### `commit` @@ -211,7 +211,7 @@ CRUD operations for Commit records. |-------|------| | `id` | UUID | | `message` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | | `parentIds` | UUID | | `authorId` | UUID | @@ -219,7 +219,7 @@ CRUD operations for Commit records. | `treeId` | UUID | | `date` | Datetime | -**Required create fields:** `databaseId`, `storeId` +**Required create fields:** `scopeId`, `storeId` **Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` ## Custom Operations @@ -233,7 +233,7 @@ revParse | Argument | Type | |----------|------| - | `--dbId` | UUID | + | `--sId` | UUID | | `--storeId` | UUID | | `--refname` | String | @@ -246,7 +246,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `--databaseId` | UUID | + | `--sId` | UUID | | `--id` | UUID | | `--first` | Int | | `--offset` | Int | @@ -261,7 +261,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `--databaseId` | UUID | + | `--sId` | UUID | | `--id` | UUID | | `--path` | String | | `--first` | Int | @@ -277,7 +277,7 @@ getObjectAtPath | Argument | Type | |----------|------| - | `--dbId` | UUID | + | `--sId` | UUID | | `--storeId` | UUID | | `--path` | String | | `--refname` | String | @@ -292,7 +292,7 @@ freezeObjects | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | + | `--input.sId` | UUID | | `--input.id` | UUID | ### `init-empty-repo` @@ -305,7 +305,7 @@ initEmptyRepo | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | ### `remove-node-at-path` @@ -318,7 +318,7 @@ removeNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | @@ -332,7 +332,7 @@ setDataAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -347,7 +347,7 @@ setPropsAndCommit | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | | `--input.refname` | String | | `--input.path` | String | @@ -363,7 +363,7 @@ insertNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -380,7 +380,7 @@ updateNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -397,7 +397,7 @@ setAndCommit | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | | `--input.refname` | String | | `--input.path` | String | diff --git a/sdk/constructive-cli/src/objects/cli/commands/commit.ts b/sdk/constructive-cli/src/objects/cli/commands/commit.ts index 02b4952ada..79870a7c41 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/commit.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/commit.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', message: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', parentIds: 'uuid', authorId: 'uuid', @@ -79,7 +79,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -149,7 +149,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -180,8 +180,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -233,7 +233,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { message: cleanedData.message, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, parentIds: cleanedData.parentIds, authorId: cleanedData.authorId, @@ -244,7 +244,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -281,8 +281,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -337,7 +337,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { message: cleanedData.message, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, parentIds: cleanedData.parentIds, authorId: cleanedData.authorId, @@ -348,7 +348,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts b/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts index 6c2bef23be..da024e0fbe 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/get-all-objects-from-root.ts @@ -23,8 +23,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts b/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts index 336a7e8d57..34e7a2396c 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/get-object-at-path.ts @@ -21,8 +21,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'dbId', - message: 'dbId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts b/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts index 3985235808..9961e452b2 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/get-path-objects-from-root.ts @@ -23,8 +23,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/objects/cli/commands/object.ts b/sdk/constructive-cli/src/objects/cli/commands/object.ts index d99526a4ed..c49a3216a7 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/object.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/object.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { hashUuid: 'uuid', id: 'uuid', - databaseId: 'uuid', + scopeId: 'uuid', kids: 'uuid', ktree: 'string', data: 'json', @@ -77,7 +77,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -104,7 +104,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -143,7 +143,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -166,8 +166,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -205,7 +205,7 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.object .create({ data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, @@ -213,7 +213,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -242,8 +242,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -284,7 +284,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, @@ -292,7 +292,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, diff --git a/sdk/constructive-cli/src/objects/cli/commands/ref.ts b/sdk/constructive-cli/src/objects/cli/commands/ref.ts index cc4ef6922f..4ff8a3a6ff 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/ref.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/ref.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', commitId: 'uuid', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -100,7 +100,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -137,7 +137,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -163,8 +163,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -188,14 +188,14 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, commitId: cleanedData.commitId, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -227,8 +227,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -255,14 +255,14 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, commitId: cleanedData.commitId, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, diff --git a/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts b/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts index 302b869622..32e9cfa49d 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/rev-parse.ts @@ -19,8 +19,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'dbId', - message: 'dbId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/objects/cli/commands/store.ts b/sdk/constructive-cli/src/objects/cli/commands/store.ts index eba292c2fc..04f04ed6cc 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/store.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/store.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', hash: 'uuid', createdAt: 'string', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -100,7 +100,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -137,7 +137,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -163,8 +163,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -182,13 +182,13 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -220,8 +220,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -242,13 +242,13 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, diff --git a/sdk/constructive-cli/src/objects/orm/README.md b/sdk/constructive-cli/src/objects/orm/README.md index 94b8dc0860..98224dbfa7 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -69,7 +69,7 @@ CRUD operations for Object records. |-------|------|----------| | `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `kids` | UUID | Yes | | `ktree` | String | Yes | | `data` | JSON | Yes | @@ -80,13 +80,13 @@ CRUD operations for Object records. ```typescript // List all 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(); +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: 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, scopeId: 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: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); @@ -105,7 +105,7 @@ CRUD operations for Ref records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | @@ -113,13 +113,13 @@ CRUD operations for Ref records. ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: 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(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -138,7 +138,7 @@ CRUD operations for Store records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | @@ -146,13 +146,13 @@ CRUD operations for Store records. ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: 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 } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -171,7 +171,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -183,13 +183,13 @@ CRUD operations for Commit records. ```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 } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: 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 } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: 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: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', 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(); @@ -209,12 +209,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -226,14 +226,14 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -245,7 +245,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `path` | [String] | | `first` | Int | @@ -253,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({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -265,13 +265,13 @@ getObjectAtPath | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `path` | [String] | | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.mutation.freezeObjects` @@ -286,7 +286,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -301,7 +301,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.removeNodeAtPath` @@ -316,7 +316,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -331,7 +331,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -346,7 +346,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` diff --git a/sdk/constructive-cli/src/objects/orm/index.ts b/sdk/constructive-cli/src/objects/orm/index.ts index 231687e0db..f06a6d3b7a 100644 --- a/sdk/constructive-cli/src/objects/orm/index.ts +++ b/sdk/constructive-cli/src/objects/orm/index.ts @@ -13,7 +13,7 @@ import { CommitModel } from './models/commit'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index 8fcc221ef8..fe16958d8e 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -238,7 +238,7 @@ export interface GetAllRecord { export interface Object { hashUuid?: string | null; id: string; - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -251,7 +251,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -261,8 +261,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -273,8 +273,8 @@ export interface Commit { id: string; /** The commit message */ message?: string | null; - /** The repository identifier */ - databaseId?: string | null; + /** The scope identifier */ + scopeId?: string | null; storeId?: string | null; /** Parent commits */ parentIds?: string[] | null; @@ -318,7 +318,7 @@ export type GetAllRecordSelect = { export type ObjectSelect = { hashUuid?: boolean; id?: boolean; - databaseId?: boolean; + scopeId?: boolean; kids?: boolean; ktree?: boolean; data?: boolean; @@ -328,21 +328,21 @@ export type ObjectSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -361,8 +361,8 @@ export interface GetAllRecordFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -385,8 +385,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -403,8 +403,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -421,8 +421,8 @@ export interface CommitFilter { 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 `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -457,8 +457,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -477,8 +477,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -491,8 +491,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -505,8 +505,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -543,7 +543,7 @@ export interface DeleteGetAllRecordInput { export interface CreateObjectInput { clientMutationId?: string; object: { - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: Record; @@ -551,7 +551,7 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -570,14 +570,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -594,13 +594,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -616,7 +616,7 @@ export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -627,7 +627,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -649,30 +649,30 @@ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -680,7 +680,7 @@ export interface SetPropsAndCommitInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -689,7 +689,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -698,7 +698,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; diff --git a/sdk/constructive-cli/src/objects/orm/query/index.ts b/sdk/constructive-cli/src/objects/orm/query/index.ts index ce1f8680dc..e132a1ab47 100644 --- a/sdk/constructive-cli/src/objects/orm/query/index.ts +++ b/sdk/constructive-cli/src/objects/orm/query/index.ts @@ -9,12 +9,12 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } export interface GetAllObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; /** Only read the first `n` values of the set. */ first?: number; @@ -27,7 +27,7 @@ export interface GetAllObjectsFromRootVariables { after?: string; } export interface GetPathObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; path?: string[]; /** Only read the first `n` values of the set. */ @@ -41,7 +41,7 @@ export interface GetPathObjectsFromRootVariables { after?: string; } export interface GetObjectAtPathVariables { - dbId?: string; + sId?: string; storeId?: string; path?: string[]; refname?: string; @@ -69,7 +69,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -106,7 +106,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -151,7 +151,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -200,7 +200,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { diff --git a/sdk/constructive-cli/src/public/README.md b/sdk/constructive-cli/src/public/README.md index ed36922cb7..7844bf8722 100644 --- a/sdk/constructive-cli/src/public/README.md +++ b/sdk/constructive-cli/src/public/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 148 +- **Tables:** 151 - **Custom queries:** 20 - **Custom mutations:** 49 diff --git a/sdk/constructive-cli/src/public/cli/README.md b/sdk/constructive-cli/src/public/cli/README.md index a4af3750df..eb14add353 100644 --- a/sdk/constructive-cli/src/public/cli/README.md +++ b/sdk/constructive-cli/src/public/cli/README.md @@ -29,9 +29,9 @@ csdk auth set-token | `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 | -| `object` | object CRUD operations | | `database` | database CRUD operations | | `schema` | schema CRUD operations | | `table` | table CRUD operations | @@ -56,6 +56,7 @@ csdk auth set-token | `session-secrets-module` | sessionSecretsModule CRUD operations | | `identity-providers-module` | identityProvidersModule CRUD operations | | `realtime-module` | realtimeModule CRUD operations | +| `config-secrets-org-module` | configSecretsOrgModule CRUD operations | | `schema-grant` | schemaGrant CRUD operations | | `default-privilege` | defaultPrivilege CRUD operations | | `enum` | enum CRUD operations | @@ -80,7 +81,7 @@ csdk auth set-token | `default-ids-module` | defaultIdsModule CRUD operations | | `denormalized-table-field` | denormalizedTableField CRUD operations | | `emails-module` | emailsModule CRUD operations | -| `encrypted-secrets-module` | encryptedSecretsModule CRUD operations | +| `config-secrets-user-module` | configSecretsUserModule CRUD operations | | `invites-module` | invitesModule CRUD operations | | `events-module` | eventsModule CRUD operations | | `limits-module` | limitsModule CRUD operations | @@ -101,6 +102,11 @@ csdk auth set-token | `webauthn-credentials-module` | webauthnCredentialsModule CRUD operations | | `webauthn-auth-module` | webauthnAuthModule CRUD operations | | `notifications-module` | notificationsModule CRUD operations | +| `inference-log-module` | inferenceLogModule CRUD operations | +| `compute-log-module` | computeLogModule CRUD operations | +| `transfer-log-module` | transferLogModule CRUD operations | +| `storage-log-module` | storageLogModule CRUD operations | +| `db-usage-module` | dbUsageModule CRUD operations | | `database-provision-module` | databaseProvisionModule CRUD operations | | `app-admin-grant` | appAdminGrant CRUD operations | | `app-owner-grant` | appOwnerGrant CRUD operations | @@ -130,48 +136,45 @@ csdk auth set-token | `app-claimed-invite` | appClaimedInvite CRUD operations | | `org-invite` | orgInvite CRUD operations | | `org-claimed-invite` | orgClaimedInvite CRUD operations | -| `audit-log` | auditLog CRUD operations | -| `agent-thread` | agentThread CRUD operations | -| `agent-message` | agentMessage CRUD operations | -| `agent-task` | agentTask CRUD operations | -| `role-type` | roleType CRUD operations | +| `audit-log-auth` | auditLogAuth CRUD operations | | `identity-provider` | identityProvider CRUD operations | | `ref` | ref CRUD operations | | `store` | store CRUD operations | | `app-permission-default` | appPermissionDefault CRUD operations | -| `app-limit-credit-code` | appLimitCreditCode CRUD operations | +| `role-type` | roleType CRUD operations | +| `migrate-file` | migrateFile CRUD operations | +| `devices-module` | devicesModule CRUD operations | +| `app-membership-default` | appMembershipDefault CRUD operations | +| `org-membership-default` | orgMembershipDefault CRUD operations | +| `node-type-registry` | nodeTypeRegistry CRUD operations | | `app-limit-caps-default` | appLimitCapsDefault CRUD operations | | `org-limit-caps-default` | orgLimitCapsDefault CRUD operations | | `app-limit-cap` | appLimitCap CRUD operations | | `org-limit-cap` | orgLimitCap CRUD operations | -| `membership-type` | membershipType CRUD operations | -| `migrate-file` | migrateFile CRUD operations | -| `devices-module` | devicesModule CRUD operations | -| `node-type-registry` | nodeTypeRegistry CRUD operations | +| `user-connected-account` | userConnectedAccount CRUD operations | | `app-limit-default` | appLimitDefault CRUD operations | | `org-limit-default` | orgLimitDefault CRUD operations | +| `app-limit-credit-code` | appLimitCreditCode CRUD operations | | `app-limit-warning` | appLimitWarning CRUD operations | -| `user-connected-account` | userConnectedAccount CRUD operations | | `commit` | commit CRUD operations | | `pubkey-setting` | pubkeySetting CRUD operations | | `rate-limits-module` | rateLimitsModule CRUD operations | -| `usage-snapshot` | usageSnapshot CRUD operations | -| `app-membership-default` | appMembershipDefault CRUD operations | -| `org-membership-default` | orgMembershipDefault CRUD operations | +| `membership-type` | membershipType CRUD operations | | `rls-setting` | rlsSetting CRUD operations | -| `app-limit-event` | appLimitEvent CRUD operations | -| `org-limit-event` | orgLimitEvent CRUD operations | | `rls-module` | rlsModule CRUD operations | +| `agent-chat-module` | agentChatModule CRUD operations | | `rate-limit-meters-module` | rateLimitMetersModule CRUD operations | | `plans-module` | plansModule CRUD operations | | `sql-action` | sqlAction CRUD operations | +| `app-limit-event` | appLimitEvent CRUD operations | +| `org-limit-event` | orgLimitEvent CRUD operations | | `database-setting` | databaseSetting CRUD operations | -| `billing-module` | billingModule CRUD operations | -| `ast-migration` | astMigration CRUD operations | -| `user` | user CRUD operations | | `org-membership-setting` | orgMembershipSetting CRUD operations | -| `webauthn-setting` | webauthnSetting CRUD operations | | `app-membership` | appMembership CRUD operations | +| `user` | user CRUD operations | +| `ast-migration` | astMigration CRUD operations | +| `webauthn-setting` | webauthnSetting CRUD operations | +| `billing-module` | billingModule CRUD operations | | `billing-provider-module` | billingProviderModule CRUD operations | | `hierarchy-module` | hierarchyModule CRUD operations | | `current-user-id` | currentUserId | @@ -188,11 +191,11 @@ csdk auth set-token | `resolve-blueprint-table` | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | | `app-permissions-get-mask-by-names` | appPermissionsGetMaskByNames | | `org-permissions-get-mask-by-names` | orgPermissionsGetMaskByNames | -| `app-permissions-get-by-mask` | Reads and enables pagination through a set of `AppPermission`. | -| `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | | `get-all-objects-from-root` | Reads and enables pagination through a set of `Object`. | | `get-path-objects-from-root` | Reads and enables pagination through a set of `Object`. | | `get-object-at-path` | getObjectAtPath | +| `app-permissions-get-by-mask` | Reads and enables pagination through a set of `AppPermission`. | +| `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | | `current-user` | currentUser | | `send-account-deletion-email` | sendAccountDeletionEmail | | `sign-out` | signOut | @@ -212,13 +215,16 @@ csdk auth set-token | `verify-email` | verifyEmail | | `freeze-objects` | freezeObjects | | `init-empty-repo` | initEmptyRepo | -| `construct-blueprint` | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | +| `construct-blueprint` | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | | `provision-new-user` | provisionNewUser | | `reset-password` | resetPassword | | `remove-node-at-path` | removeNodeAtPath | | `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-spatial-relation` | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | +| `sign-in-cross-origin` | signInCrossOrigin | | `bootstrap-user` | bootstrapUser | +| `sign-up` | signUp | +| `sign-in` | signIn | | `set-field-order` | setFieldOrder | | `provision-check-constraint` | Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. | | `provision-unique-constraint` | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | @@ -232,7 +238,6 @@ csdk auth set-token | `set-and-commit` | setAndCommit | | `provision-relation` | Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). | | `apply-rls` | applyRls | -| `sign-in-cross-origin` | signInCrossOrigin | | `create-user-database` | Creates a new user database with all required modules, permissions, and RLS policies. Parameters: @@ -252,12 +257,10 @@ Example usage: | | `extend-token-expires` | extendTokenExpires | | `create-api-key` | createApiKey | -| `send-verification-email` | sendVerificationEmail | -| `forgot-password` | forgotPassword | -| `sign-up` | signUp | | `request-cross-origin-token` | requestCrossOriginToken | -| `sign-in` | signIn | | `provision-table` | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | +| `send-verification-email` | sendVerificationEmail | +| `forgot-password` | forgotPassword | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -370,6 +373,35 @@ CRUD operations for GetAllRecord records. **Required create fields:** `path`, `data` +### `object` + +CRUD operations for Object records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all object records | +| `find-first` | Find first matching object record | +| `get` | Get a object by id | +| `create` | Create a new object | +| `update` | Update an existing object | +| `delete` | Delete a object | + +**Fields:** + +| Field | Type | +|-------|------| +| `hashUuid` | UUID | +| `id` | UUID | +| `scopeId` | UUID | +| `kids` | UUID | +| `ktree` | String | +| `data` | JSON | +| `frzn` | Boolean | +| `createdAt` | Datetime | + +**Required create fields:** `scopeId` +**Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` + ### `app-permission` CRUD operations for AppPermission records. @@ -420,35 +452,6 @@ CRUD operations for OrgPermission records. **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` -### `object` - -CRUD operations for Object records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all object records | -| `find-first` | Find first matching object record | -| `get` | Get a object by id | -| `create` | Create a new object | -| `update` | Update an existing object | -| `delete` | Delete a object | - -**Fields:** - -| Field | Type | -|-------|------| -| `hashUuid` | UUID | -| `id` | UUID | -| `databaseId` | UUID | -| `kids` | UUID | -| `ktree` | String | -| `data` | JSON | -| `frzn` | Boolean | -| `createdAt` | Datetime | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` - ### `database` CRUD operations for Database records. @@ -1275,6 +1278,32 @@ CRUD operations for RealtimeModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `subscriptionsSchemaId`, `changeLogTableId`, `listenerNodeTableId`, `sourceRegistryTableId`, `retentionHours`, `premake`, `interval`, `notifyChannel` +### `config-secrets-org-module` + +CRUD operations for ConfigSecretsOrgModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all configSecretsOrgModule records | +| `find-first` | Find first matching configSecretsOrgModule record | +| `get` | Get a configSecretsOrgModule by id | +| `create` | Create a new configSecretsOrgModule | +| `update` | Update an existing configSecretsOrgModule | +| `delete` | Delete a configSecretsOrgModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `tableId` | UUID | +| `tableName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName` + ### `schema-grant` CRUD operations for SchemaGrant records. @@ -1650,13 +1679,14 @@ CRUD operations for Partition records. | `partitionKeyId` | UUID | | `interval` | String | | `retention` | String | +| `retentionKeepTable` | Boolean | | `premake` | Int | | `namingPattern` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `tableId`, `strategy`, `partitionKeyId` -**Optional create fields (backend defaults):** `interval`, `retention`, `premake`, `namingPattern` +**Optional create fields (backend defaults):** `interval`, `retention`, `retentionKeepTable`, `premake`, `namingPattern` ### `api` @@ -1957,18 +1987,18 @@ CRUD operations for EmailsModule records. **Required create fields:** `databaseId`, `tableName` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId` -### `encrypted-secrets-module` +### `config-secrets-user-module` -CRUD operations for EncryptedSecretsModule records. +CRUD operations for ConfigSecretsUserModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all encryptedSecretsModule records | -| `find-first` | Find first matching encryptedSecretsModule record | -| `get` | Get a encryptedSecretsModule by id | -| `create` | Create a new encryptedSecretsModule | -| `update` | Update an existing encryptedSecretsModule | -| `delete` | Delete a encryptedSecretsModule | +| `list` | List all configSecretsUserModule records | +| `find-first` | Find first matching configSecretsUserModule record | +| `get` | Get a configSecretsUserModule by id | +| `create` | Create a new configSecretsUserModule | +| `update` | Update an existing configSecretsUserModule | +| `delete` | Delete a configSecretsUserModule | **Fields:** @@ -2584,6 +2614,7 @@ CRUD operations for StorageModule records. | `bucketsTableName` | String | | `filesTableName` | String | | `membershipType` | Int | +| `storageKey` | String | | `policies` | JSON | | `skipDefaultPolicyTables` | String | | `entityTableId` | UUID | @@ -2610,7 +2641,7 @@ CRUD operations for StorageModule records. | `fileEventsTableId` | UUID | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `membershipType`, `policies`, `skipDefaultPolicyTables`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `membershipType`, `storageKey`, `policies`, `skipDefaultPolicyTables`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId` ### `entity-type-provision` @@ -2762,6 +2793,188 @@ CRUD operations for NotificationsModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `notificationsTableId`, `readStateTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`, `hasChannels`, `hasPreferences`, `hasSettingsExtension`, `hasDigestMetadata`, `hasSubscriptions` +### `inference-log-module` + +CRUD operations for InferenceLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all inferenceLogModule records | +| `find-first` | Find first matching inferenceLogModule record | +| `get` | Get a inferenceLogModule by id | +| `create` | Create a new inferenceLogModule | +| `update` | Update an existing inferenceLogModule | +| `delete` | Delete a inferenceLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `inferenceLogTableId` | UUID | +| `inferenceLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | +| `prefix` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `inferenceLogTableId`, `inferenceLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix` + +### `compute-log-module` + +CRUD operations for ComputeLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all computeLogModule records | +| `find-first` | Find first matching computeLogModule record | +| `get` | Get a computeLogModule by id | +| `create` | Create a new computeLogModule | +| `update` | Update an existing computeLogModule | +| `delete` | Delete a computeLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `computeLogTableId` | UUID | +| `computeLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | +| `prefix` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `computeLogTableId`, `computeLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix` + +### `transfer-log-module` + +CRUD operations for TransferLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all transferLogModule records | +| `find-first` | Find first matching transferLogModule record | +| `get` | Get a transferLogModule by id | +| `create` | Create a new transferLogModule | +| `update` | Update an existing transferLogModule | +| `delete` | Delete a transferLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `transferLogTableId` | UUID | +| `transferLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | +| `prefix` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `transferLogTableId`, `transferLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix` + +### `storage-log-module` + +CRUD operations for StorageLogModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all storageLogModule records | +| `find-first` | Find first matching storageLogModule record | +| `get` | Get a storageLogModule by id | +| `create` | Create a new storageLogModule | +| `update` | Update an existing storageLogModule | +| `delete` | Delete a storageLogModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `storageLogTableId` | UUID | +| `storageLogTableName` | String | +| `usageDailyTableId` | UUID | +| `usageDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `actorFkTableId` | UUID | +| `entityFkTableId` | UUID | +| `prefix` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `storageLogTableId`, `storageLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix` + +### `db-usage-module` + +CRUD operations for DbUsageModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all dbUsageModule records | +| `find-first` | Find first matching dbUsageModule record | +| `get` | Get a dbUsageModule by id | +| `create` | Create a new dbUsageModule | +| `update` | Update an existing dbUsageModule | +| `delete` | Delete a dbUsageModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `tableStatsLogTableId` | UUID | +| `tableStatsLogTableName` | String | +| `tableStatsDailyTableId` | UUID | +| `tableStatsDailyTableName` | String | +| `queryStatsLogTableId` | UUID | +| `queryStatsLogTableName` | String | +| `queryStatsDailyTableId` | UUID | +| `queryStatsDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | +| `prefix` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsDailyTableId`, `tableStatsDailyTableName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsDailyTableId`, `queryStatsDailyTableName`, `interval`, `retention`, `premake`, `scope`, `prefix` + ### `database-provision-module` CRUD operations for DatabaseProvisionModule records. @@ -3619,23 +3832,24 @@ CRUD operations for OrgClaimedInvite records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` -### `audit-log` +### `audit-log-auth` -CRUD operations for AuditLog records. +CRUD operations for AuditLogAuth records. | Subcommand | Description | |------------|-------------| -| `list` | List all auditLog records | -| `find-first` | Find first matching auditLog record | -| `get` | Get a auditLog by id | -| `create` | Create a new auditLog | -| `update` | Update an existing auditLog | -| `delete` | Delete a auditLog | +| `list` | List all auditLogAuth records | +| `find-first` | Find first matching auditLogAuth record | +| `get` | Get a auditLogAuth by id | +| `create` | Create a new auditLogAuth | +| `update` | Update an existing auditLogAuth | +| `delete` | Delete a auditLogAuth | **Fields:** | Field | Type | |-------|------| +| `createdAt` | Datetime | | `id` | UUID | | `event` | String | | `actorId` | UUID | @@ -3643,101 +3857,108 @@ CRUD operations for AuditLog records. | `userAgent` | String | | `ipAddress` | InternetAddress | | `success` | Boolean | -| `createdAt` | Datetime | **Required create fields:** `event`, `success` **Optional create fields (backend defaults):** `actorId`, `origin`, `userAgent`, `ipAddress` -### `agent-thread` +### `identity-provider` -CRUD operations for AgentThread records. +CRUD operations for IdentityProvider records. | Subcommand | Description | |------------|-------------| -| `list` | List all agentThread records | -| `find-first` | Find first matching agentThread record | -| `get` | Get a agentThread by id | -| `create` | Create a new agentThread | -| `update` | Update an existing agentThread | -| `delete` | Delete a agentThread | +| `list` | List all identityProvider records | +| `find-first` | Find first matching identityProvider record | +| `get` | Get a identityProvider by id | +| `create` | Create a new identityProvider | +| `update` | Update an existing identityProvider | +| `delete` | Delete a identityProvider | **Fields:** | Field | Type | |-------|------| -| `title` | String | -| `mode` | String | -| `model` | String | -| `systemPrompt` | String | -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `ownerId` | UUID | -| `entityId` | UUID | -| `status` | String | +| `slug` | String | +| `kind` | String | +| `displayName` | String | +| `enabled` | Boolean | +| `isBuiltIn` | Boolean | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `title`, `mode`, `model`, `systemPrompt`, `ownerId`, `status` +**Optional create fields (backend defaults):** `slug`, `kind`, `displayName`, `enabled`, `isBuiltIn` -### `agent-message` +### `ref` -CRUD operations for AgentMessage records. +CRUD operations for Ref records. | Subcommand | Description | |------------|-------------| -| `list` | List all agentMessage records | -| `find-first` | Find first matching agentMessage record | -| `get` | Get a agentMessage by id | -| `create` | Create a new agentMessage | -| `update` | Update an existing agentMessage | -| `delete` | Delete a agentMessage | +| `list` | List all ref records | +| `find-first` | Find first matching ref record | +| `get` | Get a ref by id | +| `create` | Create a new ref | +| `update` | Update an existing ref | +| `delete` | Delete a ref | **Fields:** | Field | Type | |-------|------| -| `threadId` | UUID | -| `entityId` | UUID | -| `authorRole` | String | | `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `ownerId` | UUID | -| `parts` | JSON | +| `name` | String | +| `scopeId` | UUID | +| `storeId` | UUID | +| `commitId` | UUID | -**Required create fields:** `threadId`, `entityId`, `authorRole` -**Optional create fields (backend defaults):** `ownerId`, `parts` +**Required create fields:** `name`, `scopeId`, `storeId` +**Optional create fields (backend defaults):** `commitId` -### `agent-task` +### `store` -CRUD operations for AgentTask records. +CRUD operations for Store records. | Subcommand | Description | |------------|-------------| -| `list` | List all agentTask records | -| `find-first` | Find first matching agentTask record | -| `get` | Get a agentTask by id | -| `create` | Create a new agentTask | -| `update` | Update an existing agentTask | -| `delete` | Delete a agentTask | +| `list` | List all store records | +| `find-first` | Find first matching store record | +| `get` | Get a store by id | +| `create` | Create a new store | +| `update` | Update an existing store | +| `delete` | Delete a store | **Fields:** | Field | Type | |-------|------| -| `threadId` | UUID | -| `entityId` | UUID | -| `description` | String | -| `source` | String | -| `error` | String | | `id` | UUID | +| `name` | String | +| `scopeId` | UUID | +| `hash` | UUID | | `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `ownerId` | UUID | -| `status` | String | -**Required create fields:** `threadId`, `entityId`, `description` -**Optional create fields (backend defaults):** `source`, `error`, `ownerId`, `status` +**Required create fields:** `name`, `scopeId` +**Optional create fields (backend defaults):** `hash` + +### `app-permission-default` + +CRUD operations for AppPermissionDefault records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appPermissionDefault records | +| `find-first` | Find first matching appPermissionDefault record | +| `get` | Get a appPermissionDefault by id | +| `create` | Create a new appPermissionDefault | +| `update` | Update an existing appPermissionDefault | +| `delete` | Delete a appPermissionDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `permissions` | BitString | + +**Optional create fields (backend defaults):** `permissions` ### `role-type` @@ -3761,130 +3982,139 @@ CRUD operations for RoleType records. **Required create fields:** `name` -### `identity-provider` +### `migrate-file` -CRUD operations for IdentityProvider records. +CRUD operations for MigrateFile records. | Subcommand | Description | |------------|-------------| -| `list` | List all identityProvider records | -| `find-first` | Find first matching identityProvider record | -| `get` | Get a identityProvider by id | -| `create` | Create a new identityProvider | -| `update` | Update an existing identityProvider | -| `delete` | Delete a identityProvider | +| `list` | List all migrateFile records | +| `find-first` | Find first matching migrateFile record | +| `get` | Get a migrateFile by id | +| `create` | Create a new migrateFile | +| `update` | Update an existing migrateFile | +| `delete` | Delete a migrateFile | **Fields:** | Field | Type | |-------|------| -| `slug` | String | -| `kind` | String | -| `displayName` | String | -| `enabled` | Boolean | -| `isBuiltIn` | Boolean | +| `id` | UUID | +| `databaseId` | UUID | +| `upload` | Upload | -**Optional create fields (backend defaults):** `slug`, `kind`, `displayName`, `enabled`, `isBuiltIn` +**Optional create fields (backend defaults):** `databaseId`, `upload` -### `ref` +### `devices-module` -CRUD operations for Ref records. +CRUD operations for DevicesModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all ref records | -| `find-first` | Find first matching ref record | -| `get` | Get a ref by id | -| `create` | Create a new ref | -| `update` | Update an existing ref | -| `delete` | Delete a ref | +| `list` | List all devicesModule records | +| `find-first` | Find first matching devicesModule record | +| `get` | Get a devicesModule by id | +| `create` | Create a new devicesModule | +| `update` | Update an existing devicesModule | +| `delete` | Delete a devicesModule | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | | `databaseId` | UUID | -| `storeId` | UUID | -| `commitId` | UUID | +| `schemaId` | UUID | +| `userDevicesTableId` | UUID | +| `deviceSettingsTableId` | UUID | +| `userDevicesTable` | String | +| `deviceSettingsTable` | String | -**Required create fields:** `name`, `databaseId`, `storeId` -**Optional create fields (backend defaults):** `commitId` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `userDevicesTableId`, `deviceSettingsTableId`, `userDevicesTable`, `deviceSettingsTable` -### `store` +### `app-membership-default` -CRUD operations for Store records. +CRUD operations for AppMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all store records | -| `find-first` | Find first matching store record | -| `get` | Get a store by id | -| `create` | Create a new store | -| `update` | Update an existing store | -| `delete` | Delete a store | +| `list` | List all appMembershipDefault records | +| `find-first` | Find first matching appMembershipDefault record | +| `get` | Get a appMembershipDefault by id | +| `create` | Create a new appMembershipDefault | +| `update` | Update an existing appMembershipDefault | +| `delete` | Delete a appMembershipDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `databaseId` | UUID | -| `hash` | UUID | | `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isVerified` | Boolean | -**Required create fields:** `name`, `databaseId` -**Optional create fields (backend defaults):** `hash` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` -### `app-permission-default` +### `org-membership-default` -CRUD operations for AppPermissionDefault records. +CRUD operations for OrgMembershipDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all appPermissionDefault records | -| `find-first` | Find first matching appPermissionDefault record | -| `get` | Get a appPermissionDefault by id | -| `create` | Create a new appPermissionDefault | -| `update` | Update an existing appPermissionDefault | -| `delete` | Delete a appPermissionDefault | +| `list` | List all orgMembershipDefault records | +| `find-first` | Find first matching orgMembershipDefault record | +| `get` | Get a orgMembershipDefault by id | +| `create` | Create a new orgMembershipDefault | +| `update` | Update an existing orgMembershipDefault | +| `delete` | Delete a orgMembershipDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `permissions` | BitString | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `entityId` | UUID | -**Optional create fields (backend defaults):** `permissions` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` -### `app-limit-credit-code` +### `node-type-registry` -CRUD operations for AppLimitCreditCode records. +CRUD operations for NodeTypeRegistry records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitCreditCode records | -| `find-first` | Find first matching appLimitCreditCode record | -| `get` | Get a appLimitCreditCode by id | -| `create` | Create a new appLimitCreditCode | -| `update` | Update an existing appLimitCreditCode | -| `delete` | Delete a appLimitCreditCode | +| `list` | List all nodeTypeRegistry records | +| `find-first` | Find first matching nodeTypeRegistry record | +| `get` | Get a nodeTypeRegistry by name | +| `create` | Create a new nodeTypeRegistry | +| `update` | Update an existing nodeTypeRegistry | +| `delete` | Delete a nodeTypeRegistry | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | -| `code` | String | -| `maxRedemptions` | Int | -| `currentRedemptions` | Int | -| `expiresAt` | Datetime | +| `name` | String | +| `slug` | String | +| `category` | String | +| `displayName` | String | +| `description` | String | +| `parameterSchema` | JSON | +| `tags` | String | -**Required create fields:** `code` -**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` +**Required create fields:** `slug`, `category` +**Optional create fields (backend defaults):** `displayName`, `description`, `parameterSchema`, `tags` ### `app-limit-caps-default` @@ -3984,111 +4214,33 @@ CRUD operations for OrgLimitCap records. **Required create fields:** `name`, `entityId` **Optional create fields (backend defaults):** `max` -### `membership-type` - -CRUD operations for MembershipType records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all membershipType records | -| `find-first` | Find first matching membershipType record | -| `get` | Get a membershipType by id | -| `create` | Create a new membershipType | -| `update` | Update an existing membershipType | -| `delete` | Delete a membershipType | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `name` | String | -| `description` | String | -| `prefix` | String | -| `parentMembershipType` | Int | -| `hasUsersTableEntry` | Boolean | - -**Required create fields:** `name`, `description`, `prefix` -**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` - -### `migrate-file` - -CRUD operations for MigrateFile records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all migrateFile records | -| `find-first` | Find first matching migrateFile record | -| `get` | Get a migrateFile by id | -| `create` | Create a new migrateFile | -| `update` | Update an existing migrateFile | -| `delete` | Delete a migrateFile | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `upload` | Upload | - -**Optional create fields (backend defaults):** `databaseId`, `upload` - -### `devices-module` +### `user-connected-account` -CRUD operations for DevicesModule records. +CRUD operations for UserConnectedAccount records. | Subcommand | Description | |------------|-------------| -| `list` | List all devicesModule records | -| `find-first` | Find first matching devicesModule record | -| `get` | Get a devicesModule by id | -| `create` | Create a new devicesModule | -| `update` | Update an existing devicesModule | -| `delete` | Delete a devicesModule | +| `list` | List all userConnectedAccount records | +| `find-first` | Find first matching userConnectedAccount record | +| `get` | Get a userConnectedAccount by id | +| `create` | Create a new userConnectedAccount | +| `update` | Update an existing userConnectedAccount | +| `delete` | Delete a userConnectedAccount | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `userDevicesTableId` | UUID | -| `deviceSettingsTableId` | UUID | -| `userDevicesTable` | String | -| `deviceSettingsTable` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `userDevicesTableId`, `deviceSettingsTableId`, `userDevicesTable`, `deviceSettingsTable` - -### `node-type-registry` - -CRUD operations for NodeTypeRegistry records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all nodeTypeRegistry records | -| `find-first` | Find first matching nodeTypeRegistry record | -| `get` | Get a nodeTypeRegistry by name | -| `create` | Create a new nodeTypeRegistry | -| `update` | Update an existing nodeTypeRegistry | -| `delete` | Delete a nodeTypeRegistry | - -**Fields:** - -| Field | Type | -|-------|------| -| `name` | String | -| `slug` | String | -| `category` | String | -| `displayName` | String | -| `description` | String | -| `parameterSchema` | JSON | -| `tags` | String | +| `ownerId` | UUID | +| `service` | String | +| `identifier` | String | +| `details` | JSON | +| `isVerified` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | -**Required create fields:** `slug`, `category` -**Optional create fields (backend defaults):** `displayName`, `description`, `parameterSchema`, `tags` +**Optional create fields (backend defaults):** `ownerId`, `service`, `identifier`, `details`, `isVerified` ### `app-limit-default` @@ -4140,6 +4292,32 @@ CRUD operations for OrgLimitDefault records. **Required create fields:** `name` **Optional create fields (backend defaults):** `max`, `softMax` +### `app-limit-credit-code` + +CRUD operations for AppLimitCreditCode records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitCreditCode records | +| `find-first` | Find first matching appLimitCreditCode record | +| `get` | Get a appLimitCreditCode by id | +| `create` | Create a new appLimitCreditCode | +| `update` | Update an existing appLimitCreditCode | +| `delete` | Delete a appLimitCreditCode | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `code` | String | +| `maxRedemptions` | Int | +| `currentRedemptions` | Int | +| `expiresAt` | Datetime | + +**Required create fields:** `code` +**Optional create fields (backend defaults):** `maxRedemptions`, `currentRedemptions`, `expiresAt` + ### `app-limit-warning` CRUD operations for AppLimitWarning records. @@ -4165,34 +4343,6 @@ CRUD operations for AppLimitWarning records. **Required create fields:** `name`, `warningType`, `thresholdValue`, `taskIdentifier` -### `user-connected-account` - -CRUD operations for UserConnectedAccount records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all userConnectedAccount records | -| `find-first` | Find first matching userConnectedAccount record | -| `get` | Get a userConnectedAccount by id | -| `create` | Create a new userConnectedAccount | -| `update` | Update an existing userConnectedAccount | -| `delete` | Delete a userConnectedAccount | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `service` | String | -| `identifier` | String | -| `details` | JSON | -| `isVerified` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Optional create fields (backend defaults):** `ownerId`, `service`, `identifier`, `details`, `isVerified` - ### `commit` CRUD operations for Commit records. @@ -4212,7 +4362,7 @@ CRUD operations for Commit records. |-------|------| | `id` | UUID | | `message` | String | -| `databaseId` | UUID | +| `scopeId` | UUID | | `storeId` | UUID | | `parentIds` | UUID | | `authorId` | UUID | @@ -4220,7 +4370,7 @@ CRUD operations for Commit records. | `treeId` | UUID | | `date` | Datetime | -**Required create fields:** `databaseId`, `storeId` +**Required create fields:** `scopeId`, `storeId` **Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` ### `pubkey-setting` @@ -4283,87 +4433,32 @@ CRUD operations for RateLimitsModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `rateLimitSettingsTableId`, `ipRateLimitsTableId`, `rateLimitsTableId`, `rateLimitSettingsTable`, `ipRateLimitsTable`, `rateLimitsTable` -### `usage-snapshot` - -CRUD operations for UsageSnapshot records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all usageSnapshot records | -| `find-first` | Find first matching usageSnapshot record | -| `get` | Get a usageSnapshot by id | -| `create` | Create a new usageSnapshot | -| `update` | Update an existing usageSnapshot | -| `delete` | Delete a usageSnapshot | - -**Fields:** - -| Field | Type | -|-------|------| -| `databaseId` | UUID | -| `metricName` | String | -| `metricValue` | BigInt | -| `dimensions` | JSON | -| `capturedAt` | Datetime | -| `id` | UUID | - -**Required create fields:** `databaseId`, `metricName` -**Optional create fields (backend defaults):** `metricValue`, `dimensions`, `capturedAt` - -### `app-membership-default` - -CRUD operations for AppMembershipDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appMembershipDefault records | -| `find-first` | Find first matching appMembershipDefault record | -| `get` | Get a appMembershipDefault by id | -| `create` | Create a new appMembershipDefault | -| `update` | Update an existing appMembershipDefault | -| `delete` | Delete a appMembershipDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isVerified` | Boolean | - -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isVerified` - -### `org-membership-default` +### `membership-type` -CRUD operations for OrgMembershipDefault records. +CRUD operations for MembershipType records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipDefault records | -| `find-first` | Find first matching orgMembershipDefault record | -| `get` | Get a orgMembershipDefault by id | -| `create` | Create a new orgMembershipDefault | -| `update` | Update an existing orgMembershipDefault | -| `delete` | Delete a orgMembershipDefault | +| `list` | List all membershipType records | +| `find-first` | Find first matching membershipType record | +| `get` | Get a membershipType by id | +| `create` | Create a new membershipType | +| `update` | Update an existing membershipType | +| `delete` | Delete a membershipType | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `entityId` | UUID | +| `id` | Int | +| `name` | String | +| `description` | String | +| `prefix` | String | +| `parentMembershipType` | Int | +| `hasUsersTableEntry` | Boolean | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` +**Required create fields:** `name`, `description`, `prefix` +**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` ### `rls-setting` @@ -4396,64 +4491,6 @@ CRUD operations for RlsSetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `authenticateSchemaId`, `roleSchemaId`, `authenticateFunctionId`, `authenticateStrictFunctionId`, `currentRoleFunctionId`, `currentRoleIdFunctionId`, `currentUserAgentFunctionId`, `currentIpAddressFunctionId` -### `app-limit-event` - -CRUD operations for AppLimitEvent records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLimitEvent records | -| `find-first` | Find first matching appLimitEvent record | -| `get` | Get a appLimitEvent by id | -| `create` | Create a new appLimitEvent | -| `update` | Update an existing appLimitEvent | -| `delete` | Delete a appLimitEvent | - -**Fields:** - -| Field | Type | -|-------|------| -| `name` | String | -| `actorId` | UUID | -| `entityId` | UUID | -| `eventType` | String | -| `delta` | BigInt | -| `numBefore` | BigInt | -| `numAfter` | BigInt | -| `maxAtEvent` | BigInt | -| `reason` | String | - -**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` - -### `org-limit-event` - -CRUD operations for OrgLimitEvent records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgLimitEvent records | -| `find-first` | Find first matching orgLimitEvent record | -| `get` | Get a orgLimitEvent by id | -| `create` | Create a new orgLimitEvent | -| `update` | Update an existing orgLimitEvent | -| `delete` | Delete a orgLimitEvent | - -**Fields:** - -| Field | Type | -|-------|------| -| `name` | String | -| `actorId` | UUID | -| `entityId` | UUID | -| `eventType` | String | -| `delta` | BigInt | -| `numBefore` | BigInt | -| `numAfter` | BigInt | -| `maxAtEvent` | BigInt | -| `reason` | String | - -**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` - ### `rls-module` CRUD operations for RlsModule records. @@ -4486,6 +4523,39 @@ CRUD operations for RlsModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `sessionCredentialsTableId`, `sessionsTableId`, `usersTableId`, `authenticate`, `authenticateStrict`, `currentRole`, `currentRoleId` +### `agent-chat-module` + +CRUD operations for AgentChatModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentChatModule records | +| `find-first` | Find first matching agentChatModule record | +| `get` | Get a agentChatModule by id | +| `create` | Create a new agentChatModule | +| `update` | Update an existing agentChatModule | +| `delete` | Delete a agentChatModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `apiId` | UUID | +| `threadTableId` | UUID | +| `threadTableName` | String | +| `messageTableId` | UUID | +| `messageTableName` | String | +| `taskTableId` | UUID | +| `taskTableName` | String | +| `prefix` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `apiId`, `threadTableId`, `threadTableName`, `messageTableId`, `messageTableName`, `taskTableId`, `taskTableName`, `prefix` + ### `rate-limit-meters-module` CRUD operations for RateLimitMetersModule records. @@ -4586,6 +4656,68 @@ CRUD operations for SqlAction records. **Optional create fields (backend defaults):** `name`, `databaseId`, `deploy`, `deps`, `payload`, `content`, `revert`, `verify`, `action`, `actionId`, `actorId` +### `app-limit-event` + +CRUD operations for AppLimitEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitEvent records | +| `find-first` | Find first matching appLimitEvent record | +| `get` | Get a appLimitEvent by id | +| `create` | Create a new appLimitEvent | +| `update` | Update an existing appLimitEvent | +| `delete` | Delete a appLimitEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | + +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` + +### `org-limit-event` + +CRUD operations for OrgLimitEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitEvent records | +| `find-first` | Find first matching orgLimitEvent record | +| `get` | Get a orgLimitEvent by id | +| `create` | Create a new orgLimitEvent | +| `update` | Update an existing orgLimitEvent | +| `delete` | Delete a orgLimitEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `createdAt` | Datetime | +| `id` | UUID | +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | + +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` + ### `database-setting` CRUD operations for DatabaseSetting records. @@ -4621,73 +4753,77 @@ CRUD operations for DatabaseSetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `enableBulk`, `options` -### `billing-module` +### `org-membership-setting` -CRUD operations for BillingModule records. +CRUD operations for OrgMembershipSetting records. | Subcommand | Description | |------------|-------------| -| `list` | List all billingModule records | -| `find-first` | Find first matching billingModule record | -| `get` | Get a billingModule by id | -| `create` | Create a new billingModule | -| `update` | Update an existing billingModule | -| `delete` | Delete a billingModule | +| `list` | List all orgMembershipSetting records | +| `find-first` | Find first matching orgMembershipSetting record | +| `get` | Get a orgMembershipSetting by id | +| `create` | Create a new orgMembershipSetting | +| `update` | Update an existing orgMembershipSetting | +| `delete` | Delete a orgMembershipSetting | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `metersTableId` | UUID | -| `metersTableName` | String | -| `planSubscriptionsTableId` | UUID | -| `planSubscriptionsTableName` | String | -| `ledgerTableId` | UUID | -| `ledgerTableName` | String | -| `balancesTableId` | UUID | -| `balancesTableName` | String | -| `recordUsageFunction` | String | -| `prefix` | String | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `entityId` | UUID | +| `deleteMemberCascadeChildren` | Boolean | +| `createChildCascadeOwners` | Boolean | +| `createChildCascadeAdmins` | Boolean | +| `createChildCascadeMembers` | Boolean | +| `allowExternalMembers` | Boolean | +| `inviteProfileAssignmentMode` | String | +| `populateMemberEmail` | Boolean | +| `limitAllocationMode` | String | -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `recordUsageFunction`, `prefix` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` -### `ast-migration` +### `app-membership` -CRUD operations for AstMigration records. +CRUD operations for AppMembership records. | Subcommand | Description | |------------|-------------| -| `list` | List all astMigration records | -| `find-first` | Find first matching astMigration record | -| `get` | Get a astMigration by id | -| `create` | Create a new astMigration | -| `update` | Update an existing astMigration | -| `delete` | Delete a astMigration | +| `list` | List all appMembership records | +| `find-first` | Find first matching appMembership record | +| `get` | Get a appMembership by id | +| `create` | Create a new appMembership | +| `update` | Update an existing appMembership | +| `delete` | Delete a appMembership | **Fields:** | Field | Type | |-------|------| -| `id` | Int | -| `databaseId` | UUID | -| `name` | String | -| `requires` | String | -| `payload` | JSON | -| `deploys` | String | -| `deploy` | JSON | -| `revert` | JSON | -| `verify` | JSON | +| `id` | UUID | | `createdAt` | Datetime | -| `action` | String | -| `actionId` | UUID | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `isApproved` | Boolean | +| `isBanned` | Boolean | +| `isDisabled` | Boolean | +| `isVerified` | Boolean | +| `isActive` | Boolean | +| `isOwner` | Boolean | +| `isAdmin` | Boolean | +| `permissions` | BitString | +| `granted` | BitString | | `actorId` | UUID | +| `profileId` | UUID | -**Optional create fields (backend defaults):** `databaseId`, `name`, `requires`, `payload`, `deploys`, `deploy`, `revert`, `verify`, `action`, `actionId`, `actorId` +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` ### `user` @@ -4747,40 +4883,38 @@ csdk user search "query" --limit 10 --select id,title,searchScore ``` -### `org-membership-setting` +### `ast-migration` -CRUD operations for OrgMembershipSetting records. +CRUD operations for AstMigration records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipSetting records | -| `find-first` | Find first matching orgMembershipSetting record | -| `get` | Get a orgMembershipSetting by id | -| `create` | Create a new orgMembershipSetting | -| `update` | Update an existing orgMembershipSetting | -| `delete` | Delete a orgMembershipSetting | +| `list` | List all astMigration records | +| `find-first` | Find first matching astMigration record | +| `get` | Get a astMigration by id | +| `create` | Create a new astMigration | +| `update` | Update an existing astMigration | +| `delete` | Delete a astMigration | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | +| `id` | Int | +| `databaseId` | UUID | +| `name` | String | +| `requires` | String | +| `payload` | JSON | +| `deploys` | String | +| `deploy` | JSON | +| `revert` | JSON | +| `verify` | JSON | | `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `entityId` | UUID | -| `deleteMemberCascadeChildren` | Boolean | -| `createChildCascadeOwners` | Boolean | -| `createChildCascadeAdmins` | Boolean | -| `createChildCascadeMembers` | Boolean | -| `allowExternalMembers` | Boolean | -| `inviteProfileAssignmentMode` | String | -| `populateMemberEmail` | Boolean | -| `limitAllocationMode` | String | +| `action` | String | +| `actionId` | UUID | +| `actorId` | UUID | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` +**Optional create fields (backend defaults):** `databaseId`, `name`, `requires`, `payload`, `deploys`, `deploy`, `revert`, `verify`, `action`, `actionId`, `actorId` ### `webauthn-setting` @@ -4821,42 +4955,44 @@ CRUD operations for WebauthnSetting records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `credentialsSchemaId`, `sessionsSchemaId`, `sessionSecretsSchemaId`, `credentialsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `sessionSecretsTableId`, `userFieldId`, `rpId`, `rpName`, `originAllowlist`, `attestationType`, `requireUserVerification`, `residentKey`, `challengeExpirySeconds` -### `app-membership` +### `billing-module` -CRUD operations for AppMembership records. +CRUD operations for BillingModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all appMembership records | -| `find-first` | Find first matching appMembership record | -| `get` | Get a appMembership by id | -| `create` | Create a new appMembership | -| `update` | Update an existing appMembership | -| `delete` | Delete a appMembership | +| `list` | List all billingModule records | +| `find-first` | Find first matching billingModule record | +| `get` | Get a billingModule by id | +| `create` | Create a new billingModule | +| `update` | Update an existing billingModule | +| `delete` | Delete a billingModule | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `isApproved` | Boolean | -| `isBanned` | Boolean | -| `isDisabled` | Boolean | -| `isVerified` | Boolean | -| `isActive` | Boolean | -| `isOwner` | Boolean | -| `isAdmin` | Boolean | -| `permissions` | BitString | -| `granted` | BitString | -| `actorId` | UUID | -| `profileId` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `metersTableId` | UUID | +| `metersTableName` | String | +| `planSubscriptionsTableId` | UUID | +| `planSubscriptionsTableName` | String | +| `ledgerTableId` | UUID | +| `ledgerTableName` | String | +| `balancesTableId` | UUID | +| `balancesTableName` | String | +| `meterCreditsTableId` | UUID | +| `meterCreditsTableName` | String | +| `meterSourcesTableId` | UUID | +| `meterSourcesTableName` | String | +| `recordUsageFunction` | String | +| `prefix` | String | -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `recordUsageFunction`, `prefix` ### `billing-provider-module` @@ -5005,7 +5141,7 @@ revParse | Argument | Type | |----------|------| - | `--dbId` | UUID | + | `--sId` | UUID | | `--storeId` | UUID | | `--refname` | String | @@ -5095,78 +5231,78 @@ orgPermissionsGetMaskByNames |----------|------| | `--names` | String | -### `app-permissions-get-by-mask` +### `get-all-objects-from-root` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--mask` | BitString | + | `--sId` | UUID | + | `--id` | UUID | | `--first` | Int | | `--offset` | Int | | `--after` | Cursor | -### `org-permissions-get-by-mask` +### `get-path-objects-from-root` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--mask` | BitString | + | `--sId` | UUID | + | `--id` | UUID | + | `--path` | String | | `--first` | Int | | `--offset` | Int | | `--after` | Cursor | -### `get-all-objects-from-root` +### `get-object-at-path` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--databaseId` | UUID | - | `--id` | UUID | - | `--first` | Int | - | `--offset` | Int | - | `--after` | Cursor | + | `--sId` | UUID | + | `--storeId` | UUID | + | `--path` | String | + | `--refname` | String | -### `get-path-objects-from-root` +### `app-permissions-get-by-mask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--databaseId` | UUID | - | `--id` | UUID | - | `--path` | String | + | `--mask` | BitString | | `--first` | Int | | `--offset` | Int | | `--after` | Cursor | -### `get-object-at-path` +### `org-permissions-get-by-mask` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--dbId` | UUID | - | `--storeId` | UUID | - | `--path` | String | - | `--refname` | String | + | `--mask` | BitString | + | `--first` | Int | + | `--offset` | Int | + | `--after` | Cursor | ### `current-user` @@ -5378,7 +5514,7 @@ freezeObjects | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | + | `--input.sId` | UUID | | `--input.id` | UUID | ### `init-empty-repo` @@ -5391,12 +5527,12 @@ initEmptyRepo | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | ### `construct-blueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - **Type:** mutation - **Arguments:** @@ -5444,7 +5580,7 @@ removeNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | @@ -5483,6 +5619,19 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec | `--input.pOperator` | String | | `--input.pParamName` | String | +### `sign-in-cross-origin` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.token` | String | + | `--input.credentialKind` | String | + ### `bootstrap-user` bootstrapUser @@ -5501,6 +5650,40 @@ bootstrapUser | `--input.displayName` | String | | `--input.returnApiKey` | Boolean | +### `sign-up` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | String | + | `--input.password` | String | + | `--input.rememberMe` | Boolean | + | `--input.credentialKind` | String | + | `--input.csrfToken` | String | + | `--input.deviceToken` | String | + +### `sign-in` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | String | + | `--input.password` | String | + | `--input.rememberMe` | Boolean | + | `--input.credentialKind` | String | + | `--input.csrfToken` | String | + | `--input.deviceToken` | String | + ### `set-field-order` setFieldOrder @@ -5579,7 +5762,7 @@ setDataAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -5594,7 +5777,7 @@ setPropsAndCommit | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | | `--input.refname` | String | | `--input.path` | String | @@ -5626,7 +5809,7 @@ insertNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -5643,7 +5826,7 @@ updateNodeAtPath | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.root` | UUID | | `--input.path` | String | | `--input.data` | JSON | @@ -5660,7 +5843,7 @@ setAndCommit | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | + | `--input.sId` | UUID | | `--input.storeId` | UUID | | `--input.refname` | String | | `--input.path` | String | @@ -5716,19 +5899,6 @@ applyRls | `--input.permissive` | Boolean | | `--input.name` | String | -### `sign-in-cross-origin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.token` | String | - | `--input.credentialKind` | String | - ### `create-user-database` Creates a new user database with all required modules, permissions, and RLS policies. @@ -5790,47 +5960,6 @@ createApiKey | `--input.mfaLevel` | String | | `--input.expiresIn` | IntervalInput | -### `send-verification-email` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | Email | - -### `forgot-password` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | Email | - -### `sign-up` - -signUp - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | String | - | `--input.password` | String | - | `--input.rememberMe` | Boolean | - | `--input.credentialKind` | String | - | `--input.csrfToken` | String | - | `--input.deviceToken` | String | - ### `request-cross-origin-token` requestCrossOriginToken @@ -5846,23 +5975,6 @@ requestCrossOriginToken | `--input.origin` | Origin | | `--input.rememberMe` | Boolean | -### `sign-in` - -signIn - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | String | - | `--input.password` | String | - | `--input.rememberMe` | Boolean | - | `--input.credentialKind` | String | - | `--input.csrfToken` | String | - | `--input.deviceToken` | String | - ### `provision-table` Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -5887,6 +5999,30 @@ Composable table provisioning: creates or finds a table, then creates fields (so | `--input.uniqueConstraints` | JSON | | `--input.description` | String | +### `send-verification-email` + +sendVerificationEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | Email | + +### `forgot-password` + +forgotPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | Email | + ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/public/cli/commands.ts b/sdk/constructive-cli/src/public/cli/commands.ts index 3bbe34e6e2..b1e8fd64d7 100644 --- a/sdk/constructive-cli/src/public/cli/commands.ts +++ b/sdk/constructive-cli/src/public/cli/commands.ts @@ -9,9 +9,9 @@ import authCmd from './commands/auth'; 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'; -import objectCmd from './commands/object'; import databaseCmd from './commands/database'; import schemaCmd from './commands/schema'; import tableCmd from './commands/table'; @@ -36,6 +36,7 @@ import relationProvisionCmd from './commands/relation-provision'; import sessionSecretsModuleCmd from './commands/session-secrets-module'; import identityProvidersModuleCmd from './commands/identity-providers-module'; import realtimeModuleCmd from './commands/realtime-module'; +import configSecretsOrgModuleCmd from './commands/config-secrets-org-module'; import schemaGrantCmd from './commands/schema-grant'; import defaultPrivilegeCmd from './commands/default-privilege'; import enumCmd from './commands/enum'; @@ -60,7 +61,7 @@ import cryptoAuthModuleCmd from './commands/crypto-auth-module'; import defaultIdsModuleCmd from './commands/default-ids-module'; import denormalizedTableFieldCmd from './commands/denormalized-table-field'; import emailsModuleCmd from './commands/emails-module'; -import encryptedSecretsModuleCmd from './commands/encrypted-secrets-module'; +import configSecretsUserModuleCmd from './commands/config-secrets-user-module'; import invitesModuleCmd from './commands/invites-module'; import eventsModuleCmd from './commands/events-module'; import limitsModuleCmd from './commands/limits-module'; @@ -81,6 +82,11 @@ import entityTypeProvisionCmd from './commands/entity-type-provision'; import webauthnCredentialsModuleCmd from './commands/webauthn-credentials-module'; import webauthnAuthModuleCmd from './commands/webauthn-auth-module'; import notificationsModuleCmd from './commands/notifications-module'; +import inferenceLogModuleCmd from './commands/inference-log-module'; +import computeLogModuleCmd from './commands/compute-log-module'; +import transferLogModuleCmd from './commands/transfer-log-module'; +import storageLogModuleCmd from './commands/storage-log-module'; +import dbUsageModuleCmd from './commands/db-usage-module'; import databaseProvisionModuleCmd from './commands/database-provision-module'; import appAdminGrantCmd from './commands/app-admin-grant'; import appOwnerGrantCmd from './commands/app-owner-grant'; @@ -110,48 +116,45 @@ import appInviteCmd from './commands/app-invite'; import appClaimedInviteCmd from './commands/app-claimed-invite'; import orgInviteCmd from './commands/org-invite'; import orgClaimedInviteCmd from './commands/org-claimed-invite'; -import auditLogCmd from './commands/audit-log'; -import agentThreadCmd from './commands/agent-thread'; -import agentMessageCmd from './commands/agent-message'; -import agentTaskCmd from './commands/agent-task'; -import roleTypeCmd from './commands/role-type'; +import auditLogAuthCmd from './commands/audit-log-auth'; import identityProviderCmd from './commands/identity-provider'; import refCmd from './commands/ref'; import storeCmd from './commands/store'; import appPermissionDefaultCmd from './commands/app-permission-default'; -import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; +import roleTypeCmd from './commands/role-type'; +import migrateFileCmd from './commands/migrate-file'; +import devicesModuleCmd from './commands/devices-module'; +import appMembershipDefaultCmd from './commands/app-membership-default'; +import orgMembershipDefaultCmd from './commands/org-membership-default'; +import nodeTypeRegistryCmd from './commands/node-type-registry'; import appLimitCapsDefaultCmd from './commands/app-limit-caps-default'; import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default'; import appLimitCapCmd from './commands/app-limit-cap'; import orgLimitCapCmd from './commands/org-limit-cap'; -import membershipTypeCmd from './commands/membership-type'; -import migrateFileCmd from './commands/migrate-file'; -import devicesModuleCmd from './commands/devices-module'; -import nodeTypeRegistryCmd from './commands/node-type-registry'; +import userConnectedAccountCmd from './commands/user-connected-account'; import appLimitDefaultCmd from './commands/app-limit-default'; import orgLimitDefaultCmd from './commands/org-limit-default'; +import appLimitCreditCodeCmd from './commands/app-limit-credit-code'; import appLimitWarningCmd from './commands/app-limit-warning'; -import userConnectedAccountCmd from './commands/user-connected-account'; import commitCmd from './commands/commit'; import pubkeySettingCmd from './commands/pubkey-setting'; import rateLimitsModuleCmd from './commands/rate-limits-module'; -import usageSnapshotCmd from './commands/usage-snapshot'; -import appMembershipDefaultCmd from './commands/app-membership-default'; -import orgMembershipDefaultCmd from './commands/org-membership-default'; +import membershipTypeCmd from './commands/membership-type'; import rlsSettingCmd from './commands/rls-setting'; -import appLimitEventCmd from './commands/app-limit-event'; -import orgLimitEventCmd from './commands/org-limit-event'; import rlsModuleCmd from './commands/rls-module'; +import agentChatModuleCmd from './commands/agent-chat-module'; import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module'; import plansModuleCmd from './commands/plans-module'; import sqlActionCmd from './commands/sql-action'; +import appLimitEventCmd from './commands/app-limit-event'; +import orgLimitEventCmd from './commands/org-limit-event'; import databaseSettingCmd from './commands/database-setting'; -import billingModuleCmd from './commands/billing-module'; -import astMigrationCmd from './commands/ast-migration'; -import userCmd from './commands/user'; import orgMembershipSettingCmd from './commands/org-membership-setting'; -import webauthnSettingCmd from './commands/webauthn-setting'; import appMembershipCmd from './commands/app-membership'; +import userCmd from './commands/user'; +import astMigrationCmd from './commands/ast-migration'; +import webauthnSettingCmd from './commands/webauthn-setting'; +import billingModuleCmd from './commands/billing-module'; import billingProviderModuleCmd from './commands/billing-provider-module'; import hierarchyModuleCmd from './commands/hierarchy-module'; import currentUserIdCmd from './commands/current-user-id'; @@ -168,11 +171,11 @@ import orgPermissionsGetMaskCmd from './commands/org-permissions-get-mask'; import resolveBlueprintTableCmd from './commands/resolve-blueprint-table'; import appPermissionsGetMaskByNamesCmd from './commands/app-permissions-get-mask-by-names'; import orgPermissionsGetMaskByNamesCmd from './commands/org-permissions-get-mask-by-names'; -import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; -import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; import getAllObjectsFromRootCmd from './commands/get-all-objects-from-root'; import getPathObjectsFromRootCmd from './commands/get-path-objects-from-root'; import getObjectAtPathCmd from './commands/get-object-at-path'; +import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; +import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; import currentUserCmd from './commands/current-user'; import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email'; import signOutCmd from './commands/sign-out'; @@ -198,7 +201,10 @@ import resetPasswordCmd from './commands/reset-password'; import removeNodeAtPathCmd from './commands/remove-node-at-path'; import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint'; import provisionSpatialRelationCmd from './commands/provision-spatial-relation'; +import signInCrossOriginCmd from './commands/sign-in-cross-origin'; import bootstrapUserCmd from './commands/bootstrap-user'; +import signUpCmd from './commands/sign-up'; +import signInCmd from './commands/sign-in'; import setFieldOrderCmd from './commands/set-field-order'; import provisionCheckConstraintCmd from './commands/provision-check-constraint'; import provisionUniqueConstraintCmd from './commands/provision-unique-constraint'; @@ -212,16 +218,13 @@ import updateNodeAtPathCmd from './commands/update-node-at-path'; import setAndCommitCmd from './commands/set-and-commit'; import provisionRelationCmd from './commands/provision-relation'; import applyRlsCmd from './commands/apply-rls'; -import signInCrossOriginCmd from './commands/sign-in-cross-origin'; import createUserDatabaseCmd from './commands/create-user-database'; import extendTokenExpiresCmd from './commands/extend-token-expires'; import createApiKeyCmd from './commands/create-api-key'; -import sendVerificationEmailCmd from './commands/send-verification-email'; -import forgotPasswordCmd from './commands/forgot-password'; -import signUpCmd from './commands/sign-up'; import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; -import signInCmd from './commands/sign-in'; import provisionTableCmd from './commands/provision-table'; +import sendVerificationEmailCmd from './commands/send-verification-email'; +import forgotPasswordCmd from './commands/forgot-password'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -236,9 +239,9 @@ const createCommandMap: () => Record< 'org-get-managers-record': orgGetManagersRecordCmd, 'org-get-subordinates-record': orgGetSubordinatesRecordCmd, 'get-all-record': getAllRecordCmd, + object: objectCmd, 'app-permission': appPermissionCmd, 'org-permission': orgPermissionCmd, - object: objectCmd, database: databaseCmd, schema: schemaCmd, table: tableCmd, @@ -263,6 +266,7 @@ const createCommandMap: () => Record< 'session-secrets-module': sessionSecretsModuleCmd, 'identity-providers-module': identityProvidersModuleCmd, 'realtime-module': realtimeModuleCmd, + 'config-secrets-org-module': configSecretsOrgModuleCmd, 'schema-grant': schemaGrantCmd, 'default-privilege': defaultPrivilegeCmd, enum: enumCmd, @@ -287,7 +291,7 @@ const createCommandMap: () => Record< 'default-ids-module': defaultIdsModuleCmd, 'denormalized-table-field': denormalizedTableFieldCmd, 'emails-module': emailsModuleCmd, - 'encrypted-secrets-module': encryptedSecretsModuleCmd, + 'config-secrets-user-module': configSecretsUserModuleCmd, 'invites-module': invitesModuleCmd, 'events-module': eventsModuleCmd, 'limits-module': limitsModuleCmd, @@ -308,6 +312,11 @@ const createCommandMap: () => Record< 'webauthn-credentials-module': webauthnCredentialsModuleCmd, 'webauthn-auth-module': webauthnAuthModuleCmd, 'notifications-module': notificationsModuleCmd, + 'inference-log-module': inferenceLogModuleCmd, + 'compute-log-module': computeLogModuleCmd, + 'transfer-log-module': transferLogModuleCmd, + 'storage-log-module': storageLogModuleCmd, + 'db-usage-module': dbUsageModuleCmd, 'database-provision-module': databaseProvisionModuleCmd, 'app-admin-grant': appAdminGrantCmd, 'app-owner-grant': appOwnerGrantCmd, @@ -337,48 +346,45 @@ const createCommandMap: () => Record< 'app-claimed-invite': appClaimedInviteCmd, 'org-invite': orgInviteCmd, 'org-claimed-invite': orgClaimedInviteCmd, - 'audit-log': auditLogCmd, - 'agent-thread': agentThreadCmd, - 'agent-message': agentMessageCmd, - 'agent-task': agentTaskCmd, - 'role-type': roleTypeCmd, + 'audit-log-auth': auditLogAuthCmd, 'identity-provider': identityProviderCmd, ref: refCmd, store: storeCmd, 'app-permission-default': appPermissionDefaultCmd, - 'app-limit-credit-code': appLimitCreditCodeCmd, + 'role-type': roleTypeCmd, + 'migrate-file': migrateFileCmd, + 'devices-module': devicesModuleCmd, + 'app-membership-default': appMembershipDefaultCmd, + 'org-membership-default': orgMembershipDefaultCmd, + 'node-type-registry': nodeTypeRegistryCmd, 'app-limit-caps-default': appLimitCapsDefaultCmd, 'org-limit-caps-default': orgLimitCapsDefaultCmd, 'app-limit-cap': appLimitCapCmd, 'org-limit-cap': orgLimitCapCmd, - 'membership-type': membershipTypeCmd, - 'migrate-file': migrateFileCmd, - 'devices-module': devicesModuleCmd, - 'node-type-registry': nodeTypeRegistryCmd, + 'user-connected-account': userConnectedAccountCmd, 'app-limit-default': appLimitDefaultCmd, 'org-limit-default': orgLimitDefaultCmd, + 'app-limit-credit-code': appLimitCreditCodeCmd, 'app-limit-warning': appLimitWarningCmd, - 'user-connected-account': userConnectedAccountCmd, commit: commitCmd, 'pubkey-setting': pubkeySettingCmd, 'rate-limits-module': rateLimitsModuleCmd, - 'usage-snapshot': usageSnapshotCmd, - 'app-membership-default': appMembershipDefaultCmd, - 'org-membership-default': orgMembershipDefaultCmd, + 'membership-type': membershipTypeCmd, 'rls-setting': rlsSettingCmd, - 'app-limit-event': appLimitEventCmd, - 'org-limit-event': orgLimitEventCmd, 'rls-module': rlsModuleCmd, + 'agent-chat-module': agentChatModuleCmd, 'rate-limit-meters-module': rateLimitMetersModuleCmd, 'plans-module': plansModuleCmd, 'sql-action': sqlActionCmd, + 'app-limit-event': appLimitEventCmd, + 'org-limit-event': orgLimitEventCmd, 'database-setting': databaseSettingCmd, - 'billing-module': billingModuleCmd, - 'ast-migration': astMigrationCmd, - user: userCmd, 'org-membership-setting': orgMembershipSettingCmd, - 'webauthn-setting': webauthnSettingCmd, 'app-membership': appMembershipCmd, + user: userCmd, + 'ast-migration': astMigrationCmd, + 'webauthn-setting': webauthnSettingCmd, + 'billing-module': billingModuleCmd, 'billing-provider-module': billingProviderModuleCmd, 'hierarchy-module': hierarchyModuleCmd, 'current-user-id': currentUserIdCmd, @@ -395,11 +401,11 @@ const createCommandMap: () => Record< 'resolve-blueprint-table': resolveBlueprintTableCmd, 'app-permissions-get-mask-by-names': appPermissionsGetMaskByNamesCmd, 'org-permissions-get-mask-by-names': orgPermissionsGetMaskByNamesCmd, - 'app-permissions-get-by-mask': appPermissionsGetByMaskCmd, - 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, 'get-all-objects-from-root': getAllObjectsFromRootCmd, 'get-path-objects-from-root': getPathObjectsFromRootCmd, 'get-object-at-path': getObjectAtPathCmd, + 'app-permissions-get-by-mask': appPermissionsGetByMaskCmd, + 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, 'current-user': currentUserCmd, 'send-account-deletion-email': sendAccountDeletionEmailCmd, 'sign-out': signOutCmd, @@ -425,7 +431,10 @@ const createCommandMap: () => Record< 'remove-node-at-path': removeNodeAtPathCmd, 'copy-template-to-blueprint': copyTemplateToBlueprintCmd, 'provision-spatial-relation': provisionSpatialRelationCmd, + 'sign-in-cross-origin': signInCrossOriginCmd, 'bootstrap-user': bootstrapUserCmd, + 'sign-up': signUpCmd, + 'sign-in': signInCmd, 'set-field-order': setFieldOrderCmd, 'provision-check-constraint': provisionCheckConstraintCmd, 'provision-unique-constraint': provisionUniqueConstraintCmd, @@ -439,20 +448,17 @@ const createCommandMap: () => Record< 'set-and-commit': setAndCommitCmd, 'provision-relation': provisionRelationCmd, 'apply-rls': applyRlsCmd, - 'sign-in-cross-origin': signInCrossOriginCmd, 'create-user-database': createUserDatabaseCmd, 'extend-token-expires': extendTokenExpiresCmd, 'create-api-key': createApiKeyCmd, - 'send-verification-email': sendVerificationEmailCmd, - 'forgot-password': forgotPasswordCmd, - 'sign-up': signUpCmd, 'request-cross-origin-token': requestCrossOriginTokenCmd, - 'sign-in': signInCmd, 'provision-table': provisionTableCmd, + 'send-verification-email': sendVerificationEmailCmd, + 'forgot-password': forgotPasswordCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n partition partition CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n events-module eventsModule 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 user-state-module userStateModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n partition partition CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n invites-module invitesModule CRUD operations\n events-module eventsModule 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 user-state-module userStateModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n role-type roleType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n membership-type membershipType CRUD operations\n rls-setting rlsSetting CRUD operations\n rls-module rlsModule CRUD operations\n agent-chat-module agentChatModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n database-setting databaseSetting CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n app-membership appMembership CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n 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 current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n sign-in-cross-origin signInCrossOrigin\n bootstrap-user bootstrapUser\n sign-up signUp\n sign-in signIn\n set-field-order setFieldOrder\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n 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 events/analytics (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/public/cli/commands/agent-chat-module.ts b/sdk/constructive-cli/src/public/cli/commands/agent-chat-module.ts new file mode 100644 index 0000000000..61ee01ecbb --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/agent-chat-module.ts @@ -0,0 +1,471 @@ +/** + * CLI commands for AgentChatModule + * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentChatModuleInput, + AgentChatModulePatch, + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + apiId: 'uuid', + threadTableId: 'uuid', + threadTableName: 'string', + messageTableId: 'uuid', + messageTableName: 'string', + taskTableId: 'uuid', + taskTableName: 'string', + prefix: 'string', +}; +const usage = + '\nagent-chat-module \n\nCommands:\n list List agentChatModule records\n find-first Find first matching agentChatModule record\n get Get a agentChatModule by ID\n create Create a new agentChatModule\n update Update an existing agentChatModule\n delete Delete a agentChatModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': + return handleFindFirst(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 defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + apiId: true, + threadTableId: true, + threadTableName: true, + messageTableId: true, + messageTableName: true, + taskTableId: true, + taskTableName: true, + prefix: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentChatModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentChatModule.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + apiId: true, + threadTableId: true, + threadTableName: true, + messageTableId: true, + messageTableName: true, + taskTableId: true, + taskTableName: true, + prefix: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentChatModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentChatModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + 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.agentChatModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + apiId: true, + threadTableId: true, + threadTableName: true, + messageTableId: true, + messageTableName: true, + taskTableId: true, + taskTableName: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiId', + message: 'apiId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadTableId', + message: 'threadTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadTableName', + message: 'threadTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'messageTableId', + message: 'messageTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'messageTableName', + message: 'messageTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'taskTableId', + message: 'taskTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'taskTableName', + message: 'taskTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAgentChatModuleInput['agentChatModule']; + const client = getClient(); + const result = await client.agentChatModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + apiId: cleanedData.apiId, + threadTableId: cleanedData.threadTableId, + threadTableName: cleanedData.threadTableName, + messageTableId: cleanedData.messageTableId, + messageTableName: cleanedData.messageTableName, + taskTableId: cleanedData.taskTableId, + taskTableName: cleanedData.taskTableName, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + apiId: true, + threadTableId: true, + threadTableName: true, + messageTableId: true, + messageTableName: true, + taskTableId: true, + taskTableName: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiId', + message: 'apiId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadTableId', + message: 'threadTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'threadTableName', + message: 'threadTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'messageTableId', + message: 'messageTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'messageTableName', + message: 'messageTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'taskTableId', + message: 'taskTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'taskTableName', + message: 'taskTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentChatModulePatch; + const client = getClient(); + const result = await client.agentChatModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + apiId: cleanedData.apiId, + threadTableId: cleanedData.threadTableId, + threadTableName: cleanedData.threadTableName, + messageTableId: cleanedData.messageTableId, + messageTableName: cleanedData.messageTableName, + taskTableId: cleanedData.taskTableId, + taskTableName: cleanedData.taskTableName, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + apiId: true, + threadTableId: true, + threadTableName: true, + messageTableId: true, + messageTableName: true, + taskTableId: true, + taskTableName: true, + prefix: 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.agentChatModule + .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/agent-message.ts b/sdk/constructive-cli/src/public/cli/commands/agent-message.ts deleted file mode 100644 index b30f34c4ef..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/agent-message.ts +++ /dev/null @@ -1,347 +0,0 @@ -/** - * CLI commands for AgentMessage - * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAgentMessageInput, - AgentMessagePatch, - AgentMessageSelect, - AgentMessageFilter, - AgentMessageOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - threadId: 'uuid', - entityId: 'uuid', - authorRole: 'string', - id: 'uuid', - createdAt: 'string', - updatedAt: 'string', - ownerId: 'uuid', - parts: 'json', -}; -const usage = - '\nagent-message \n\nCommands:\n list List agentMessage records\n find-first Find first matching agentMessage record\n get Get a agentMessage by ID\n create Create a new agentMessage\n update Update an existing agentMessage\n delete Delete a agentMessage\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': - return handleFindFirst(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 defaultSelect = { - threadId: true, - entityId: true, - authorRole: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - parts: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AgentMessageSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.agentMessage.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - threadId: true, - entityId: true, - authorRole: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - parts: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AgentMessageSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.agentMessage.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - 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.agentMessage - .findOne({ - id: answers.id as string, - select: { - threadId: true, - entityId: true, - authorRole: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - parts: 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: 'threadId', - message: 'threadId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'authorRole', - message: 'authorRole', - required: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'parts', - message: 'parts', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAgentMessageInput['agentMessage']; - const client = getClient(); - const result = await client.agentMessage - .create({ - data: { - threadId: cleanedData.threadId, - entityId: cleanedData.entityId, - authorRole: cleanedData.authorRole, - ownerId: cleanedData.ownerId, - parts: cleanedData.parts, - }, - select: { - threadId: true, - entityId: true, - authorRole: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - parts: 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: 'threadId', - message: 'threadId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'authorRole', - message: 'authorRole', - required: false, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'parts', - message: 'parts', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AgentMessagePatch; - const client = getClient(); - const result = await client.agentMessage - .update({ - where: { - id: answers.id as string, - }, - data: { - threadId: cleanedData.threadId, - entityId: cleanedData.entityId, - authorRole: cleanedData.authorRole, - ownerId: cleanedData.ownerId, - parts: cleanedData.parts, - }, - select: { - threadId: true, - entityId: true, - authorRole: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - parts: 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.agentMessage - .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/agent-task.ts b/sdk/constructive-cli/src/public/cli/commands/agent-task.ts deleted file mode 100644 index db48a19fd1..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/agent-task.ts +++ /dev/null @@ -1,388 +0,0 @@ -/** - * CLI commands for AgentTask - * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAgentTaskInput, - AgentTaskPatch, - AgentTaskSelect, - AgentTaskFilter, - AgentTaskOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - threadId: 'uuid', - entityId: 'uuid', - description: 'string', - source: 'string', - error: 'string', - id: 'uuid', - createdAt: 'string', - updatedAt: 'string', - ownerId: 'uuid', - status: 'string', -}; -const usage = - '\nagent-task \n\nCommands:\n list List agentTask records\n find-first Find first matching agentTask record\n get Get a agentTask by ID\n create Create a new agentTask\n update Update an existing agentTask\n delete Delete a agentTask\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': - return handleFindFirst(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 defaultSelect = { - threadId: true, - entityId: true, - description: true, - source: true, - error: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - status: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AgentTaskSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.agentTask.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - threadId: true, - entityId: true, - description: true, - source: true, - error: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - status: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AgentTaskSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.agentTask.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - 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.agentTask - .findOne({ - id: answers.id as string, - select: { - threadId: true, - entityId: true, - description: true, - source: true, - error: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - status: 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: 'threadId', - message: 'threadId', - required: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: true, - }, - { - type: 'text', - name: 'source', - message: 'source', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'error', - message: 'error', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateAgentTaskInput['agentTask']; - const client = getClient(); - const result = await client.agentTask - .create({ - data: { - threadId: cleanedData.threadId, - entityId: cleanedData.entityId, - description: cleanedData.description, - source: cleanedData.source, - error: cleanedData.error, - ownerId: cleanedData.ownerId, - status: cleanedData.status, - }, - select: { - threadId: true, - entityId: true, - description: true, - source: true, - error: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - status: 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: 'threadId', - message: 'threadId', - required: false, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'description', - message: 'description', - required: false, - }, - { - type: 'text', - name: 'source', - message: 'source', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'error', - message: 'error', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AgentTaskPatch; - const client = getClient(); - const result = await client.agentTask - .update({ - where: { - id: answers.id as string, - }, - data: { - threadId: cleanedData.threadId, - entityId: cleanedData.entityId, - description: cleanedData.description, - source: cleanedData.source, - error: cleanedData.error, - ownerId: cleanedData.ownerId, - status: cleanedData.status, - }, - select: { - threadId: true, - entityId: true, - description: true, - source: true, - error: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - status: 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.agentTask - .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/agent-thread.ts b/sdk/constructive-cli/src/public/cli/commands/agent-thread.ts deleted file mode 100644 index 23b81fd7db..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/agent-thread.ts +++ /dev/null @@ -1,395 +0,0 @@ -/** - * CLI commands for AgentThread - * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateAgentThreadInput, - AgentThreadPatch, - AgentThreadSelect, - AgentThreadFilter, - AgentThreadOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - title: 'string', - mode: 'string', - model: 'string', - systemPrompt: 'string', - id: 'uuid', - createdAt: 'string', - updatedAt: 'string', - ownerId: 'uuid', - entityId: 'uuid', - status: 'string', -}; -const usage = - '\nagent-thread \n\nCommands:\n list List agentThread records\n find-first Find first matching agentThread record\n get Get a agentThread by ID\n create Create a new agentThread\n update Update an existing agentThread\n delete Delete a agentThread\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': - return handleFindFirst(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 defaultSelect = { - title: true, - mode: true, - model: true, - systemPrompt: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - entityId: true, - status: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AgentThreadSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.agentThread.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - title: true, - mode: true, - model: true, - systemPrompt: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - entityId: true, - status: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AgentThreadSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.agentThread.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - 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.agentThread - .findOne({ - id: answers.id as string, - select: { - title: true, - mode: true, - model: true, - systemPrompt: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - entityId: true, - status: 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: 'title', - message: 'title', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'mode', - message: 'mode', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'model', - message: 'model', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'systemPrompt', - message: 'systemPrompt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: true, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateAgentThreadInput['agentThread']; - const client = getClient(); - const result = await client.agentThread - .create({ - data: { - title: cleanedData.title, - mode: cleanedData.mode, - model: cleanedData.model, - systemPrompt: cleanedData.systemPrompt, - ownerId: cleanedData.ownerId, - entityId: cleanedData.entityId, - status: cleanedData.status, - }, - select: { - title: true, - mode: true, - model: true, - systemPrompt: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - entityId: true, - status: 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: 'title', - message: 'title', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'mode', - message: 'mode', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'model', - message: 'model', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'systemPrompt', - message: 'systemPrompt', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'ownerId', - message: 'ownerId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'entityId', - message: 'entityId', - required: false, - }, - { - type: 'text', - name: 'status', - message: 'status', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AgentThreadPatch; - const client = getClient(); - const result = await client.agentThread - .update({ - where: { - id: answers.id as string, - }, - data: { - title: cleanedData.title, - mode: cleanedData.mode, - model: cleanedData.model, - systemPrompt: cleanedData.systemPrompt, - ownerId: cleanedData.ownerId, - entityId: cleanedData.entityId, - status: cleanedData.status, - }, - select: { - title: true, - mode: true, - model: true, - systemPrompt: true, - id: true, - createdAt: true, - updatedAt: true, - ownerId: true, - entityId: true, - status: 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.agentThread - .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/app-limit-event.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts index 0e8be421d2..1cec8ade46 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts @@ -16,6 +16,8 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', name: 'string', actorId: 'uuid', entityId: 'uuid', @@ -27,7 +29,7 @@ const fieldSchema: FieldSchema = { reason: 'string', }; const usage = - '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n create Create a new appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n get Get a appLimitEvent by ID\n create Create a new appLimitEvent\n update Update an existing appLimitEvent\n delete Delete a appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -44,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +63,14 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(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); @@ -71,6 +79,8 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -100,6 +110,8 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -126,6 +138,44 @@ async function handleFindFirst(argv: Partial>, _prompter 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.appLimitEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: 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, [ @@ -213,6 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In reason: cleanedData.reason, }, select: { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -234,3 +286,150 @@ async function handleCreate(argv: Partial>, prompter: In 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, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitEventPatch; + const client = getClient(); + const result = await client.appLimitEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: 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.appLimitEvent + .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/audit-log.ts b/sdk/constructive-cli/src/public/cli/commands/audit-log-auth.ts similarity index 79% rename from sdk/constructive-cli/src/public/cli/commands/audit-log.ts rename to sdk/constructive-cli/src/public/cli/commands/audit-log-auth.ts index 97194c6a67..cfe2d760ed 100644 --- a/sdk/constructive-cli/src/public/cli/commands/audit-log.ts +++ b/sdk/constructive-cli/src/public/cli/commands/audit-log-auth.ts @@ -1,5 +1,5 @@ /** - * CLI commands for AuditLog + * CLI commands for AuditLogAuth * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,14 +8,15 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateAuditLogInput, - AuditLogPatch, - AuditLogSelect, - AuditLogFilter, - AuditLogOrderBy, + CreateAuditLogAuthInput, + AuditLogAuthPatch, + AuditLogAuthSelect, + AuditLogAuthFilter, + AuditLogAuthOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', id: 'uuid', event: 'string', actorId: 'uuid', @@ -23,10 +24,9 @@ const fieldSchema: FieldSchema = { userAgent: 'string', ipAddress: 'string', success: 'boolean', - createdAt: 'string', }; const usage = - '\naudit-log \n\nCommands:\n list List auditLog records\n find-first Find first matching auditLog record\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\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\naudit-log-auth \n\nCommands:\n list List auditLogAuth records\n find-first Find first matching auditLogAuth record\n get Get a auditLogAuth by ID\n create Create a new auditLogAuth\n update Update an existing auditLogAuth\n delete Delete a auditLogAuth\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -76,6 +76,7 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, id: true, event: true, actorId: true, @@ -83,15 +84,14 @@ async function handleList(argv: Partial>, _prompter: Inq userAgent: true, ipAddress: true, success: true, - createdAt: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: AuditLogSelect; + FindManyArgs & { + select: AuditLogAuthSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.auditLog.findMany(findManyArgs).execute(); + const result = await client.auditLogAuth.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -104,6 +104,7 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, id: true, event: true, actorId: true, @@ -111,15 +112,14 @@ async function handleFindFirst(argv: Partial>, _prompter userAgent: true, ipAddress: true, success: true, - createdAt: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: AuditLogSelect; + FindFirstArgs & { + select: AuditLogAuthSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.auditLog.findFirst(findFirstArgs).execute(); + const result = await client.auditLogAuth.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -140,10 +140,11 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.auditLog + const result = await client.auditLogAuth .findOne({ id: answers.id as string, select: { + createdAt: true, id: true, event: true, actorId: true, @@ -151,7 +152,6 @@ async function handleGet(argv: Partial>, prompter: Inqui userAgent: true, ipAddress: true, success: true, - createdAt: true, }, }) .execute(); @@ -209,9 +209,12 @@ async function handleCreate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateAuditLogInput['auditLog']; + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAuditLogAuthInput['auditLogAuth']; const client = getClient(); - const result = await client.auditLog + const result = await client.auditLogAuth .create({ data: { event: cleanedData.event, @@ -222,6 +225,7 @@ async function handleCreate(argv: Partial>, prompter: In success: cleanedData.success, }, select: { + createdAt: true, id: true, event: true, actorId: true, @@ -229,7 +233,6 @@ async function handleCreate(argv: Partial>, prompter: In userAgent: true, ipAddress: true, success: true, - createdAt: true, }, }) .execute(); @@ -293,9 +296,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as AuditLogPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as AuditLogAuthPatch; const client = getClient(); - const result = await client.auditLog + const result = await client.auditLogAuth .update({ where: { id: answers.id as string, @@ -309,6 +312,7 @@ async function handleUpdate(argv: Partial>, prompter: In success: cleanedData.success, }, select: { + createdAt: true, id: true, event: true, actorId: true, @@ -316,7 +320,6 @@ async function handleUpdate(argv: Partial>, prompter: In userAgent: true, ipAddress: true, success: true, - createdAt: true, }, }) .execute(); @@ -341,7 +344,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.auditLog + const result = await client.auditLogAuth .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/public/cli/commands/billing-module.ts b/sdk/constructive-cli/src/public/cli/commands/billing-module.ts index 2d33a7c676..2a5359058d 100644 --- a/sdk/constructive-cli/src/public/cli/commands/billing-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/billing-module.ts @@ -28,6 +28,10 @@ const fieldSchema: FieldSchema = { ledgerTableName: 'string', balancesTableId: 'uuid', balancesTableName: 'string', + meterCreditsTableId: 'uuid', + meterCreditsTableName: 'string', + meterSourcesTableId: 'uuid', + meterSourcesTableName: 'string', recordUsageFunction: 'string', prefix: 'string', }; @@ -94,6 +98,10 @@ async function handleList(argv: Partial>, _prompter: Inq ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, + meterSourcesTableId: true, + meterSourcesTableName: true, recordUsageFunction: true, prefix: true, }; @@ -128,6 +136,10 @@ async function handleFindFirst(argv: Partial>, _prompter ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, + meterSourcesTableId: true, + meterSourcesTableName: true, recordUsageFunction: true, prefix: true, }; @@ -174,6 +186,10 @@ async function handleGet(argv: Partial>, prompter: Inqui ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, + meterSourcesTableId: true, + meterSourcesTableName: true, recordUsageFunction: true, prefix: true, }, @@ -267,6 +283,34 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'meterCreditsTableId', + message: 'meterCreditsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterCreditsTableName', + message: 'meterCreditsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterSourcesTableId', + message: 'meterSourcesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterSourcesTableName', + message: 'meterSourcesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordUsageFunction', @@ -302,6 +346,10 @@ async function handleCreate(argv: Partial>, prompter: In ledgerTableName: cleanedData.ledgerTableName, balancesTableId: cleanedData.balancesTableId, balancesTableName: cleanedData.balancesTableName, + meterCreditsTableId: cleanedData.meterCreditsTableId, + meterCreditsTableName: cleanedData.meterCreditsTableName, + meterSourcesTableId: cleanedData.meterSourcesTableId, + meterSourcesTableName: cleanedData.meterSourcesTableName, recordUsageFunction: cleanedData.recordUsageFunction, prefix: cleanedData.prefix, }, @@ -318,6 +366,10 @@ async function handleCreate(argv: Partial>, prompter: In ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, + meterSourcesTableId: true, + meterSourcesTableName: true, recordUsageFunction: true, prefix: true, }, @@ -417,6 +469,34 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'meterCreditsTableId', + message: 'meterCreditsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterCreditsTableName', + message: 'meterCreditsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterSourcesTableId', + message: 'meterSourcesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'meterSourcesTableName', + message: 'meterSourcesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'recordUsageFunction', @@ -452,6 +532,10 @@ async function handleUpdate(argv: Partial>, prompter: In ledgerTableName: cleanedData.ledgerTableName, balancesTableId: cleanedData.balancesTableId, balancesTableName: cleanedData.balancesTableName, + meterCreditsTableId: cleanedData.meterCreditsTableId, + meterCreditsTableName: cleanedData.meterCreditsTableName, + meterSourcesTableId: cleanedData.meterSourcesTableId, + meterSourcesTableName: cleanedData.meterSourcesTableName, recordUsageFunction: cleanedData.recordUsageFunction, prefix: cleanedData.prefix, }, @@ -468,6 +552,10 @@ async function handleUpdate(argv: Partial>, prompter: In ledgerTableName: true, balancesTableId: true, balancesTableName: true, + meterCreditsTableId: true, + meterCreditsTableName: true, + meterSourcesTableId: true, + meterSourcesTableName: true, recordUsageFunction: true, prefix: true, }, diff --git a/sdk/constructive-cli/src/public/cli/commands/commit.ts b/sdk/constructive-cli/src/public/cli/commands/commit.ts index 02b4952ada..79870a7c41 100644 --- a/sdk/constructive-cli/src/public/cli/commands/commit.ts +++ b/sdk/constructive-cli/src/public/cli/commands/commit.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', message: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', parentIds: 'uuid', authorId: 'uuid', @@ -79,7 +79,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -108,7 +108,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -149,7 +149,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -180,8 +180,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -233,7 +233,7 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { message: cleanedData.message, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, parentIds: cleanedData.parentIds, authorId: cleanedData.authorId, @@ -244,7 +244,7 @@ async function handleCreate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, @@ -281,8 +281,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -337,7 +337,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { message: cleanedData.message, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, parentIds: cleanedData.parentIds, authorId: cleanedData.authorId, @@ -348,7 +348,7 @@ async function handleUpdate(argv: Partial>, prompter: In select: { id: true, message: true, - databaseId: true, + scopeId: true, storeId: true, parentIds: true, authorId: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/compute-log-module.ts b/sdk/constructive-cli/src/public/cli/commands/compute-log-module.ts new file mode 100644 index 0000000000..f2b5518a28 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/compute-log-module.ts @@ -0,0 +1,537 @@ +/** + * CLI commands for ComputeLogModule + * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateComputeLogModuleInput, + ComputeLogModulePatch, + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + computeLogTableId: 'uuid', + computeLogTableName: 'string', + usageDailyTableId: 'uuid', + usageDailyTableName: 'string', + interval: 'string', + retention: 'string', + premake: 'int', + scope: 'string', + actorFkTableId: 'uuid', + entityFkTableId: 'uuid', + prefix: 'string', +}; +const usage = + '\ncompute-log-module \n\nCommands:\n list List computeLogModule records\n find-first Find first matching computeLogModule record\n get Get a computeLogModule by ID\n create Create a new computeLogModule\n update Update an existing computeLogModule\n delete Delete a computeLogModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': + return handleFindFirst(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 defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + computeLogTableId: true, + computeLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: ComputeLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.computeLogModule.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + computeLogTableId: true, + computeLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: ComputeLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.computeLogModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + 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.computeLogModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + computeLogTableId: true, + computeLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'computeLogTableId', + message: 'computeLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'computeLogTableName', + message: 'computeLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorFkTableId', + message: 'actorFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityFkTableId', + message: 'entityFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateComputeLogModuleInput['computeLogModule']; + const client = getClient(); + const result = await client.computeLogModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + computeLogTableId: cleanedData.computeLogTableId, + computeLogTableName: cleanedData.computeLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + actorFkTableId: cleanedData.actorFkTableId, + entityFkTableId: cleanedData.entityFkTableId, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + computeLogTableId: true, + computeLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'computeLogTableId', + message: 'computeLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'computeLogTableName', + message: 'computeLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorFkTableId', + message: 'actorFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityFkTableId', + message: 'entityFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as ComputeLogModulePatch; + const client = getClient(); + const result = await client.computeLogModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + computeLogTableId: cleanedData.computeLogTableId, + computeLogTableName: cleanedData.computeLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + actorFkTableId: cleanedData.actorFkTableId, + entityFkTableId: cleanedData.entityFkTableId, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + computeLogTableId: true, + computeLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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.computeLogModule + .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/config-secrets-org-module.ts similarity index 76% rename from sdk/constructive-cli/src/public/cli/commands/encrypted-secrets-module.ts rename to sdk/constructive-cli/src/public/cli/commands/config-secrets-org-module.ts index 653e90cd5c..eb43db4d25 100644 --- a/sdk/constructive-cli/src/public/cli/commands/encrypted-secrets-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/config-secrets-org-module.ts @@ -1,5 +1,5 @@ /** - * CLI commands for EncryptedSecretsModule + * CLI commands for ConfigSecretsOrgModule * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,11 +8,11 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateEncryptedSecretsModuleInput, - EncryptedSecretsModulePatch, - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, + CreateConfigSecretsOrgModuleInput, + ConfigSecretsOrgModulePatch, + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { @@ -23,7 +23,7 @@ const fieldSchema: FieldSchema = { tableName: 'string', }; const usage = - '\nencrypted-secrets-module \n\nCommands:\n list List encryptedSecretsModule records\n find-first Find first matching encryptedSecretsModule record\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\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nconfig-secrets-org-module \n\nCommands:\n list List configSecretsOrgModule records\n find-first Find first matching configSecretsOrgModule record\n get Get a configSecretsOrgModule by ID\n create Create a new configSecretsOrgModule\n update Update an existing configSecretsOrgModule\n delete Delete a configSecretsOrgModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -81,15 +81,15 @@ async function handleList(argv: Partial>, _prompter: Inq }; const findManyArgs = parseFindManyArgs< FindManyArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy > & { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsOrgModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.encryptedSecretsModule.findMany(findManyArgs).execute(); + const result = await client.configSecretsOrgModule.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -110,15 +110,15 @@ async function handleFindFirst(argv: Partial>, _prompter }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy > & { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsOrgModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.encryptedSecretsModule.findFirst(findFirstArgs).execute(); + const result = await client.configSecretsOrgModule.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -139,7 +139,7 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.encryptedSecretsModule + const result = await client.configSecretsOrgModule .findOne({ id: answers.id as string, select: { @@ -195,9 +195,9 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateEncryptedSecretsModuleInput['encryptedSecretsModule']; + ) as CreateConfigSecretsOrgModuleInput['configSecretsOrgModule']; const client = getClient(); - const result = await client.encryptedSecretsModule + const result = await client.configSecretsOrgModule .create({ data: { databaseId: cleanedData.databaseId, @@ -261,9 +261,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as EncryptedSecretsModulePatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ConfigSecretsOrgModulePatch; const client = getClient(); - const result = await client.encryptedSecretsModule + const result = await client.configSecretsOrgModule .update({ where: { id: answers.id as string, @@ -304,7 +304,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.encryptedSecretsModule + const result = await client.configSecretsOrgModule .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/admin/cli/commands/usage-snapshot.ts b/sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts similarity index 63% rename from sdk/constructive-cli/src/admin/cli/commands/usage-snapshot.ts rename to sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts index 572da4bfb9..8734c109ee 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/usage-snapshot.ts +++ b/sdk/constructive-cli/src/public/cli/commands/config-secrets-user-module.ts @@ -1,5 +1,5 @@ /** - * CLI commands for UsageSnapshot + * CLI commands for ConfigSecretsUserModule * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -8,23 +8,22 @@ import { getClient } from '../executor'; import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; import type { - CreateUsageSnapshotInput, - UsageSnapshotPatch, - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy, + CreateConfigSecretsUserModuleInput, + ConfigSecretsUserModulePatch, + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { - databaseId: 'uuid', - metricName: 'string', - metricValue: 'int', - dimensions: 'json', - capturedAt: 'string', id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + tableId: 'uuid', + tableName: 'string', }; const usage = - '\nusage-snapshot \n\nCommands:\n list List usageSnapshot records\n find-first Find first matching usageSnapshot record\n get Get a usageSnapshot by ID\n create Create a new usageSnapshot\n update Update an existing usageSnapshot\n delete Delete a usageSnapshot\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\nconfig-secrets-user-module \n\nCommands:\n list List configSecretsUserModule records\n find-first Find first matching configSecretsUserModule record\n get Get a configSecretsUserModule by ID\n create Create a new configSecretsUserModule\n update Update an existing configSecretsUserModule\n delete Delete a configSecretsUserModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -74,20 +73,23 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, }; const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: UsageSnapshotSelect; + FindManyArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + > & { + select: ConfigSecretsUserModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.usageSnapshot.findMany(findManyArgs).execute(); + const result = await client.configSecretsUserModule.findMany(findManyArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to list records.'); @@ -100,20 +102,23 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, }; const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: UsageSnapshotSelect; + FindFirstArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + > & { + select: ConfigSecretsUserModuleSelect; } >(argv, defaultSelect); const client = getClient(); - const result = await client.usageSnapshot.findFirst(findFirstArgs).execute(); + const result = await client.configSecretsUserModule.findFirst(findFirstArgs).execute(); console.log(JSON.stringify(result, null, 2)); } catch (error) { console.error('Failed to find record.'); @@ -134,16 +139,15 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.usageSnapshot + const result = await client.configSecretsUserModule .findOne({ id: answers.id as string, select: { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, }, }) .execute(); @@ -167,28 +171,22 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'metricName', - message: 'metricName', - required: true, - }, - { - type: 'text', - name: 'metricValue', - message: 'metricValue', + name: 'schemaId', + message: 'schemaId', required: false, skipPrompt: true, }, { - type: 'json', - name: 'dimensions', - message: 'dimensions', + type: 'text', + name: 'tableId', + message: 'tableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'capturedAt', - message: 'capturedAt', + name: 'tableName', + message: 'tableName', required: false, skipPrompt: true, }, @@ -197,24 +195,22 @@ async function handleCreate(argv: Partial>, prompter: In const cleanedData = stripUndefined( answers, fieldSchema - ) as CreateUsageSnapshotInput['usageSnapshot']; + ) as CreateConfigSecretsUserModuleInput['configSecretsUserModule']; const client = getClient(); - const result = await client.usageSnapshot + const result = await client.configSecretsUserModule .create({ data: { databaseId: cleanedData.databaseId, - metricName: cleanedData.metricName, - metricValue: cleanedData.metricValue, - dimensions: cleanedData.dimensions, - capturedAt: cleanedData.capturedAt, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, }, select: { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, }, }) .execute(); @@ -244,54 +240,46 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'metricName', - message: 'metricName', - required: false, - }, - { - type: 'text', - name: 'metricValue', - message: 'metricValue', + name: 'schemaId', + message: 'schemaId', required: false, skipPrompt: true, }, { - type: 'json', - name: 'dimensions', - message: 'dimensions', + type: 'text', + name: 'tableId', + message: 'tableId', required: false, skipPrompt: true, }, { type: 'text', - name: 'capturedAt', - message: 'capturedAt', + name: 'tableName', + message: 'tableName', required: false, skipPrompt: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as UsageSnapshotPatch; + const cleanedData = stripUndefined(answers, fieldSchema) as ConfigSecretsUserModulePatch; const client = getClient(); - const result = await client.usageSnapshot + const result = await client.configSecretsUserModule .update({ where: { id: answers.id as string, }, data: { databaseId: cleanedData.databaseId, - metricName: cleanedData.metricName, - metricValue: cleanedData.metricValue, - dimensions: cleanedData.dimensions, - capturedAt: cleanedData.capturedAt, + schemaId: cleanedData.schemaId, + tableId: cleanedData.tableId, + tableName: cleanedData.tableName, }, select: { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, id: true, + databaseId: true, + schemaId: true, + tableId: true, + tableName: true, }, }) .execute(); @@ -316,7 +304,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.usageSnapshot + const result = await client.configSecretsUserModule .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/public/cli/commands/construct-blueprint.ts b/sdk/constructive-cli/src/public/cli/commands/construct-blueprint.ts index e014a39983..0ea802930d 100644 --- a/sdk/constructive-cli/src/public/cli/commands/construct-blueprint.ts +++ b/sdk/constructive-cli/src/public/cli/commands/construct-blueprint.ts @@ -16,7 +16,7 @@ export default async ( try { if (argv.help || argv.h) { console.log( - 'construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n\nUsage: construct-blueprint [OPTIONS]\n' + "construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n\nUsage: construct-blueprint [OPTIONS]\n" ); process.exit(0); } diff --git a/sdk/constructive-cli/src/public/cli/commands/db-usage-module.ts b/sdk/constructive-cli/src/public/cli/commands/db-usage-module.ts new file mode 100644 index 0000000000..826a1e92d3 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/db-usage-module.ts @@ -0,0 +1,581 @@ +/** + * CLI commands for DbUsageModule + * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateDbUsageModuleInput, + DbUsageModulePatch, + DbUsageModuleSelect, + DbUsageModuleFilter, + DbUsageModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + tableStatsLogTableId: 'uuid', + tableStatsLogTableName: 'string', + tableStatsDailyTableId: 'uuid', + tableStatsDailyTableName: 'string', + queryStatsLogTableId: 'uuid', + queryStatsLogTableName: 'string', + queryStatsDailyTableId: 'uuid', + queryStatsDailyTableName: 'string', + interval: 'string', + retention: 'string', + premake: 'int', + scope: 'string', + prefix: 'string', +}; +const usage = + '\ndb-usage-module \n\nCommands:\n list List dbUsageModule records\n find-first Find first matching dbUsageModule record\n get Get a dbUsageModule by ID\n create Create a new dbUsageModule\n update Update an existing dbUsageModule\n delete Delete a dbUsageModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': + return handleFindFirst(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 defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + tableStatsLogTableId: true, + tableStatsLogTableName: true, + tableStatsDailyTableId: true, + tableStatsDailyTableName: true, + queryStatsLogTableId: true, + queryStatsLogTableName: true, + queryStatsDailyTableId: true, + queryStatsDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + prefix: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: DbUsageModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbUsageModule.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + tableStatsLogTableId: true, + tableStatsLogTableName: true, + tableStatsDailyTableId: true, + tableStatsDailyTableName: true, + queryStatsLogTableId: true, + queryStatsLogTableName: true, + queryStatsDailyTableId: true, + queryStatsDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + prefix: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: DbUsageModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.dbUsageModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + 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.dbUsageModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + tableStatsLogTableId: true, + tableStatsLogTableName: true, + tableStatsDailyTableId: true, + tableStatsDailyTableName: true, + queryStatsLogTableId: true, + queryStatsLogTableName: true, + queryStatsDailyTableId: true, + queryStatsDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableStatsLogTableId', + message: 'tableStatsLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableStatsLogTableName', + message: 'tableStatsLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableStatsDailyTableId', + message: 'tableStatsDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableStatsDailyTableName', + message: 'tableStatsDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queryStatsLogTableId', + message: 'queryStatsLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queryStatsLogTableName', + message: 'queryStatsLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queryStatsDailyTableId', + message: 'queryStatsDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queryStatsDailyTableName', + message: 'queryStatsDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDbUsageModuleInput['dbUsageModule']; + const client = getClient(); + const result = await client.dbUsageModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + tableStatsLogTableId: cleanedData.tableStatsLogTableId, + tableStatsLogTableName: cleanedData.tableStatsLogTableName, + tableStatsDailyTableId: cleanedData.tableStatsDailyTableId, + tableStatsDailyTableName: cleanedData.tableStatsDailyTableName, + queryStatsLogTableId: cleanedData.queryStatsLogTableId, + queryStatsLogTableName: cleanedData.queryStatsLogTableName, + queryStatsDailyTableId: cleanedData.queryStatsDailyTableId, + queryStatsDailyTableName: cleanedData.queryStatsDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + tableStatsLogTableId: true, + tableStatsLogTableName: true, + tableStatsDailyTableId: true, + tableStatsDailyTableName: true, + queryStatsLogTableId: true, + queryStatsLogTableName: true, + queryStatsDailyTableId: true, + queryStatsDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableStatsLogTableId', + message: 'tableStatsLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableStatsLogTableName', + message: 'tableStatsLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableStatsDailyTableId', + message: 'tableStatsDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableStatsDailyTableName', + message: 'tableStatsDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queryStatsLogTableId', + message: 'queryStatsLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queryStatsLogTableName', + message: 'queryStatsLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queryStatsDailyTableId', + message: 'queryStatsDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'queryStatsDailyTableName', + message: 'queryStatsDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DbUsageModulePatch; + const client = getClient(); + const result = await client.dbUsageModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + tableStatsLogTableId: cleanedData.tableStatsLogTableId, + tableStatsLogTableName: cleanedData.tableStatsLogTableName, + tableStatsDailyTableId: cleanedData.tableStatsDailyTableId, + tableStatsDailyTableName: cleanedData.tableStatsDailyTableName, + queryStatsLogTableId: cleanedData.queryStatsLogTableId, + queryStatsLogTableName: cleanedData.queryStatsLogTableName, + queryStatsDailyTableId: cleanedData.queryStatsDailyTableId, + queryStatsDailyTableName: cleanedData.queryStatsDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + tableStatsLogTableId: true, + tableStatsLogTableName: true, + tableStatsDailyTableId: true, + tableStatsDailyTableName: true, + queryStatsLogTableId: true, + queryStatsLogTableName: true, + queryStatsDailyTableId: true, + queryStatsDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + prefix: 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.dbUsageModule + .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/get-all-objects-from-root.ts b/sdk/constructive-cli/src/public/cli/commands/get-all-objects-from-root.ts index 6c2bef23be..da024e0fbe 100644 --- a/sdk/constructive-cli/src/public/cli/commands/get-all-objects-from-root.ts +++ b/sdk/constructive-cli/src/public/cli/commands/get-all-objects-from-root.ts @@ -23,8 +23,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/public/cli/commands/get-object-at-path.ts b/sdk/constructive-cli/src/public/cli/commands/get-object-at-path.ts index 336a7e8d57..34e7a2396c 100644 --- a/sdk/constructive-cli/src/public/cli/commands/get-object-at-path.ts +++ b/sdk/constructive-cli/src/public/cli/commands/get-object-at-path.ts @@ -21,8 +21,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'dbId', - message: 'dbId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/public/cli/commands/get-path-objects-from-root.ts b/sdk/constructive-cli/src/public/cli/commands/get-path-objects-from-root.ts index 3985235808..9961e452b2 100644 --- a/sdk/constructive-cli/src/public/cli/commands/get-path-objects-from-root.ts +++ b/sdk/constructive-cli/src/public/cli/commands/get-path-objects-from-root.ts @@ -23,8 +23,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts b/sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts new file mode 100644 index 0000000000..6180988f65 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/inference-log-module.ts @@ -0,0 +1,545 @@ +/** + * CLI commands for InferenceLogModule + * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateInferenceLogModuleInput, + InferenceLogModulePatch, + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + inferenceLogTableId: 'uuid', + inferenceLogTableName: 'string', + usageDailyTableId: 'uuid', + usageDailyTableName: 'string', + interval: 'string', + retention: 'string', + premake: 'int', + scope: 'string', + actorFkTableId: 'uuid', + entityFkTableId: 'uuid', + prefix: 'string', +}; +const usage = + '\ninference-log-module \n\nCommands:\n list List inferenceLogModule records\n find-first Find first matching inferenceLogModule record\n get Get a inferenceLogModule by ID\n create Create a new inferenceLogModule\n update Update an existing inferenceLogModule\n delete Delete a inferenceLogModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': + return handleFindFirst(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 defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + > & { + select: InferenceLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.inferenceLogModule.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + > & { + select: InferenceLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.inferenceLogModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + 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.inferenceLogModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'inferenceLogTableId', + message: 'inferenceLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'inferenceLogTableName', + message: 'inferenceLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorFkTableId', + message: 'actorFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityFkTableId', + message: 'entityFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateInferenceLogModuleInput['inferenceLogModule']; + const client = getClient(); + const result = await client.inferenceLogModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + inferenceLogTableId: cleanedData.inferenceLogTableId, + inferenceLogTableName: cleanedData.inferenceLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + actorFkTableId: cleanedData.actorFkTableId, + entityFkTableId: cleanedData.entityFkTableId, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'inferenceLogTableId', + message: 'inferenceLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'inferenceLogTableName', + message: 'inferenceLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorFkTableId', + message: 'actorFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityFkTableId', + message: 'entityFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as InferenceLogModulePatch; + const client = getClient(); + const result = await client.inferenceLogModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + inferenceLogTableId: cleanedData.inferenceLogTableId, + inferenceLogTableName: cleanedData.inferenceLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + actorFkTableId: cleanedData.actorFkTableId, + entityFkTableId: cleanedData.entityFkTableId, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + inferenceLogTableId: true, + inferenceLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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.inferenceLogModule + .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/object.ts b/sdk/constructive-cli/src/public/cli/commands/object.ts index d99526a4ed..c49a3216a7 100644 --- a/sdk/constructive-cli/src/public/cli/commands/object.ts +++ b/sdk/constructive-cli/src/public/cli/commands/object.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { hashUuid: 'uuid', id: 'uuid', - databaseId: 'uuid', + scopeId: 'uuid', kids: 'uuid', ktree: 'string', data: 'json', @@ -77,7 +77,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -104,7 +104,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -143,7 +143,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -166,8 +166,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -205,7 +205,7 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.object .create({ data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, @@ -213,7 +213,7 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, @@ -242,8 +242,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -284,7 +284,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, kids: cleanedData.kids, ktree: cleanedData.ktree, data: cleanedData.data, @@ -292,7 +292,7 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { id: true, - databaseId: true, + scopeId: true, kids: true, ktree: true, data: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts index c8ef656d6e..20f8250015 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts @@ -16,6 +16,8 @@ import type { } from '../../orm/input-types'; import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { + createdAt: 'string', + id: 'uuid', name: 'string', actorId: 'uuid', entityId: 'uuid', @@ -27,7 +29,7 @@ const fieldSchema: FieldSchema = { reason: 'string', }; const usage = - '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n create Create a new orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; + '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n get Get a orgLimitEvent by ID\n create Create a new orgLimitEvent\n update Update an existing orgLimitEvent\n delete Delete a orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -44,7 +46,7 @@ export default async ( type: 'autocomplete', name: 'subcommand', message: 'What do you want to do?', - options: ['list', 'find-first', 'create'], + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], }, ]); return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); @@ -61,8 +63,14 @@ async function handleTableSubcommand( return handleList(argv, prompter); case 'find-first': return handleFindFirst(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); @@ -71,6 +79,8 @@ async function handleTableSubcommand( async function handleList(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -100,6 +110,8 @@ async function handleList(argv: Partial>, _prompter: Inq async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { try { const defaultSelect = { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -126,6 +138,44 @@ async function handleFindFirst(argv: Partial>, _prompter 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.orgLimitEvent + .findOne({ + id: answers.id as string, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: 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, [ @@ -213,6 +263,8 @@ async function handleCreate(argv: Partial>, prompter: In reason: cleanedData.reason, }, select: { + createdAt: true, + id: true, name: true, actorId: true, entityId: true, @@ -234,3 +286,150 @@ async function handleCreate(argv: Partial>, prompter: In 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, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitEventPatch; + const client = getClient(); + const result = await client.orgLimitEvent + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + createdAt: true, + id: true, + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: 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.orgLimitEvent + .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/partition.ts b/sdk/constructive-cli/src/public/cli/commands/partition.ts index 56ff67198b..fbf8842273 100644 --- a/sdk/constructive-cli/src/public/cli/commands/partition.ts +++ b/sdk/constructive-cli/src/public/cli/commands/partition.ts @@ -23,6 +23,7 @@ const fieldSchema: FieldSchema = { partitionKeyId: 'uuid', interval: 'string', retention: 'string', + retentionKeepTable: 'boolean', premake: 'int', namingPattern: 'string', createdAt: 'string', @@ -86,6 +87,7 @@ async function handleList(argv: Partial>, _prompter: Inq partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, @@ -117,6 +119,7 @@ async function handleFindFirst(argv: Partial>, _prompter partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, @@ -160,6 +163,7 @@ async function handleGet(argv: Partial>, prompter: Inqui partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, @@ -217,6 +221,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'retentionKeepTable', + message: 'retentionKeepTable', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'premake', @@ -244,6 +255,7 @@ async function handleCreate(argv: Partial>, prompter: In partitionKeyId: cleanedData.partitionKeyId, interval: cleanedData.interval, retention: cleanedData.retention, + retentionKeepTable: cleanedData.retentionKeepTable, premake: cleanedData.premake, namingPattern: cleanedData.namingPattern, }, @@ -255,6 +267,7 @@ async function handleCreate(argv: Partial>, prompter: In partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, @@ -318,6 +331,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'retentionKeepTable', + message: 'retentionKeepTable', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'premake', @@ -348,6 +368,7 @@ async function handleUpdate(argv: Partial>, prompter: In partitionKeyId: cleanedData.partitionKeyId, interval: cleanedData.interval, retention: cleanedData.retention, + retentionKeepTable: cleanedData.retentionKeepTable, premake: cleanedData.premake, namingPattern: cleanedData.namingPattern, }, @@ -359,6 +380,7 @@ async function handleUpdate(argv: Partial>, prompter: In partitionKeyId: true, interval: true, retention: true, + retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/ref.ts b/sdk/constructive-cli/src/public/cli/commands/ref.ts index cc4ef6922f..4ff8a3a6ff 100644 --- a/sdk/constructive-cli/src/public/cli/commands/ref.ts +++ b/sdk/constructive-cli/src/public/cli/commands/ref.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', storeId: 'uuid', commitId: 'uuid', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -100,7 +100,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }; @@ -137,7 +137,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -163,8 +163,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -188,14 +188,14 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, commitId: cleanedData.commitId, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, @@ -227,8 +227,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -255,14 +255,14 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, storeId: cleanedData.storeId, commitId: cleanedData.commitId, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, storeId: true, commitId: true, }, diff --git a/sdk/constructive-cli/src/public/cli/commands/rev-parse.ts b/sdk/constructive-cli/src/public/cli/commands/rev-parse.ts index 302b869622..32e9cfa49d 100644 --- a/sdk/constructive-cli/src/public/cli/commands/rev-parse.ts +++ b/sdk/constructive-cli/src/public/cli/commands/rev-parse.ts @@ -19,8 +19,8 @@ export default async ( const answers = await prompter.prompt(argv, [ { type: 'text', - name: 'dbId', - message: 'dbId', + name: 'sId', + message: 'sId', }, { type: 'text', diff --git a/sdk/constructive-cli/src/public/cli/commands/storage-log-module.ts b/sdk/constructive-cli/src/public/cli/commands/storage-log-module.ts new file mode 100644 index 0000000000..59efe8934d --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/storage-log-module.ts @@ -0,0 +1,537 @@ +/** + * CLI commands for StorageLogModule + * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateStorageLogModuleInput, + StorageLogModulePatch, + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + storageLogTableId: 'uuid', + storageLogTableName: 'string', + usageDailyTableId: 'uuid', + usageDailyTableName: 'string', + interval: 'string', + retention: 'string', + premake: 'int', + scope: 'string', + actorFkTableId: 'uuid', + entityFkTableId: 'uuid', + prefix: 'string', +}; +const usage = + '\nstorage-log-module \n\nCommands:\n list List storageLogModule records\n find-first Find first matching storageLogModule record\n get Get a storageLogModule by ID\n create Create a new storageLogModule\n update Update an existing storageLogModule\n delete Delete a storageLogModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': + return handleFindFirst(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 defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + storageLogTableId: true, + storageLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: StorageLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.storageLogModule.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + storageLogTableId: true, + storageLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: StorageLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.storageLogModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + 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.storageLogModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + storageLogTableId: true, + storageLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageLogTableId', + message: 'storageLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageLogTableName', + message: 'storageLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorFkTableId', + message: 'actorFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityFkTableId', + message: 'entityFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateStorageLogModuleInput['storageLogModule']; + const client = getClient(); + const result = await client.storageLogModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + storageLogTableId: cleanedData.storageLogTableId, + storageLogTableName: cleanedData.storageLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + actorFkTableId: cleanedData.actorFkTableId, + entityFkTableId: cleanedData.entityFkTableId, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + storageLogTableId: true, + storageLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageLogTableId', + message: 'storageLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'storageLogTableName', + message: 'storageLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorFkTableId', + message: 'actorFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityFkTableId', + message: 'entityFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as StorageLogModulePatch; + const client = getClient(); + const result = await client.storageLogModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + storageLogTableId: cleanedData.storageLogTableId, + storageLogTableName: cleanedData.storageLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + actorFkTableId: cleanedData.actorFkTableId, + entityFkTableId: cleanedData.entityFkTableId, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + storageLogTableId: true, + storageLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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.storageLogModule + .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/storage-module.ts b/sdk/constructive-cli/src/public/cli/commands/storage-module.ts index 8ecc2453f6..d2a8b1b839 100644 --- a/sdk/constructive-cli/src/public/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/storage-module.ts @@ -25,6 +25,7 @@ const fieldSchema: FieldSchema = { bucketsTableName: 'string', filesTableName: 'string', membershipType: 'int', + storageKey: 'string', policies: 'json', skipDefaultPolicyTables: 'string', entityTableId: 'uuid', @@ -110,6 +111,7 @@ async function handleList(argv: Partial>, _prompter: Inq bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, @@ -163,6 +165,7 @@ async function handleFindFirst(argv: Partial>, _prompter bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, @@ -228,6 +231,7 @@ async function handleGet(argv: Partial>, prompter: Inqui bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, @@ -322,6 +326,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'policies', @@ -508,6 +519,7 @@ async function handleCreate(argv: Partial>, prompter: In bucketsTableName: cleanedData.bucketsTableName, filesTableName: cleanedData.filesTableName, membershipType: cleanedData.membershipType, + storageKey: cleanedData.storageKey, policies: cleanedData.policies, skipDefaultPolicyTables: cleanedData.skipDefaultPolicyTables, entityTableId: cleanedData.entityTableId, @@ -543,6 +555,7 @@ async function handleCreate(argv: Partial>, prompter: In bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, @@ -643,6 +656,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'storageKey', + message: 'storageKey', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'policies', @@ -829,6 +849,7 @@ async function handleUpdate(argv: Partial>, prompter: In bucketsTableName: cleanedData.bucketsTableName, filesTableName: cleanedData.filesTableName, membershipType: cleanedData.membershipType, + storageKey: cleanedData.storageKey, policies: cleanedData.policies, skipDefaultPolicyTables: cleanedData.skipDefaultPolicyTables, entityTableId: cleanedData.entityTableId, @@ -864,6 +885,7 @@ async function handleUpdate(argv: Partial>, prompter: In bucketsTableName: true, filesTableName: true, membershipType: true, + storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/store.ts b/sdk/constructive-cli/src/public/cli/commands/store.ts index eba292c2fc..04f04ed6cc 100644 --- a/sdk/constructive-cli/src/public/cli/commands/store.ts +++ b/sdk/constructive-cli/src/public/cli/commands/store.ts @@ -18,7 +18,7 @@ import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', - databaseId: 'uuid', + scopeId: 'uuid', hash: 'uuid', createdAt: 'string', }; @@ -75,7 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -100,7 +100,7 @@ async function handleFindFirst(argv: Partial>, _prompter const defaultSelect = { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }; @@ -137,7 +137,7 @@ async function handleGet(argv: Partial>, prompter: Inqui select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -163,8 +163,8 @@ async function handleCreate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: true, }, { @@ -182,13 +182,13 @@ async function handleCreate(argv: Partial>, prompter: In .create({ data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, @@ -220,8 +220,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'databaseId', - message: 'databaseId', + name: 'scopeId', + message: 'scopeId', required: false, }, { @@ -242,13 +242,13 @@ async function handleUpdate(argv: Partial>, prompter: In }, data: { name: cleanedData.name, - databaseId: cleanedData.databaseId, + scopeId: cleanedData.scopeId, hash: cleanedData.hash, }, select: { id: true, name: true, - databaseId: true, + scopeId: true, hash: true, createdAt: true, }, diff --git a/sdk/constructive-cli/src/public/cli/commands/transfer-log-module.ts b/sdk/constructive-cli/src/public/cli/commands/transfer-log-module.ts new file mode 100644 index 0000000000..bf8c4b1e5d --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/transfer-log-module.ts @@ -0,0 +1,537 @@ +/** + * CLI commands for TransferLogModule + * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateTransferLogModuleInput, + TransferLogModulePatch, + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + transferLogTableId: 'uuid', + transferLogTableName: 'string', + usageDailyTableId: 'uuid', + usageDailyTableName: 'string', + interval: 'string', + retention: 'string', + premake: 'int', + scope: 'string', + actorFkTableId: 'uuid', + entityFkTableId: 'uuid', + prefix: 'string', +}; +const usage = + '\ntransfer-log-module \n\nCommands:\n list List transferLogModule records\n find-first Find first matching transferLogModule record\n get Get a transferLogModule by ID\n create Create a new transferLogModule\n update Update an existing transferLogModule\n delete Delete a transferLogModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': + return handleFindFirst(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 defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + transferLogTableId: true, + transferLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: TransferLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.transferLogModule.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + transferLogTableId: true, + transferLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: TransferLogModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.transferLogModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + 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.transferLogModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + transferLogTableId: true, + transferLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transferLogTableId', + message: 'transferLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transferLogTableName', + message: 'transferLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorFkTableId', + message: 'actorFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityFkTableId', + message: 'entityFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateTransferLogModuleInput['transferLogModule']; + const client = getClient(); + const result = await client.transferLogModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + transferLogTableId: cleanedData.transferLogTableId, + transferLogTableName: cleanedData.transferLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + actorFkTableId: cleanedData.actorFkTableId, + entityFkTableId: cleanedData.entityFkTableId, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + transferLogTableId: true, + transferLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transferLogTableId', + message: 'transferLogTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'transferLogTableName', + message: 'transferLogTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableId', + message: 'usageDailyTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'usageDailyTableName', + message: 'usageDailyTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'interval', + message: 'interval', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'retention', + message: 'retention', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'premake', + message: 'premake', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorFkTableId', + message: 'actorFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityFkTableId', + message: 'entityFkTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as TransferLogModulePatch; + const client = getClient(); + const result = await client.transferLogModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + transferLogTableId: cleanedData.transferLogTableId, + transferLogTableName: cleanedData.transferLogTableName, + usageDailyTableId: cleanedData.usageDailyTableId, + usageDailyTableName: cleanedData.usageDailyTableName, + interval: cleanedData.interval, + retention: cleanedData.retention, + premake: cleanedData.premake, + scope: cleanedData.scope, + actorFkTableId: cleanedData.actorFkTableId, + entityFkTableId: cleanedData.entityFkTableId, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + transferLogTableId: true, + transferLogTableName: true, + usageDailyTableId: true, + usageDailyTableName: true, + interval: true, + retention: true, + premake: true, + scope: true, + actorFkTableId: true, + entityFkTableId: true, + prefix: 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.transferLogModule + .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/usage-snapshot.ts b/sdk/constructive-cli/src/public/cli/commands/usage-snapshot.ts deleted file mode 100644 index 572da4bfb9..0000000000 --- a/sdk/constructive-cli/src/public/cli/commands/usage-snapshot.ts +++ /dev/null @@ -1,337 +0,0 @@ -/** - * CLI commands for UsageSnapshot - * @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, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; -import type { FieldSchema } from '../utils'; -import type { - CreateUsageSnapshotInput, - UsageSnapshotPatch, - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy, -} from '../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; -const fieldSchema: FieldSchema = { - databaseId: 'uuid', - metricName: 'string', - metricValue: 'int', - dimensions: 'json', - capturedAt: 'string', - id: 'uuid', -}; -const usage = - '\nusage-snapshot \n\nCommands:\n list List usageSnapshot records\n find-first Find first matching usageSnapshot record\n get Get a usageSnapshot by ID\n create Create a new usageSnapshot\n update Update an existing usageSnapshot\n delete Delete a usageSnapshot\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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', 'find-first', '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 'find-first': - return handleFindFirst(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 defaultSelect = { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, - id: true, - }; - const findManyArgs = parseFindManyArgs< - FindManyArgs & { - select: UsageSnapshotSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.usageSnapshot.findMany(findManyArgs).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 handleFindFirst(argv: Partial>, _prompter: Inquirerer) { - try { - const defaultSelect = { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, - id: true, - }; - const findFirstArgs = parseFindFirstArgs< - FindFirstArgs & { - select: UsageSnapshotSelect; - } - >(argv, defaultSelect); - const client = getClient(); - const result = await client.usageSnapshot.findFirst(findFirstArgs).execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed to find record.'); - 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.usageSnapshot - .findOne({ - id: answers.id as string, - select: { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, - id: 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: 'metricName', - message: 'metricName', - required: true, - }, - { - type: 'text', - name: 'metricValue', - message: 'metricValue', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'dimensions', - message: 'dimensions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'capturedAt', - message: 'capturedAt', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined( - answers, - fieldSchema - ) as CreateUsageSnapshotInput['usageSnapshot']; - const client = getClient(); - const result = await client.usageSnapshot - .create({ - data: { - databaseId: cleanedData.databaseId, - metricName: cleanedData.metricName, - metricValue: cleanedData.metricValue, - dimensions: cleanedData.dimensions, - capturedAt: cleanedData.capturedAt, - }, - select: { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, - id: 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: 'metricName', - message: 'metricName', - required: false, - }, - { - type: 'text', - name: 'metricValue', - message: 'metricValue', - required: false, - skipPrompt: true, - }, - { - type: 'json', - name: 'dimensions', - message: 'dimensions', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'capturedAt', - message: 'capturedAt', - required: false, - skipPrompt: true, - }, - ]); - const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as UsageSnapshotPatch; - const client = getClient(); - const result = await client.usageSnapshot - .update({ - where: { - id: answers.id as string, - }, - data: { - databaseId: cleanedData.databaseId, - metricName: cleanedData.metricName, - metricValue: cleanedData.metricValue, - dimensions: cleanedData.dimensions, - capturedAt: cleanedData.capturedAt, - }, - select: { - databaseId: true, - metricName: true, - metricValue: true, - dimensions: true, - capturedAt: true, - id: 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.usageSnapshot - .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/orm/README.md b/sdk/constructive-cli/src/public/orm/README.md index 4dc7b74e2e..87e42308cf 100644 --- a/sdk/constructive-cli/src/public/orm/README.md +++ b/sdk/constructive-cli/src/public/orm/README.md @@ -24,9 +24,9 @@ const db = createClient({ | `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 | -| `object` | findMany, findOne, create, update, delete | | `database` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | @@ -51,6 +51,7 @@ const db = createClient({ | `sessionSecretsModule` | findMany, findOne, create, update, delete | | `identityProvidersModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | +| `configSecretsOrgModule` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | @@ -75,7 +76,7 @@ const db = createClient({ | `defaultIdsModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | -| `encryptedSecretsModule` | findMany, findOne, create, update, delete | +| `configSecretsUserModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | @@ -96,6 +97,11 @@ const db = createClient({ | `webauthnCredentialsModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | | `notificationsModule` | findMany, findOne, create, update, delete | +| `inferenceLogModule` | findMany, findOne, create, update, delete | +| `computeLogModule` | findMany, findOne, create, update, delete | +| `transferLogModule` | findMany, findOne, create, update, delete | +| `storageLogModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | @@ -125,48 +131,45 @@ const db = createClient({ | `appClaimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `auditLog` | findMany, findOne, create, update, delete | -| `agentThread` | findMany, findOne, create, update, delete | -| `agentMessage` | findMany, findOne, create, update, delete | -| `agentTask` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | +| `auditLogAuth` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | +| `migrateFile` | findMany, findOne, create, update, delete | +| `devicesModule` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | -| `migrateFile` | findMany, findOne, create, update, delete | -| `devicesModule` | findMany, findOne, create, update, delete | -| `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `userConnectedAccount` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `pubkeySetting` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | -| `usageSnapshot` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | +| `agentChatModule` | findMany, findOne, create, update, delete | | `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `databaseSetting` | findMany, findOne, create, update, delete | -| `billingModule` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | -| `user` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `webauthnSetting` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | +| `user` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, create, update, delete | +| `webauthnSetting` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | @@ -262,42 +265,45 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.object` -CRUD operations for AppPermission records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` +### `db.appPermission` -CRUD operations for OrgPermission records. +CRUD operations for AppPermission records. **Fields:** @@ -312,56 +318,53 @@ CRUD operations for OrgPermission records. **Operations:** ```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all appPermission records +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.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: 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.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.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.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.orgPermission` -CRUD operations for Object records. +CRUD operations for OrgPermission records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | **Operations:** ```typescript -// List all 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(); +// List all orgPermission records +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.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.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.database` @@ -1359,6 +1362,39 @@ const updated = await db.realtimeModule.update({ where: { id: '' }, data: const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.configSecretsOrgModule` + +CRUD operations for ConfigSecretsOrgModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all configSecretsOrgModule records +const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1821,6 +1857,7 @@ CRUD operations for Partition records. | `partitionKeyId` | UUID | Yes | | `interval` | String | Yes | | `retention` | String | Yes | +| `retentionKeepTable` | Boolean | Yes | | `premake` | Int | Yes | | `namingPattern` | String | Yes | | `createdAt` | Datetime | No | @@ -1830,13 +1867,13 @@ CRUD operations for Partition records. ```typescript // List all partition records -const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); +const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); // Update const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2215,9 +2252,9 @@ const updated = await db.emailsModule.update({ where: { id: '' }, data: { const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.encryptedSecretsModule` +### `db.configSecretsUserModule` -CRUD operations for EncryptedSecretsModule records. +CRUD operations for ConfigSecretsUserModule records. **Fields:** @@ -2232,20 +2269,20 @@ CRUD operations for EncryptedSecretsModule records. **Operations:** ```typescript -// List all encryptedSecretsModule records -const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); +// List all configSecretsUserModule records +const items = await db.configSecretsUserModule.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 } }).execute(); +const item = await db.configSecretsUserModule.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: '' }, select: { id: true } }).execute(); +const created = await db.configSecretsUserModule.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.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); ``` ### `db.invitesModule` @@ -2945,6 +2982,7 @@ CRUD operations for StorageModule records. | `bucketsTableName` | String | Yes | | `filesTableName` | String | Yes | | `membershipType` | Int | Yes | +| `storageKey` | String | Yes | | `policies` | JSON | Yes | | `skipDefaultPolicyTables` | String | Yes | | `entityTableId` | UUID | Yes | @@ -2974,13 +3012,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -3167,219 +3205,436 @@ const updated = await db.notificationsModule.update({ where: { id: '' }, d const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.databaseProvisionModule` +### `db.inferenceLogModule` -CRUD operations for DatabaseProvisionModule records. +CRUD operations for InferenceLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseName` | String | Yes | -| `ownerId` | UUID | Yes | -| `subdomain` | String | Yes | -| `domain` | String | Yes | -| `modules` | String | Yes | -| `options` | JSON | Yes | -| `bootstrapUser` | Boolean | Yes | -| `status` | String | Yes | -| `errorMessage` | String | Yes | | `databaseId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | 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 } }).execute(); +// List all inferenceLogModule records +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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 } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.appAdminGrant` +### `db.computeLogModule` -CRUD operations for AppAdminGrant records. +CRUD operations for ComputeLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.appOwnerGrant` +### `db.transferLogModule` -CRUD operations for AppOwnerGrant records. +CRUD operations for TransferLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `transferLogTableId` | UUID | Yes | +| `transferLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all transferLogModule records +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.appGrant` +### `db.storageLogModule` -CRUD operations for AppGrant records. +CRUD operations for StorageLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `storageLogTableId` | UUID | Yes | +| `storageLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all storageLogModule records +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` +### `db.dbUsageModule` -CRUD operations for OrgMembership records. +CRUD operations for DbUsageModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); +// List all dbUsageModule records +const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMember` +### `db.databaseProvisionModule` -CRUD operations for OrgMember records. +CRUD operations for DatabaseProvisionModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isAdmin` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all 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(); - +| `databaseName` | String | Yes | +| `ownerId` | UUID | Yes | +| `subdomain` | String | Yes | +| `domain` | String | Yes | +| `modules` | String | Yes | +| `options` | JSON | Yes | +| `bootstrapUser` | Boolean | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | 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 } }).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 } }).execute(); + +// Create +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(); + +// Delete +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.appAdminGrant` + +CRUD operations for AppAdminGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appGrant` + +CRUD operations for AppGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMembership` + +CRUD operations for OrgMembership records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | + +**Operations:** + +```typescript +// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); + +// Create +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMember` + +CRUD operations for OrgMember records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isAdmin` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all 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(); + // Create const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); @@ -4230,14 +4485,15 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.auditLogAuth` -CRUD operations for AuditLog records. +CRUD operations for AuditLogAuth records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | | `event` | String | Yes | | `actorId` | UUID | Yes | @@ -4245,148 +4501,164 @@ CRUD operations for AuditLog records. | `userAgent` | String | Yes | | `ipAddress` | InternetAddress | Yes | | `success` | Boolean | Yes | -| `createdAt` | Datetime | No | **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 } }).execute(); +// List all auditLogAuth records +const items = await db.auditLogAuth.findMany({ select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: 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 } }).execute(); +const item = await db.auditLogAuth.findOne({ id: '', select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.auditLogAuth.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.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLogAuth.delete({ where: { id: '' } }).execute(); ``` -### `db.agentThread` +### `db.identityProvider` -CRUD operations for AgentThread records. +CRUD operations for IdentityProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `title` | String | Yes | -| `mode` | String | Yes | -| `model` | String | Yes | -| `systemPrompt` | String | Yes | -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `status` | String | Yes | +| `slug` | String | Yes | +| `kind` | String | Yes | +| `displayName` | String | Yes | +| `enabled` | Boolean | Yes | +| `isBuiltIn` | Boolean | Yes | **Operations:** ```typescript -// List all agentThread records -const items = await db.agentThread.findMany({ select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); +// List all identityProvider records +const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Get one by id -const item = await db.agentThread.findOne({ id: '', select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); +const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Create -const created = await db.agentThread.create({ data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, select: { id: true } }).execute(); +const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentThread.update({ where: { id: '' }, data: { title: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.agentMessage` +### `db.ref` -CRUD operations for AgentMessage records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `threadId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `authorRole` | String | Yes | | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | -| `parts` | JSON | Yes | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all agentMessage records -const items = await db.agentMessage.findMany({ select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentMessage.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.agentTask` +### `db.store` -CRUD operations for AgentTask records. +CRUD operations for Store records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `threadId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `description` | String | Yes | -| `source` | String | Yes | -| `error` | String | Yes | | `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | -| `status` | String | Yes | **Operations:** ```typescript -// List all agentTask records -const items = await db.agentTask.findMany({ select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentTask.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` +### `db.appPermissionDefault` -CRUD operations for RoleType records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | +| `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 | **Operations:** @@ -4408,166 +4680,175 @@ const updated = await db.roleType.update({ where: { id: '' }, data: { name: const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvider` +### `db.migrateFile` -CRUD operations for IdentityProvider records. +CRUD operations for MigrateFile records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `slug` | String | Yes | -| `kind` | String | Yes | -| `displayName` | String | Yes | -| `enabled` | Boolean | Yes | -| `isBuiltIn` | Boolean | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | **Operations:** ```typescript -// List all identityProvider records -const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); // Get one by id -const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); // Create -const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.devicesModule` -CRUD operations for Ref records. +CRUD operations for DevicesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `userDevicesTableId` | UUID | Yes | +| `deviceSettingsTableId` | UUID | Yes | +| `userDevicesTable` | String | Yes | +| `deviceSettingsTable` | String | 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(); +// List all devicesModule records +const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: 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(); +const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.appMembershipDefault` -CRUD operations for Store records. +CRUD operations for AppMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all 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.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: 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.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.orgMembershipDefault` -CRUD operations for AppPermissionDefault records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.nodeTypeRegistry` -CRUD operations for AppLimitCreditCode records. +CRUD operations for NodeTypeRegistry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// 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 } }).execute(); -// Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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 } }).execute(); // Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -4696,203 +4977,137 @@ const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { n const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.userConnectedAccount` -CRUD operations for MembershipType records. +CRUD operations for UserConnectedAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | +| `id` | UUID | No | +| `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 membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all userConnectedAccount records +const items = await db.userConnectedAccount.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.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.userConnectedAccount.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.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.migrateFile` +### `db.appLimitDefault` -CRUD operations for MigrateFile records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.devicesModule` +### `db.orgLimitDefault` -CRUD operations for DevicesModule records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `userDevicesTableId` | UUID | Yes | -| `deviceSettingsTableId` | UUID | Yes | -| `userDevicesTable` | String | Yes | -| `deviceSettingsTable` | String | Yes | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all devicesModule records -const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.nodeTypeRegistry` +### `db.appLimitCreditCode` -CRUD operations for NodeTypeRegistry records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | No | -| `slug` | String | Yes | -| `category` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `parameterSchema` | JSON | Yes | -| `tags` | String | Yes | +| `id` | UUID | No | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | 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 } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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 } }).execute(); +// Get one by id +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -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.appLimitCreditCode.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitWarning` @@ -4928,42 +5143,6 @@ const updated = await db.appLimitWarning.update({ where: { id: '' }, data: const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.userConnectedAccount` - -CRUD operations for UserConnectedAccount 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 | - -**Operations:** - -```typescript -// List all userConnectedAccount records -const items = await db.userConnectedAccount.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.userConnectedAccount.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.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); -``` - ### `db.commit` CRUD operations for Commit records. @@ -4974,7 +5153,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -4986,13 +5165,13 @@ CRUD operations for Commit records. ```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 } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: 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 } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: 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: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', 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(); @@ -5075,108 +5254,38 @@ const updated = await db.rateLimitsModule.update({ where: { id: '' }, data const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.usageSnapshot` - -CRUD operations for UsageSnapshot records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `databaseId` | UUID | Yes | -| `metricName` | String | Yes | -| `metricValue` | BigInt | Yes | -| `dimensions` | JSON | Yes | -| `capturedAt` | Datetime | Yes | -| `id` | UUID | No | - -**Operations:** - -```typescript -// List all usageSnapshot records -const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); - -// Get one by id -const item = await db.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); - -// Create -const created = await db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembershipDefault` - -CRUD operations for AppMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | - -**Operations:** - -```typescript -// List all 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(); - -// Create -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(); - -// Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipDefault` +### `db.membershipType` -CRUD operations for OrgMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: 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 } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsSetting` @@ -5217,83 +5326,48 @@ const updated = await db.rlsSetting.update({ where: { id: '' }, data: { da const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` - -CRUD operations for AppLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` +### `db.rlsModule` -CRUD operations for OrgLimitEvent records. +CRUD operations for RlsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// 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 } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, 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.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.rlsModule` +### `db.agentChatModule` -CRUD operations for RlsModule records. +CRUD operations for AgentChatModule records. **Fields:** @@ -5303,31 +5377,32 @@ CRUD operations for RlsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `authenticate` | String | Yes | -| `authenticateStrict` | String | Yes | -| `currentRole` | String | Yes | -| `currentRoleId` | String | Yes | +| `apiId` | UUID | Yes | +| `threadTableId` | UUID | Yes | +| `threadTableName` | String | Yes | +| `messageTableId` | UUID | Yes | +| `messageTableName` | String | Yes | +| `taskTableId` | UUID | Yes | +| `taskTableName` | String | Yes | +| `prefix` | String | 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 } }).execute(); +// List all agentChatModule records +const items = await db.agentChatModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: 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 } }).execute(); +const item = await db.agentChatModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: true } }).execute(); // Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); +const created = await db.agentChatModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', apiId: '', threadTableId: '', threadTableName: '', messageTableId: '', messageTableName: '', taskTableId: '', taskTableName: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.agentChatModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentChatModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rateLimitMetersModule` @@ -5452,6 +5527,84 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseSetting` CRUD operations for DatabaseSetting records. @@ -5494,87 +5647,90 @@ const updated = await db.databaseSetting.update({ where: { id: '' }, data: const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.billingModule` +### `db.orgMembershipSetting` -CRUD operations for BillingModule records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `metersTableId` | UUID | Yes | -| `metersTableName` | String | Yes | -| `planSubscriptionsTableId` | UUID | Yes | -| `planSubscriptionsTableName` | String | Yes | -| `ledgerTableId` | UUID | Yes | -| `ledgerTableName` | String | Yes | -| `balancesTableId` | UUID | Yes | -| `balancesTableName` | String | Yes | -| `recordUsageFunction` | String | Yes | -| `prefix` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.astMigration` +### `db.appMembership` -CRUD operations for AstMigration records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | +| `id` | UUID | No | | `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | 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 } }).execute(); +// List all 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.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(); +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.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, 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.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -5619,46 +5775,45 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > 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. -### `db.orgMembershipSetting` +### `db.astMigration` -CRUD operations for OrgMembershipSetting records. +CRUD operations for AstMigration records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// 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 } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: 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.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, 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.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.webauthnSetting` @@ -5707,48 +5862,50 @@ const updated = await db.webauthnSetting.update({ where: { id: '' }, data: const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` +### `db.billingModule` -CRUD operations for AppMembership records. +CRUD operations for BillingModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `metersTableId` | UUID | Yes | +| `metersTableName` | String | Yes | +| `planSubscriptionsTableId` | UUID | Yes | +| `planSubscriptionsTableName` | String | Yes | +| `ledgerTableId` | UUID | Yes | +| `ledgerTableName` | String | Yes | +| `balancesTableId` | UUID | Yes | +| `balancesTableName` | String | Yes | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | +| `meterSourcesTableId` | UUID | Yes | +| `meterSourcesTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all 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(); +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: 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.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: 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.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` ### `db.billingProviderModule` @@ -5936,12 +6093,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.resolveBlueprintField` @@ -6058,97 +6215,97 @@ orgPermissionsGetMaskByNames const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` -### `db.query.appPermissionsGetByMask` +### `db.query.getAllObjectsFromRoot` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` +### `db.query.getPathObjectsFromRoot` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getAllObjectsFromRoot` +### `db.query.getObjectAtPath` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `sId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` -### `db.query.getPathObjectsFromRoot` +### `db.query.appPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getObjectAtPath` +### `db.query.orgPermissionsGetByMask` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.currentUser` @@ -6414,7 +6571,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -6429,12 +6586,12 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.constructBlueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - **Type:** mutation - **Arguments:** @@ -6489,7 +6646,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.copyTemplateToBlueprint` @@ -6522,6 +6679,21 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); ``` +### `db.mutation.signInCrossOrigin` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInCrossOriginInput (required) | + +```typescript +const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.bootstrapUser` bootstrapUser @@ -6537,6 +6709,36 @@ bootstrapUser const result = await db.mutation.bootstrapUser({ input: '' }).execute(); ``` +### `db.mutation.signUp` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` + +### `db.mutation.signIn` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` + ### `db.mutation.setFieldOrder` setFieldOrder @@ -6624,7 +6826,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -6639,7 +6841,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.provisionDatabaseWithUser` @@ -6732,21 +6934,6 @@ applyRls const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.signInCrossOrigin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` - ### `db.mutation.createUserDatabase` Creates a new user database with all required modules, permissions, and RLS policies. @@ -6808,94 +6995,64 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` - -### `db.mutation.forgotPassword` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` - -### `db.mutation.signUp` +### `db.mutation.requestCrossOriginToken` -signUp +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.requestCrossOriginToken` +### `db.mutation.provisionTable` -requestCrossOriginToken +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ProvisionTableInput (required) | ```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +const result = await db.mutation.provisionTable({ input: '' }).execute(); ``` -### `db.mutation.signIn` +### `db.mutation.sendVerificationEmail` -signIn +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.provisionTable` +### `db.mutation.forgotPassword` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-cli/src/public/orm/index.ts b/sdk/constructive-cli/src/public/orm/index.ts index a605cf0e2b..f69517e744 100644 --- a/sdk/constructive-cli/src/public/orm/index.ts +++ b/sdk/constructive-cli/src/public/orm/index.ts @@ -8,9 +8,9 @@ import type { OrmClientConfig } from './client'; 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'; -import { ObjectModel } from './models/object'; import { DatabaseModel } from './models/database'; import { SchemaModel } from './models/schema'; import { TableModel } from './models/table'; @@ -35,6 +35,7 @@ import { RelationProvisionModel } from './models/relationProvision'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RealtimeModuleModel } from './models/realtimeModule'; +import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { EnumModel } from './models/enum'; @@ -59,7 +60,7 @@ import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; import { EmailsModuleModel } from './models/emailsModule'; -import { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule'; +import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { InvitesModuleModel } from './models/invitesModule'; import { EventsModuleModel } from './models/eventsModule'; import { LimitsModuleModel } from './models/limitsModule'; @@ -80,6 +81,11 @@ import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; import { NotificationsModuleModel } from './models/notificationsModule'; +import { InferenceLogModuleModel } from './models/inferenceLogModule'; +import { ComputeLogModuleModel } from './models/computeLogModule'; +import { TransferLogModuleModel } from './models/transferLogModule'; +import { StorageLogModuleModel } from './models/storageLogModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; @@ -109,54 +115,51 @@ import { AppInviteModel } from './models/appInvite'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AuditLogModel } from './models/auditLog'; -import { AgentThreadModel } from './models/agentThread'; -import { AgentMessageModel } from './models/agentMessage'; -import { AgentTaskModel } from './models/agentTask'; -import { RoleTypeModel } from './models/roleType'; +import { AuditLogAuthModel } from './models/auditLogAuth'; import { IdentityProviderModel } from './models/identityProvider'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { RoleTypeModel } from './models/roleType'; +import { MigrateFileModel } from './models/migrateFile'; +import { DevicesModuleModel } from './models/devicesModule'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; import { AppLimitCapModel } from './models/appLimitCap'; import { OrgLimitCapModel } from './models/orgLimitCap'; -import { MembershipTypeModel } from './models/membershipType'; -import { MigrateFileModel } from './models/migrateFile'; -import { DevicesModuleModel } from './models/devicesModule'; -import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { UserConnectedAccountModel } from './models/userConnectedAccount'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { UserConnectedAccountModel } from './models/userConnectedAccount'; import { CommitModel } from './models/commit'; import { PubkeySettingModel } from './models/pubkeySetting'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; -import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { RlsSettingModel } from './models/rlsSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { RlsModuleModel } from './models/rlsModule'; +import { AgentChatModuleModel } from './models/agentChatModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { PlansModuleModel } from './models/plansModule'; import { SqlActionModel } from './models/sqlAction'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { DatabaseSettingModel } from './models/databaseSetting'; -import { BillingModuleModel } from './models/billingModule'; -import { AstMigrationModel } from './models/astMigration'; -import { UserModel } from './models/user'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { WebauthnSettingModel } from './models/webauthnSetting'; import { AppMembershipModel } from './models/appMembership'; +import { UserModel } from './models/user'; +import { AstMigrationModel } from './models/astMigration'; +import { WebauthnSettingModel } from './models/webauthnSetting'; +import { BillingModuleModel } from './models/billingModule'; import { BillingProviderModuleModel } from './models/billingProviderModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; @@ -191,9 +194,9 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), + object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), - object: new ObjectModel(client), database: new DatabaseModel(client), schema: new SchemaModel(client), table: new TableModel(client), @@ -218,6 +221,7 @@ export function createClient(config: OrmClientConfig) { sessionSecretsModule: new SessionSecretsModuleModel(client), identityProvidersModule: new IdentityProvidersModuleModel(client), realtimeModule: new RealtimeModuleModel(client), + configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), enum: new EnumModel(client), @@ -242,7 +246,7 @@ export function createClient(config: OrmClientConfig) { defaultIdsModule: new DefaultIdsModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), emailsModule: new EmailsModuleModel(client), - encryptedSecretsModule: new EncryptedSecretsModuleModel(client), + configSecretsUserModule: new ConfigSecretsUserModuleModel(client), invitesModule: new InvitesModuleModel(client), eventsModule: new EventsModuleModel(client), limitsModule: new LimitsModuleModel(client), @@ -263,6 +267,11 @@ export function createClient(config: OrmClientConfig) { webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), notificationsModule: new NotificationsModuleModel(client), + inferenceLogModule: new InferenceLogModuleModel(client), + computeLogModule: new ComputeLogModuleModel(client), + transferLogModule: new TransferLogModuleModel(client), + storageLogModule: new StorageLogModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), @@ -292,48 +301,45 @@ export function createClient(config: OrmClientConfig) { appClaimedInvite: new AppClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - auditLog: new AuditLogModel(client), - agentThread: new AgentThreadModel(client), - agentMessage: new AgentMessageModel(client), - agentTask: new AgentTaskModel(client), - roleType: new RoleTypeModel(client), + auditLogAuth: new AuditLogAuthModel(client), identityProvider: new IdentityProviderModel(client), ref: new RefModel(client), store: new StoreModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), + roleType: new RoleTypeModel(client), + migrateFile: new MigrateFileModel(client), + devicesModule: new DevicesModuleModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + nodeTypeRegistry: new NodeTypeRegistryModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), appLimitCap: new AppLimitCapModel(client), orgLimitCap: new OrgLimitCapModel(client), - membershipType: new MembershipTypeModel(client), - migrateFile: new MigrateFileModel(client), - devicesModule: new DevicesModuleModel(client), - nodeTypeRegistry: new NodeTypeRegistryModel(client), + userConnectedAccount: new UserConnectedAccountModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), appLimitWarning: new AppLimitWarningModel(client), - userConnectedAccount: new UserConnectedAccountModel(client), commit: new CommitModel(client), pubkeySetting: new PubkeySettingModel(client), rateLimitsModule: new RateLimitsModuleModel(client), - usageSnapshot: new UsageSnapshotModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), rlsSetting: new RlsSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), rlsModule: new RlsModuleModel(client), + agentChatModule: new AgentChatModuleModel(client), rateLimitMetersModule: new RateLimitMetersModuleModel(client), plansModule: new PlansModuleModel(client), sqlAction: new SqlActionModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), databaseSetting: new DatabaseSettingModel(client), - billingModule: new BillingModuleModel(client), - astMigration: new AstMigrationModel(client), - user: new UserModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), - webauthnSetting: new WebauthnSettingModel(client), appMembership: new AppMembershipModel(client), + user: new UserModel(client), + astMigration: new AstMigrationModel(client), + webauthnSetting: new WebauthnSettingModel(client), + billingModule: new BillingModuleModel(client), billingProviderModule: new BillingProviderModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-cli/src/public/orm/input-types.ts b/sdk/constructive-cli/src/public/orm/input-types.ts index 8a39234a74..b8693547c6 100644 --- a/sdk/constructive-cli/src/public/orm/input-types.ts +++ b/sdk/constructive-cli/src/public/orm/input-types.ts @@ -254,6 +254,16 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } +export interface Object { + hashUuid?: string | null; + id: string; + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; @@ -278,16 +288,6 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} export interface Database { id: string; ownerId?: string | null; @@ -786,6 +786,14 @@ export interface RealtimeModule { interval?: string | null; notifyChannel?: string | null; } +/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ +export interface ConfigSecretsOrgModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface SchemaGrant { id: string; databaseId?: string | null; @@ -944,6 +952,7 @@ export interface Partition { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; createdAt?: string | null; @@ -1103,7 +1112,7 @@ export interface EmailsModule { ownerTableId?: string | null; tableName?: string | null; } -export interface EncryptedSecretsModule { +export interface ConfigSecretsUserModule { id: string; databaseId?: string | null; schemaId?: string | null; @@ -1456,6 +1465,7 @@ export interface StorageModule { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -1580,36 +1590,34 @@ export interface EntityTypeProvision { */ hasInviteAchievements?: boolean | null; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: Record | null; /** @@ -1737,6 +1745,93 @@ export interface NotificationsModule { hasDigestMetadata?: boolean | null; hasSubscriptions?: boolean | null; } +export interface InferenceLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface ComputeLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface TransferLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface StorageLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface DbUsageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: 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 { id: string; @@ -1748,7 +1843,7 @@ export interface DatabaseProvisionModule { subdomain?: string | null; /** Base domain for the database (e.g., example.com) */ domain?: string | null; - /** Array of module IDs to install, or ["all"] for all modules */ + /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ modules?: string[] | null; /** Additional configuration options for provisioning */ options?: Record | null; @@ -2243,8 +2338,10 @@ 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 { +/** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ +export interface AuditLogAuth { + createdAt?: string | null; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; @@ -2258,74 +2355,6 @@ export interface AuditLog { ipAddress?: string | null; /** Whether the authentication attempt succeeded */ success?: boolean | null; - /** Timestamp when the audit event was recorded */ - createdAt?: string | null; -} -/** Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. */ -export interface AgentThread { - /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ - title?: string | null; - /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ - mode?: string | null; - /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ - model?: string | null; - /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ - systemPrompt?: string | null; - id: string; - /** Timestamp when this record was created */ - createdAt?: string | null; - /** Timestamp when this record was last updated */ - updatedAt?: string | null; - /** User who owns this record within the entity */ - ownerId?: string | null; - /** Entity this record belongs to */ - entityId?: string | null; - /** Current status of this record */ - status?: string | null; -} -/** A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. */ -export interface AgentMessage { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId?: string | null; - /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ - entityId?: string | null; - /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ - authorRole?: string | null; - id: string; - /** Timestamp when this record was created */ - createdAt?: string | null; - /** Timestamp when this record was last updated */ - updatedAt?: string | null; - /** User who owns this record */ - ownerId?: string | null; - /** JSON metadata for extensible key-value storage */ - parts?: Record | null; -} -/** An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. */ -export interface AgentTask { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId?: string | null; - /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ - entityId?: string | null; - /** Natural-language description of the work to do. Required. */ - description?: string | null; - /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ - source?: string | null; - /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ - error?: string | null; - id: string; - /** Timestamp when this record was created */ - createdAt?: string | null; - /** Timestamp when this record was last updated */ - updatedAt?: string | null; - /** User who owns this record */ - ownerId?: string | null; - /** Current status of this record */ - status?: string | null; -} -export interface RoleType { - id: number; - name?: string | null; } export interface IdentityProvider { slug?: string | null; @@ -2340,7 +2369,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -2350,8 +2379,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -2362,68 +2391,9 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { - id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface AppLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface OrgLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ +export interface RoleType { id: number; - /** Human-readable name of the membership type */ name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; } export interface MigrateFile { id: string; @@ -2439,122 +2409,6 @@ export interface DevicesModule { userDevicesTable?: string | null; deviceSettingsTable?: string | null; } -export interface NodeTypeRegistry { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; -} -export interface UserConnectedAccount { - id: string; - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** A commit records changes to the repository. */ -export interface Commit { - /** The primary unique identifier for the commit. */ - id: string; - /** The commit message */ - message?: string | null; - /** The repository identifier */ - databaseId?: string | null; - storeId?: string | null; - /** Parent commits */ - parentIds?: string[] | null; - /** The author of the commit */ - authorId?: string | null; - /** The committer of the commit */ - committerId?: string | null; - /** The root of the tree */ - treeId?: string | null; - date?: string | null; -} -/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ -export interface PubkeySetting { - /** Unique identifier for this pubkey settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ - schemaId?: string | null; - /** Crypto network for key derivation (e.g. cosmos, ethereum) */ - cryptoNetwork?: string | null; - /** Field name used to identify the user in crypto auth functions */ - userField?: string | null; - /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ - signUpWithKeyFunctionId?: string | null; - /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ - signInRequestChallengeFunctionId?: string | null; - /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ - signInRecordFailureFunctionId?: string | null; - /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ - signInWithChallengeFunctionId?: string | null; -} -export interface RateLimitsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - rateLimitSettingsTableId?: string | null; - ipRateLimitsTableId?: string | null; - rateLimitsTableId?: string | null; - rateLimitSettingsTable?: string | null; - ipRateLimitsTable?: string | null; - rateLimitsTable?: string | null; -} -/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ -export interface UsageSnapshot { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string | null; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string | null; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string | null; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: Record | null; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string | null; - id: string; -} /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { id: string; @@ -2579,6 +2433,171 @@ export interface OrgMembershipDefault { /** References the entity these membership defaults apply to */ entityId?: string | null; } +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +export interface AppLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +export interface OrgLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface AppLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface OrgLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +export interface UserConnectedAccount { + id: string; + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { + id: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; +} +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface AppLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; +} +/** A commit records changes to the repository. */ +export interface Commit { + /** The primary unique identifier for the commit. */ + id: string; + /** The commit message */ + message?: string | null; + /** The scope identifier */ + scopeId?: string | null; + storeId?: string | null; + /** Parent commits */ + parentIds?: string[] | null; + /** The author of the commit */ + authorId?: string | null; + /** The committer of the commit */ + committerId?: string | null; + /** The root of the tree */ + treeId?: string | null; + date?: string | null; +} +/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ +export interface PubkeySetting { + /** Unique identifier for this pubkey settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string | null; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string | null; + /** Field name used to identify the user in crypto auth functions */ + userField?: string | null; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string | null; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string | null; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string | null; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string | null; +} +export interface RateLimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + rateLimitSettingsTableId?: string | null; + ipRateLimitsTableId?: string | null; + rateLimitsTableId?: string | null; + rateLimitSettingsTable?: string | null; + ipRateLimitsTable?: string | null; + rateLimitsTable?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; +} /** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ export interface RlsSetting { /** Unique identifier for this RLS settings record */ @@ -2602,48 +2621,6 @@ export interface RlsSetting { /** Reference to the current_ip_address function (FK to metaschema_public.function) */ currentIpAddressFunctionId?: string | null; } -/** Append-only log of limit events for historical reporting and audit */ -export interface AppLimitEvent { - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface OrgLimitEvent { - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} export interface RlsModule { id: string; databaseId?: string | null; @@ -2657,6 +2634,20 @@ export interface RlsModule { currentRole?: string | null; currentRoleId?: string | null; } +export interface AgentChatModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + apiId?: string | null; + threadTableId?: string | null; + threadTableName?: string | null; + messageTableId?: string | null; + messageTableName?: string | null; + taskTableId?: string | null; + taskTableName?: string | null; + prefix?: string | null; +} export interface RateLimitMetersModule { id: string; databaseId?: string | null; @@ -2701,6 +2692,54 @@ export interface SqlAction { actionId?: string | null; actorId?: string | null; } +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} /** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ export interface DatabaseSetting { /** Unique identifier for this settings record */ @@ -2732,53 +2771,6 @@ export interface DatabaseSetting { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record | null; } -export interface BillingModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; -} -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ - 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. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ - searchScore?: number | null; -} /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { id: string; @@ -2805,6 +2797,66 @@ export interface OrgMembershipSetting { /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ limitAllocationMode?: string | null; } +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + profileId?: string | null; +} +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ + 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. 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; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} /** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ export interface WebauthnSetting { /** Unique identifier for this WebAuthn settings record */ @@ -2844,34 +2896,25 @@ export interface WebauthnSetting { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { +export interface BillingModule { id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; } export interface BillingProviderModule { id: string; @@ -2933,9 +2976,9 @@ export interface PageInfo { export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} +export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} -export interface ObjectRelations {} export interface DatabaseRelations { owner?: User | null; databaseSetting?: DatabaseSetting | null; @@ -2950,6 +2993,7 @@ export interface DatabaseRelations { billingModule?: BillingModule | null; billingProviderModule?: BillingProviderModule | null; rateLimitMetersModule?: RateLimitMetersModule | null; + agentChatModule?: AgentChatModule | null; schemas?: ConnectionResult; tables?: ConnectionResult; checkConstraints?: ConnectionResult; @@ -2991,7 +3035,7 @@ export interface DatabaseRelations { defaultIdsModules?: ConnectionResult; denormalizedTableFields?: ConnectionResult; emailsModules?: ConnectionResult; - encryptedSecretsModules?: ConnectionResult; + configSecretsUserModules?: ConnectionResult; invitesModules?: ConnectionResult; eventsModules?: ConnectionResult; limitsModules?: ConnectionResult; @@ -3016,6 +3060,12 @@ export interface DatabaseRelations { identityProvidersModules?: ConnectionResult; notificationsModules?: ConnectionResult; realtimeModules?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; + inferenceLogModules?: ConnectionResult; + computeLogModules?: ConnectionResult; + transferLogModules?: ConnectionResult; + storageLogModules?: ConnectionResult; + dbUsageModules?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -3033,6 +3083,7 @@ export interface SchemaRelations { realtimeModulesByPrivateSchemaId?: ConnectionResult; realtimeModules?: ConnectionResult; realtimeModulesBySubscriptionsSchemaId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface TableRelations { database?: Database | null; @@ -3064,6 +3115,7 @@ export interface TableRelations { realtimeModulesByChangeLogTableId?: ConnectionResult; realtimeModulesByListenerNodeTableId?: ConnectionResult; realtimeModulesBySourceRegistryTableId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -3173,6 +3225,11 @@ export interface RealtimeModuleRelations { sourceRegistryTable?: Table | null; subscriptionsSchema?: Schema | null; } +export interface ConfigSecretsOrgModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; @@ -3293,7 +3350,7 @@ export interface EmailsModuleRelations { schema?: Schema | null; table?: Table | null; } -export interface EncryptedSecretsModuleRelations { +export interface ConfigSecretsUserModuleRelations { database?: Database | null; schema?: Schema | null; table?: Table | null; @@ -3480,6 +3537,43 @@ export interface NotificationsModuleRelations { schema?: Schema | null; userSettingsTableByUserSettingsTableId?: Table | null; } +export interface InferenceLogModuleRelations { + database?: Database | null; + inferenceLogTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usageDailyTable?: Table | null; +} +export interface ComputeLogModuleRelations { + computeLogTable?: Table | null; + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usageDailyTable?: Table | null; +} +export interface TransferLogModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + transferLogTable?: Table | null; + usageDailyTable?: Table | null; +} +export interface StorageLogModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + storageLogTable?: Table | null; + usageDailyTable?: Table | null; +} +export interface DbUsageModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + queryStatsDailyTable?: Table | null; + queryStatsLogTable?: Table | null; + schema?: Schema | null; + tableStatsDailyTable?: Table | null; + tableStatsLogTable?: Table | null; +} export interface DatabaseProvisionModuleRelations { database?: Database | null; } @@ -3596,37 +3690,14 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } -export interface AuditLogRelations { +export interface AuditLogAuthRelations { actor?: User | null; } -export interface AgentThreadRelations { - entity?: User | null; - owner?: User | null; - agentMessagesByThreadId?: ConnectionResult; - agentTasksByThreadId?: ConnectionResult; -} -export interface AgentMessageRelations { - owner?: User | null; - thread?: AgentThread | null; -} -export interface AgentTaskRelations { - owner?: User | null; - thread?: AgentThread | null; -} -export interface RoleTypeRelations {} export interface IdentityProviderRelations {} export interface RefRelations {} export interface StoreRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface AppLimitCapsDefaultRelations {} -export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface MembershipTypeRelations {} +export interface RoleTypeRelations {} export interface MigrateFileRelations {} export interface DevicesModuleRelations { database?: Database | null; @@ -3634,7 +3705,16 @@ export interface DevicesModuleRelations { schema?: Schema | null; userDevicesTableByUserDevicesTableId?: Table | null; } +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations { + entity?: User | null; +} export interface NodeTypeRegistryRelations {} +export interface AppLimitCapsDefaultRelations {} +export interface OrgLimitCapsDefaultRelations {} +export interface AppLimitCapRelations {} +export interface OrgLimitCapRelations {} +export interface UserConnectedAccountRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; @@ -3642,8 +3722,11 @@ export interface AppLimitDefaultRelations { export interface OrgLimitDefaultRelations { orgLimitCreditsByDefaultLimitId?: ConnectionResult; } +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} export interface AppLimitWarningRelations {} -export interface UserConnectedAccountRelations {} export interface CommitRelations {} export interface PubkeySettingRelations { database?: Database | null; @@ -3660,11 +3743,7 @@ export interface RateLimitsModuleRelations { rateLimitsTableByRateLimitsTableId?: Table | null; schema?: Schema | null; } -export interface UsageSnapshotRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} +export interface MembershipTypeRelations {} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -3676,8 +3755,6 @@ export interface RlsSettingRelations { database?: Database | null; roleSchema?: Schema | null; } -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface RlsModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3686,6 +3763,15 @@ export interface RlsModuleRelations { sessionsTable?: Table | null; usersTable?: Table | null; } +export interface AgentChatModuleRelations { + api?: Api | null; + database?: Database | null; + messageTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + taskTable?: Table | null; + threadTable?: Table | null; +} export interface RateLimitMetersModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3704,19 +3790,17 @@ export interface PlansModuleRelations { schema?: Schema | null; } export interface SqlActionRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface DatabaseSettingRelations { database?: Database | null; } -export interface BillingModuleRelations { - balancesTable?: Table | null; - database?: Database | null; - ledgerTable?: Table | null; - metersTable?: Table | null; - planSubscriptionsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; +export interface OrgMembershipSettingRelations { + entity?: User | null; +} +export interface AppMembershipRelations { + actor?: User | null; } -export interface AstMigrationRelations {} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -3773,15 +3857,9 @@ export interface UserRelations { orgClaimedInvitesByEntityId?: ConnectionResult; orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; - auditLogsByActorId?: ConnectionResult; - agentThreadsByEntityId?: ConnectionResult; - ownedAgentThreads?: ConnectionResult; - ownedAgentMessages?: ConnectionResult; - ownedAgentTasks?: ConnectionResult; -} -export interface OrgMembershipSettingRelations { - entity?: User | null; + auditLogAuthsByActorId?: ConnectionResult; } +export interface AstMigrationRelations {} export interface WebauthnSettingRelations { credentialsSchema?: Schema | null; credentialsTable?: Table | null; @@ -3794,8 +3872,16 @@ export interface WebauthnSettingRelations { sessionsTable?: Table | null; userField?: Field | null; } -export interface AppMembershipRelations { - actor?: User | null; +export interface BillingModuleRelations { + balancesTable?: Table | null; + database?: Database | null; + ledgerTable?: Table | null; + meterCreditsTable?: Table | null; + meterSourcesTable?: Table | null; + metersTable?: Table | null; + planSubscriptionsTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; } export interface BillingProviderModuleRelations { billingCustomersTable?: Table | null; @@ -3826,9 +3912,9 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & 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; -export type ObjectWithRelations = Object & ObjectRelations; export type DatabaseWithRelations = Database & DatabaseRelations; export type SchemaWithRelations = Schema & SchemaRelations; export type TableWithRelations = Table & TableRelations; @@ -3858,6 +3944,8 @@ export type SessionSecretsModuleWithRelations = SessionSecretsModule & export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & IdentityProvidersModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & + ConfigSecretsOrgModuleRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type EnumWithRelations = Enum & EnumRelations; @@ -3885,8 +3973,8 @@ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleR export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; -export type EncryptedSecretsModuleWithRelations = EncryptedSecretsModule & - EncryptedSecretsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; @@ -3910,6 +3998,11 @@ export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & WebauthnCredentialsModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; +export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; +export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; +export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; @@ -3943,54 +4036,51 @@ export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; -export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; -export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type AuditLogAuthWithRelations = AuditLogAuth & AuditLogAuthRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; +export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; -export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; -export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; +export type UserConnectedAccountWithRelations = UserConnectedAccount & + UserConnectedAccountRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type UserConnectedAccountWithRelations = UserConnectedAccount & - UserConnectedAccountRelations; export type CommitWithRelations = Commit & CommitRelations; export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; -export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type AgentChatModuleWithRelations = AgentChatModule & AgentChatModuleRelations; export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type UserWithRelations = User & UserRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type UserWithRelations = User & UserRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; @@ -4007,6 +4097,16 @@ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -4021,16 +4121,6 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type DatabaseSelect = { id?: boolean; ownerId?: boolean; @@ -4079,6 +4169,9 @@ export type DatabaseSelect = { rateLimitMetersModule?: { select: RateLimitMetersModuleSelect; }; + agentChatModule?: { + select: AgentChatModuleSelect; + }; schemas?: { select: SchemaSelect; first?: number; @@ -4325,11 +4418,11 @@ export type DatabaseSelect = { filter?: EmailsModuleFilter; orderBy?: EmailsModuleOrderBy[]; }; - encryptedSecretsModules?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModules?: { + select: ConfigSecretsUserModuleSelect; first?: number; - filter?: EncryptedSecretsModuleFilter; - orderBy?: EncryptedSecretsModuleOrderBy[]; + filter?: ConfigSecretsUserModuleFilter; + orderBy?: ConfigSecretsUserModuleOrderBy[]; }; invitesModules?: { select: InvitesModuleSelect; @@ -4475,6 +4568,42 @@ export type DatabaseSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; + inferenceLogModules?: { + select: InferenceLogModuleSelect; + first?: number; + filter?: InferenceLogModuleFilter; + orderBy?: InferenceLogModuleOrderBy[]; + }; + computeLogModules?: { + select: ComputeLogModuleSelect; + first?: number; + filter?: ComputeLogModuleFilter; + orderBy?: ComputeLogModuleOrderBy[]; + }; + transferLogModules?: { + select: TransferLogModuleSelect; + first?: number; + filter?: TransferLogModuleFilter; + orderBy?: TransferLogModuleOrderBy[]; + }; + storageLogModules?: { + select: StorageLogModuleSelect; + first?: number; + filter?: StorageLogModuleFilter; + orderBy?: StorageLogModuleOrderBy[]; + }; + dbUsageModules?: { + select: DbUsageModuleSelect; + first?: number; + filter?: DbUsageModuleFilter; + orderBy?: DbUsageModuleOrderBy[]; + }; databaseProvisionModules?: { select: DatabaseProvisionModuleSelect; first?: number; @@ -4578,6 +4707,12 @@ export type SchemaSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type TableSelect = { id?: boolean; @@ -4765,6 +4900,12 @@ export type TableSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -5299,6 +5440,22 @@ export type RealtimeModuleSelect = { select: SchemaSelect; }; }; +export type ConfigSecretsOrgModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -5494,6 +5651,7 @@ export type PartitionSelect = { partitionKeyId?: boolean; interval?: boolean; retention?: boolean; + retentionKeepTable?: boolean; premake?: boolean; namingPattern?: boolean; createdAt?: boolean; @@ -5771,7 +5929,7 @@ export type EmailsModuleSelect = { select: TableSelect; }; }; -export type EncryptedSecretsModuleSelect = { +export type ConfigSecretsUserModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; @@ -6423,6 +6581,7 @@ export type StorageModuleSelect = { bucketsTableName?: boolean; filesTableName?: boolean; membershipType?: boolean; + storageKey?: boolean; policies?: boolean; skipDefaultPolicyTables?: boolean; entityTableId?: boolean; @@ -6621,6 +6780,174 @@ export type NotificationsModuleSelect = { select: TableSelect; }; }; +export type InferenceLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + inferenceLogTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type ComputeLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + computeLogTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type TransferLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + transferLogTableId?: boolean; + transferLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + transferLogTable?: { + select: TableSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type StorageLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + storageLogTableId?: boolean; + storageLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + storageLogTable?: { + select: TableSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type DbUsageModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + queryStatsDailyTable?: { + select: TableSelect; + }; + queryStatsLogTable?: { + select: TableSelect; + }; + schema?: { + select: SchemaSelect; + }; + tableStatsDailyTable?: { + select: TableSelect; + }; + tableStatsLogTable?: { + select: TableSelect; + }; +}; export type DatabaseProvisionModuleSelect = { id?: boolean; databaseName?: boolean; @@ -7104,7 +7431,8 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; -export type AuditLogSelect = { +export type AuditLogAuthSelect = { + createdAt?: boolean; id?: boolean; event?: boolean; actorId?: boolean; @@ -7112,79 +7440,10 @@ export type AuditLogSelect = { userAgent?: boolean; ipAddress?: boolean; success?: boolean; - createdAt?: boolean; actor?: { select: UserSelect; }; }; -export type AgentThreadSelect = { - title?: boolean; - mode?: boolean; - model?: boolean; - systemPrompt?: boolean; - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ownerId?: boolean; - entityId?: boolean; - status?: boolean; - entity?: { - select: UserSelect; - }; - owner?: { - select: UserSelect; - }; - agentMessagesByThreadId?: { - select: AgentMessageSelect; - first?: number; - filter?: AgentMessageFilter; - orderBy?: AgentMessageOrderBy[]; - }; - agentTasksByThreadId?: { - select: AgentTaskSelect; - first?: number; - filter?: AgentTaskFilter; - orderBy?: AgentTaskOrderBy[]; - }; -}; -export type AgentMessageSelect = { - threadId?: boolean; - entityId?: boolean; - authorRole?: boolean; - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ownerId?: boolean; - parts?: boolean; - owner?: { - select: UserSelect; - }; - thread?: { - select: AgentThreadSelect; - }; -}; -export type AgentTaskSelect = { - threadId?: boolean; - entityId?: boolean; - description?: boolean; - source?: boolean; - error?: boolean; - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ownerId?: boolean; - status?: boolean; - owner?: { - select: UserSelect; - }; - thread?: { - select: AgentThreadSelect; - }; -}; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; export type IdentityProviderSelect = { slug?: boolean; kind?: boolean; @@ -7195,14 +7454,14 @@ export type IdentityProviderSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; @@ -7210,54 +7469,9 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type AppLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type MembershipTypeSelect = { +export type RoleTypeSelect = { id?: boolean; name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; }; export type MigrateFileSelect = { id?: boolean; @@ -7285,6 +7499,27 @@ export type DevicesModuleSelect = { select: TableSelect; }; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; export type NodeTypeRegistrySelect = { name?: boolean; slug?: boolean; @@ -7294,6 +7529,38 @@ export type NodeTypeRegistrySelect = { parameterSchema?: boolean; tags?: boolean; }; +export type AppLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type AppLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type OrgLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type UserConnectedAccountSelect = { + id?: boolean; + ownerId?: boolean; + service?: boolean; + identifier?: boolean; + details?: boolean; + isVerified?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -7324,6 +7591,25 @@ export type OrgLimitDefaultSelect = { orderBy?: OrgLimitCreditOrderBy[]; }; }; +export type AppLimitCreditCodeSelect = { + id?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; +}; export type AppLimitWarningSelect = { id?: boolean; name?: boolean; @@ -7331,20 +7617,10 @@ export type AppLimitWarningSelect = { thresholdValue?: boolean; taskIdentifier?: boolean; }; -export type UserConnectedAccountSelect = { - id?: boolean; - ownerId?: boolean; - service?: boolean; - identifier?: boolean; - details?: boolean; - isVerified?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -7407,34 +7683,13 @@ export type RateLimitsModuleSelect = { select: SchemaSelect; }; }; -export type UsageSnapshotSelect = { - databaseId?: boolean; - metricName?: boolean; - metricValue?: boolean; - dimensions?: boolean; - capturedAt?: boolean; - id?: boolean; -}; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; export type RlsSettingSelect = { id?: boolean; @@ -7475,28 +7730,6 @@ export type RlsSettingSelect = { select: SchemaSelect; }; }; -export type AppLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7528,6 +7761,41 @@ export type RlsModuleSelect = { select: TableSelect; }; }; +export type AgentChatModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + apiId?: boolean; + threadTableId?: boolean; + threadTableName?: boolean; + messageTableId?: boolean; + messageTableName?: boolean; + taskTableId?: boolean; + taskTableName?: boolean; + prefix?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + messageTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + taskTable?: { + select: TableSelect; + }; + threadTable?: { + select: TableSelect; + }; +}; export type RateLimitMetersModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7611,6 +7879,32 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; +export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; export type DatabaseSettingSelect = { id?: boolean; databaseId?: boolean; @@ -7630,57 +7924,45 @@ export type DatabaseSettingSelect = { select: DatabaseSelect; }; }; -export type BillingModuleSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - metersTableId?: boolean; - metersTableName?: boolean; - planSubscriptionsTableId?: boolean; - planSubscriptionsTableName?: boolean; - ledgerTableId?: boolean; - ledgerTableName?: boolean; - balancesTableId?: boolean; - balancesTableName?: boolean; - recordUsageFunction?: boolean; - prefix?: boolean; - balancesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - ledgerTable?: { - select: TableSelect; - }; - metersTable?: { - select: TableSelect; - }; - planSubscriptionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; + entity?: { + select: UserSelect; }; }; -export type AstMigrationSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; createdAt?: boolean; - action?: boolean; - actionId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; }; export type UserSelect = { id?: boolean; @@ -8012,55 +8294,27 @@ export type UserSelect = { filter?: OrgClaimedInviteFilter; orderBy?: OrgClaimedInviteOrderBy[]; }; - auditLogsByActorId?: { - select: AuditLogSelect; + auditLogAuthsByActorId?: { + select: AuditLogAuthSelect; first?: number; - filter?: AuditLogFilter; - orderBy?: AuditLogOrderBy[]; - }; - agentThreadsByEntityId?: { - select: AgentThreadSelect; - first?: number; - filter?: AgentThreadFilter; - orderBy?: AgentThreadOrderBy[]; - }; - ownedAgentThreads?: { - select: AgentThreadSelect; - first?: number; - filter?: AgentThreadFilter; - orderBy?: AgentThreadOrderBy[]; - }; - ownedAgentMessages?: { - select: AgentMessageSelect; - first?: number; - filter?: AgentMessageFilter; - orderBy?: AgentMessageOrderBy[]; - }; - ownedAgentTasks?: { - select: AgentTaskSelect; - first?: number; - filter?: AgentTaskFilter; - orderBy?: AgentTaskOrderBy[]; + filter?: AuditLogAuthFilter; + orderBy?: AuditLogAuthOrderBy[]; }; }; -export type OrgMembershipSettingSelect = { +export type AstMigrationSelect = { id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; - entity?: { - select: UserSelect; - }; + action?: boolean; + actionId?: boolean; + actorId?: boolean; }; export type WebauthnSettingSelect = { id?: boolean; @@ -8112,25 +8366,51 @@ export type WebauthnSettingSelect = { select: FieldSelect; }; }; -export type AppMembershipSelect = { +export type BillingModuleSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; + meterSourcesTableId?: boolean; + meterSourcesTableName?: boolean; + recordUsageFunction?: boolean; + prefix?: boolean; + balancesTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + ledgerTable?: { + select: TableSelect; + }; + meterCreditsTable?: { + select: TableSelect; + }; + meterSourcesTable?: { + select: TableSelect; + }; + metersTable?: { + select: TableSelect; + }; + planSubscriptionsTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; }; }; export type BillingProviderModuleSelect = { @@ -8256,6 +8536,28 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8292,28 +8594,6 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface DatabaseFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8521,10 +8801,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -8653,6 +8933,34 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModules` relation. */ + inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; + /** `inferenceLogModules` exist. */ + inferenceLogModulesExist?: boolean; + /** Filter by the object’s `computeLogModules` relation. */ + computeLogModules?: DatabaseToManyComputeLogModuleFilter; + /** `computeLogModules` exist. */ + computeLogModulesExist?: boolean; + /** Filter by the object’s `transferLogModules` relation. */ + transferLogModules?: DatabaseToManyTransferLogModuleFilter; + /** `transferLogModules` exist. */ + transferLogModulesExist?: boolean; + /** Filter by the object’s `storageLogModules` relation. */ + storageLogModules?: DatabaseToManyStorageLogModuleFilter; + /** `storageLogModules` exist. */ + storageLogModulesExist?: boolean; + /** Filter by the object’s `dbUsageModules` relation. */ + dbUsageModules?: DatabaseToManyDbUsageModuleFilter; + /** `dbUsageModules` exist. */ + dbUsageModulesExist?: boolean; + /** Filter by the object’s `agentChatModule` relation. */ + agentChatModule?: AgentChatModuleFilter; + /** A related `agentChatModule` exists. */ + agentChatModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -8747,6 +9055,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface TableFilter { /** Filter by the object’s `id` field. */ @@ -8913,6 +9225,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface CheckConstraintFilter { /** Filter by the object’s `id` field. */ @@ -9788,6 +10104,30 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +export interface ConfigSecretsOrgModuleFilter { + /** 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} export interface SchemaGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10127,6 +10467,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -10514,7 +10856,7 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -export interface EncryptedSecretsModuleFilter { +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -10526,11 +10868,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -11461,6 +11803,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -11762,6 +12106,254 @@ export interface NotificationsModuleFilter { /** A related `userSettingsTableByUserSettingsTableId` exists. */ userSettingsTableByUserSettingsTableIdExists?: boolean; } +export interface InferenceLogModuleFilter { + /** 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 `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface ComputeLogModuleFilter { + /** 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 `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; + /** Filter by the object’s `computeLogTable` relation. */ + computeLogTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface TransferLogModuleFilter { + /** 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 `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `transferLogTable` relation. */ + transferLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface StorageLogModuleFilter { + /** 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 `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `storageLogTable` relation. */ + storageLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface DbUsageModuleFilter { + /** 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 `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `queryStatsDailyTable` relation. */ + queryStatsDailyTable?: TableFilter; + /** Filter by the object’s `queryStatsLogTable` relation. */ + queryStatsLogTable?: TableFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `tableStatsDailyTable` relation. */ + tableStatsDailyTable?: TableFilter; + /** Filter by the object’s `tableStatsLogTable` relation. */ + tableStatsLogTable?: TableFilter; +} export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -12644,7 +13236,9 @@ export interface OrgClaimedInviteFilter { /** A related `sender` exists. */ senderExists?: boolean; } -export interface AuditLogFilter { +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -12659,131 +13253,17 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ actorExists?: boolean; } -export interface AgentThreadFilter { - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Negates the expression. */ - not?: AgentThreadFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentTasksByThreadId` relation. */ - agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; - /** `agentTasksByThreadId` exist. */ - agentTasksByThreadIdExist?: boolean; -} -export interface AgentMessageFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Negates the expression. */ - not?: AgentMessageFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -export interface AgentTaskFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Negates the expression. */ - not?: AgentTaskFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; @@ -12807,8 +13287,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -12825,8 +13305,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -12850,111 +13330,17 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -export interface AppLimitCapsDefaultFilter { - /** 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?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -export interface OrgLimitCapsDefaultFilter { - /** 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?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface MembershipTypeFilter { +export interface RoleTypeFilter { /** Filter by the object’s `id` field. */ id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: RoleTypeFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: RoleTypeFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: RoleTypeFilter; } export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ @@ -13000,6 +13386,52 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } +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; +} +export interface OrgMembershipDefaultFilter { + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface NodeTypeRegistryFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; @@ -13022,6 +13454,90 @@ export interface NodeTypeRegistryFilter { /** Negates the expression. */ not?: NodeTypeRegistryFilter; } +export interface AppLimitCapsDefaultFilter { + /** 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?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitCapsDefaultFilter; +} +export interface OrgLimitCapsDefaultFilter { + /** 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?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} +export interface UserConnectedAccountFilter { + /** 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?: UserConnectedAccountFilter[]; + /** Checks for any expressions in this list. */ + or?: UserConnectedAccountFilter[]; + /** Negates the expression. */ + not?: UserConnectedAccountFilter; +} export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13066,6 +13582,32 @@ export interface OrgLimitDefaultFilter { /** `orgLimitCreditsByDefaultLimitId` exist. */ orgLimitCreditsByDefaultLimitIdExist?: boolean; } +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13084,37 +13626,13 @@ export interface AppLimitWarningFilter { /** Negates the expression. */ not?: AppLimitWarningFilter; } -export interface UserConnectedAccountFilter { - /** 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?: UserConnectedAccountFilter[]; - /** Checks for any expressions in this list. */ - or?: UserConnectedAccountFilter[]; - /** Negates the expression. */ - not?: UserConnectedAccountFilter; -} 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 `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -13218,71 +13736,25 @@ export interface RateLimitsModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -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; -} -export interface OrgMembershipDefaultFilter { +export interface MembershipTypeFilter { /** 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 `entityId` field. */ - entityId?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: MembershipTypeFilter; } export interface RlsSettingFilter { /** Filter by the object’s `id` field. */ @@ -13346,58 +13818,6 @@ export interface RlsSettingFilter { /** A related `roleSchema` exists. */ roleSchemaExists?: boolean; } -export interface AppLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13440,6 +13860,52 @@ export interface RlsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } +export interface AgentChatModuleFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `threadTableId` field. */ + threadTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableId` field. */ + messageTableId?: UUIDFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableId` field. */ + taskTableId?: UUIDFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentChatModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentChatModuleFilter[]; + /** Negates the expression. */ + not?: AgentChatModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `messageTable` relation. */ + messageTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `taskTable` relation. */ + taskTable?: TableFilter; + /** Filter by the object’s `threadTable` relation. */ + threadTable?: TableFilter; +} export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13572,13 +14038,73 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } -export interface DatabaseSettingFilter { +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; /** Filter by the object’s `enablePostgis` field. */ enablePostgis?: BooleanFilter; /** Filter by the object’s `enableSearch` field. */ @@ -13610,89 +14136,85 @@ export interface DatabaseSettingFilter { /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; } -export interface BillingModuleFilter { +export interface OrgMembershipSettingFilter { /** 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 `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; + not?: OrgMembershipSettingFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; } -export interface AstMigrationFilter { +export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; + id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; + /** Filter by the object’s `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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; + and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; + or?: AppMembershipFilter[]; /** Negates the expression. */ - not?: AstMigrationFilter; + not?: AppMembershipFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; } export interface UserFilter { /** Filter by the object’s `id` field. */ @@ -13935,26 +14457,10 @@ export interface UserFilter { orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; /** `orgClaimedInvitesBySenderId` exist. */ orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; - /** Filter by the object’s `agentThreadsByEntityId` relation. */ - agentThreadsByEntityId?: UserToManyAgentThreadFilter; - /** `agentThreadsByEntityId` exist. */ - agentThreadsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedAgentThreads` relation. */ - ownedAgentThreads?: UserToManyAgentThreadFilter; - /** `ownedAgentThreads` exist. */ - ownedAgentThreadsExist?: boolean; - /** Filter by the object’s `ownedAgentMessages` relation. */ - ownedAgentMessages?: UserToManyAgentMessageFilter; - /** `ownedAgentMessages` exist. */ - ownedAgentMessagesExist?: boolean; - /** Filter by the object’s `ownedAgentTasks` relation. */ - ownedAgentTasks?: UserToManyAgentTaskFilter; - /** `ownedAgentTasks` exist. */ - ownedAgentTasksExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -13967,43 +14473,39 @@ export interface UserFilter { */ unifiedSearch?: string; } -export interface OrgMembershipSettingFilter { +export interface AstMigrationFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; /** 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 `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: AstMigrationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: AstMigrationFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: AstMigrationFilter; } export interface WebauthnSettingFilter { /** Filter by the object’s `id` field. */ @@ -14087,47 +14589,67 @@ export interface WebauthnSettingFilter { /** A related `userField` exists. */ userFieldExists?: boolean; } -export interface AppMembershipFilter { +export interface BillingModuleFilter { /** 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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: 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 `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; + and?: BillingModuleFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; + or?: BillingModuleFilter[]; /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; + /** Filter by the object’s `meterSourcesTable` relation. */ + meterSourcesTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; } export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ @@ -14294,6 +14816,24 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14322,24 +14862,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_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'; export type DatabaseOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15082,6 +15604,20 @@ export type RealtimeModuleOrderBy = | 'INTERVAL_DESC' | 'NOTIFY_CHANNEL_ASC' | 'NOTIFY_CHANNEL_DESC'; +export type ConfigSecretsOrgModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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'; export type SchemaGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15318,6 +15854,8 @@ export type PartitionOrderBy = | 'INTERVAL_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' | 'PREMAKE_ASC' | 'PREMAKE_DESC' | 'NAMING_PATTERN_ASC' @@ -15546,7 +16084,7 @@ export type EmailsModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type EncryptedSecretsModuleOrderBy = +export type ConfigSecretsUserModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -16162,6 +16700,8 @@ export type StorageModuleOrderBy = | 'FILES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'SKIP_DEFAULT_POLICY_TABLES_ASC' @@ -16358,6 +16898,180 @@ export type NotificationsModuleOrderBy = | 'HAS_DIGEST_METADATA_DESC' | 'HAS_SUBSCRIPTIONS_ASC' | 'HAS_SUBSCRIPTIONS_DESC'; +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type ComputeLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type TransferLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type StorageLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type DbUsageModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -16976,10 +17690,12 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AuditLogOrderBy = +export type AuditLogAuthOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' @@ -16993,85 +17709,7 @@ export type AuditLogOrderBy = | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -export type AgentThreadOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'MODE_ASC' - | 'MODE_DESC' - | 'MODEL_ASC' - | 'MODEL_DESC' - | 'SYSTEM_PROMPT_ASC' - | 'SYSTEM_PROMPT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -export type AgentMessageOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'THREAD_ID_ASC' - | 'THREAD_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AUTHOR_ROLE_ASC' - | 'AUTHOR_ROLE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PARTS_ASC' - | 'PARTS_DESC'; -export type AgentTaskOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'THREAD_ID_ASC' - | 'THREAD_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; + | 'SUCCESS_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -17092,8 +17730,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -17106,8 +17744,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -17120,80 +17758,14 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type MembershipTypeOrderBy = +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'NAME_DESC'; export type MigrateFileOrderBy = | 'NATURAL' | 'ID_ASC' @@ -17220,6 +17792,42 @@ export type DevicesModuleOrderBy = | 'USER_DEVICES_TABLE_DESC' | 'DEVICE_SETTINGS_TABLE_ASC' | 'DEVICE_SETTINGS_TABLE_DESC'; +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type NodeTypeRegistryOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17238,7 +17846,7 @@ export type NodeTypeRegistryOrderBy = | 'PARAMETER_SCHEMA_DESC' | 'TAGS_ASC' | 'TAGS_DESC'; -export type AppLimitDefaultOrderBy = +export type AppLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17247,10 +17855,8 @@ export type AppLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = + | 'MAX_DESC'; +export type OrgLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17259,10 +17865,8 @@ export type OrgLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type AppLimitWarningOrderBy = + | 'MAX_DESC'; +export type AppLimitCapOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17270,12 +17874,22 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type UserConnectedAccountOrderBy = | 'NATURAL' | 'ID_ASC' @@ -17294,6 +17908,58 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17302,8 +17968,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -17360,58 +18026,22 @@ export type RateLimitsModuleOrderBy = | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC'; -export type UsageSnapshotOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type RlsSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17436,46 +18066,6 @@ export type RlsSettingOrderBy = | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17502,6 +18092,34 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; +export type AgentChatModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'THREAD_TABLE_ID_ASC' + | 'THREAD_TABLE_ID_DESC' + | 'THREAD_TABLE_NAME_ASC' + | 'THREAD_TABLE_NAME_DESC' + | 'MESSAGE_TABLE_ID_ASC' + | 'MESSAGE_TABLE_ID_DESC' + | 'MESSAGE_TABLE_NAME_ASC' + | 'MESSAGE_TABLE_NAME_DESC' + | 'TASK_TABLE_ID_ASC' + | 'TASK_TABLE_ID_DESC' + | 'TASK_TABLE_NAME_ASC' + | 'TASK_TABLE_NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type RateLimitMetersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17588,6 +18206,58 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; export type DatabaseSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17620,66 +18290,74 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; -export type BillingModuleOrderBy = +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'METERS_TABLE_ID_ASC' - | 'METERS_TABLE_ID_DESC' - | 'METERS_TABLE_NAME_ASC' - | 'METERS_TABLE_NAME_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'LEDGER_TABLE_ID_ASC' - | 'LEDGER_TABLE_ID_DESC' - | 'LEDGER_TABLE_NAME_ASC' - | 'LEDGER_TABLE_NAME_DESC' - | 'BALANCES_TABLE_ID_ASC' - | 'BALANCES_TABLE_ID_DESC' - | 'BALANCES_TABLE_NAME_ASC' - | 'BALANCES_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type AstMigrationOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +export type AppMembershipOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | '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' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17706,38 +18384,34 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -export type OrgMembershipSettingOrderBy = +export type AstMigrationOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | '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' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type WebauthnSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17778,42 +18452,46 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -export type AppMembershipOrderBy = +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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'; + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' + | 'METER_SOURCES_TABLE_ID_ASC' + | 'METER_SOURCES_TABLE_ID_DESC' + | 'METER_SOURCES_TABLE_NAME_ASC' + | 'METER_SOURCES_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17963,18 +18641,44 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionInput { +export interface CreateObjectInput { clientMutationId?: string; - appPermission: { - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; + object: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; }; } -export interface AppPermissionPatch { - name?: string | null; - bitnum?: number | null; +export interface ObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + appPermission: { + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; + }; +} +export interface AppPermissionPatch { + name?: string | null; + bitnum?: number | null; bitstr?: string | null; description?: string | null; } @@ -18011,32 +18715,6 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateDatabaseInput { clientMutationId?: string; database: { @@ -18959,6 +19637,30 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + configSecretsOrgModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface ConfigSecretsOrgModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -19305,6 +20007,7 @@ export interface CreatePartitionInput { partitionKeyId: string; interval?: string; retention?: string; + retentionKeepTable?: boolean; premake?: number; namingPattern?: string; }; @@ -19316,6 +20019,7 @@ export interface PartitionPatch { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; } @@ -19653,27 +20357,27 @@ export interface DeleteEmailsModuleInput { clientMutationId?: string; id: string; } -export interface CreateEncryptedSecretsModuleInput { +export interface CreateConfigSecretsUserModuleInput { clientMutationId?: string; - encryptedSecretsModule: { + configSecretsUserModule: { databaseId: string; schemaId?: string; tableId?: string; tableName?: string; }; } -export interface EncryptedSecretsModulePatch { +export interface ConfigSecretsUserModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; } -export interface UpdateEncryptedSecretsModuleInput { +export interface UpdateConfigSecretsUserModuleInput { clientMutationId?: string; id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; } -export interface DeleteEncryptedSecretsModuleInput { +export interface DeleteConfigSecretsUserModuleInput { clientMutationId?: string; id: string; } @@ -20406,6 +21110,7 @@ export interface CreateStorageModuleInput { bucketsTableName?: string; filesTableName?: string; membershipType?: number; + storageKey?: string; policies?: Record; skipDefaultPolicyTables?: string[]; entityTableId?: string; @@ -20441,6 +21146,7 @@ export interface StorageModulePatch { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -20663,6 +21369,230 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface InferenceLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + computeLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface ComputeLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateComputeLogModuleInput { + clientMutationId?: string; + id: string; + computeLogModulePatch: ComputeLogModulePatch; +} +export interface DeleteComputeLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + transferLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface TransferLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + transferLogModulePatch: TransferLogModulePatch; +} +export interface DeleteTransferLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateStorageLogModuleInput { + clientMutationId?: string; + storageLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface StorageLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateStorageLogModuleInput { + clientMutationId?: string; + id: string; + storageLogModulePatch: StorageLogModulePatch; +} +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + dbUsageModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + }; +} +export interface DbUsageModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; +} +export interface UpdateDbUsageModuleInput { + clientMutationId?: string; + id: string; + dbUsageModulePatch: DbUsageModulePatch; +} +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -21498,9 +22428,9 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAuditLogInput { +export interface CreateAuditLogAuthInput { clientMutationId?: string; - auditLog: { + auditLogAuth: { event: string; actorId?: string; origin?: ConstructiveInternalTypeOrigin; @@ -21509,7 +22439,7 @@ export interface CreateAuditLogInput { success: boolean; }; } -export interface AuditLogPatch { +export interface AuditLogAuthPatch { event?: string | null; actorId?: string | null; origin?: ConstructiveInternalTypeOrigin | null; @@ -21517,119 +22447,15 @@ export interface AuditLogPatch { ipAddress?: string | null; success?: boolean | null; } -export interface UpdateAuditLogInput { +export interface UpdateAuditLogAuthInput { clientMutationId?: string; id: string; - auditLogPatch: AuditLogPatch; + auditLogAuthPatch: AuditLogAuthPatch; } -export interface DeleteAuditLogInput { +export interface DeleteAuditLogAuthInput { clientMutationId?: string; id: string; } -export interface CreateAgentThreadInput { - clientMutationId?: string; - agentThread: { - title?: string; - mode?: string; - model?: string; - systemPrompt?: string; - ownerId?: string; - entityId: string; - status?: string; - }; -} -export interface AgentThreadPatch { - title?: string | null; - mode?: string | null; - model?: string | null; - systemPrompt?: string | null; - ownerId?: string | null; - entityId?: string | null; - status?: string | null; -} -export interface UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - agentThreadPatch: AgentThreadPatch; -} -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: string; -} -export interface CreateAgentMessageInput { - clientMutationId?: string; - agentMessage: { - threadId: string; - entityId: string; - authorRole: string; - ownerId?: string; - parts?: Record; - }; -} -export interface AgentMessagePatch { - threadId?: string | null; - entityId?: string | null; - authorRole?: string | null; - ownerId?: string | null; - parts?: Record | null; -} -export interface UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - agentMessagePatch: AgentMessagePatch; -} -export interface DeleteAgentMessageInput { - clientMutationId?: string; - id: string; -} -export interface CreateAgentTaskInput { - clientMutationId?: string; - agentTask: { - threadId: string; - entityId: string; - description: string; - source?: string; - error?: string; - ownerId?: string; - status?: string; - }; -} -export interface AgentTaskPatch { - threadId?: string | null; - entityId?: string | null; - description?: string | null; - source?: string | null; - error?: string | null; - ownerId?: string | null; - status?: string | null; -} -export interface UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - agentTaskPatch: AgentTaskPatch; -} -export interface DeleteAgentTaskInput { - 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 CreateIdentityProviderInput { clientMutationId?: string; identityProvider: { @@ -21660,14 +22486,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -21684,13 +22510,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -21720,30 +22546,150 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + roleType: { + name: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface RoleTypePatch { + name?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + migrateFile: { + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface MigrateFilePatch { + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface UpdateMigrateFileInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + migrateFilePatch: MigrateFilePatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteMigrateFileInput { + clientMutationId?: string; + id: string; +} +export interface CreateDevicesModuleInput { + clientMutationId?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; + }; +} +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + devicesModulePatch: DevicesModulePatch; +} +export interface DeleteDevicesModuleInput { clientMutationId?: string; id: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} export interface CreateAppLimitCapsDefaultInput { clientMutationId?: string; appLimitCapsDefault: { @@ -21828,110 +22774,32 @@ export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateMigrateFileInput { - clientMutationId?: string; - migrateFile: { - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; - }; -} -export interface MigrateFilePatch { - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} -export interface UpdateMigrateFileInput { - clientMutationId?: string; - id: string; - migrateFilePatch: MigrateFilePatch; -} -export interface DeleteMigrateFileInput { - clientMutationId?: string; - id: string; -} -export interface CreateDevicesModuleInput { +export interface CreateUserConnectedAccountInput { clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; + userConnectedAccount: { + ownerId?: string; + service?: string; + identifier?: string; + details?: Record; + isVerified?: boolean; }; } -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; +export interface UserConnectedAccountPatch { + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; } -export interface UpdateDevicesModuleInput { +export interface UpdateUserConnectedAccountInput { clientMutationId?: string; id: string; - devicesModulePatch: DevicesModulePatch; + userConnectedAccountPatch: UserConnectedAccountPatch; } -export interface DeleteDevicesModuleInput { +export interface DeleteUserConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - nodeTypeRegistry: { - name: string; - slug: string; - category: string; - displayName?: string; - description?: string; - parameterSchema?: Record; - tags?: string[]; - }; -} -export interface NodeTypeRegistryPatch { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -export interface UpdateNodeTypeRegistryInput { - clientMutationId?: string; - name: string; - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -export interface DeleteNodeTypeRegistryInput { - clientMutationId?: string; - name: string; -} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -21976,6 +22844,30 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; + }; +} +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitWarningInput { clientMutationId?: string; appLimitWarning: { @@ -22000,37 +22892,11 @@ export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - ownerId?: string; - service?: string; - identifier?: string; - details?: Record; - isVerified?: boolean; - }; -} -export interface UserConnectedAccountPatch { - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; -} -export interface UpdateUserConnectedAccountInput { - clientMutationId?: string; - id: string; - userConnectedAccountPatch: UserConnectedAccountPatch; -} -export interface DeleteUserConnectedAccountInput { - clientMutationId?: string; - id: string; -} export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -22041,7 +22907,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -22122,79 +22988,31 @@ export interface DeleteRateLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateUsageSnapshotInput { - clientMutationId?: string; - usageSnapshot: { - databaseId: string; - metricName: string; - metricValue?: string; - dimensions?: Record; - capturedAt?: string; - }; -} -export interface UsageSnapshotPatch { - databaseId?: string | null; - metricName?: string | null; - metricValue?: string | null; - dimensions?: Record | null; - capturedAt?: string | null; -} -export interface UpdateUsageSnapshotInput { - clientMutationId?: string; - id: string; - usageSnapshotPatch: UsageSnapshotPatch; -} -export interface DeleteUsageSnapshotInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateRlsSettingInput { clientMutationId?: string; @@ -22230,74 +23048,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; rlsModule: { @@ -22334,6 +23084,44 @@ export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } +export interface CreateAgentChatModuleInput { + clientMutationId?: string; + agentChatModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + apiId?: string; + threadTableId?: string; + threadTableName?: string; + messageTableId?: string; + messageTableName?: string; + taskTableId?: string; + taskTableName?: string; + prefix?: string; + }; +} +export interface AgentChatModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + apiId?: string | null; + threadTableId?: string | null; + threadTableName?: string | null; + messageTableId?: string | null; + messageTableName?: string | null; + taskTableId?: string | null; + taskTableName?: string | null; + prefix?: string | null; +} +export interface UpdateAgentChatModuleInput { + clientMutationId?: string; + id: string; + agentChatModulePatch: AgentChatModulePatch; +} +export interface DeleteAgentChatModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; rateLimitMetersModule: { @@ -22450,6 +23238,74 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseSettingInput { clientMutationId?: string; databaseSetting: { @@ -22492,45 +23348,108 @@ export interface DeleteDatabaseSettingInput { clientMutationId?: string; id: string; } -export interface CreateBillingModuleInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - billingModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - recordUsageFunction?: string; - prefix?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface BillingModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateBillingModuleInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - billingModulePatch: BillingModulePatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteBillingModuleInput { +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppMembershipInput { + clientMutationId?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; + }; +} +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; +} +export interface UpdateAppMembershipInput { + clientMutationId?: string; + id: string; + appMembershipPatch: AppMembershipPatch; +} +export interface DeleteAppMembershipInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + type?: number | null; + profilePictureUpload?: File | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { clientMutationId?: string; id: string; } @@ -22572,69 +23491,6 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - type?: number | null; - profilePictureUpload?: File | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} export interface CreateWebauthnSettingInput { clientMutationId?: string; webauthnSetting: { @@ -22685,45 +23541,53 @@ export interface DeleteWebauthnSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipInput { +export interface CreateBillingModuleInput { clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + recordUsageFunction?: string; + prefix?: string; }; } -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; } -export interface UpdateAppMembershipInput { +export interface UpdateBillingModuleInput { clientMutationId?: string; id: string; - appMembershipPatch: AppMembershipPatch; + billingModulePatch: BillingModulePatch; } -export interface DeleteAppMembershipInput { +export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } @@ -22877,7 +23741,7 @@ export const connectionFieldsMap = { defaultIdsModules: 'DefaultIdsModule', denormalizedTableFields: 'DenormalizedTableField', emailsModules: 'EmailsModule', - encryptedSecretsModules: 'EncryptedSecretsModule', + configSecretsUserModules: 'ConfigSecretsUserModule', invitesModules: 'InvitesModule', eventsModules: 'EventsModule', limitsModules: 'LimitsModule', @@ -22902,6 +23766,12 @@ export const connectionFieldsMap = { identityProvidersModules: 'IdentityProvidersModule', notificationsModules: 'NotificationsModule', realtimeModules: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', + inferenceLogModules: 'InferenceLogModule', + computeLogModules: 'ComputeLogModule', + transferLogModules: 'TransferLogModule', + storageLogModules: 'StorageLogModule', + dbUsageModules: 'DbUsageModule', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { @@ -22918,6 +23788,7 @@ export const connectionFieldsMap = { realtimeModulesByPrivateSchemaId: 'RealtimeModule', realtimeModules: 'RealtimeModule', realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Table: { checkConstraints: 'CheckConstraint', @@ -22945,6 +23816,7 @@ export const connectionFieldsMap = { realtimeModulesByChangeLogTableId: 'RealtimeModule', realtimeModulesByListenerNodeTableId: 'RealtimeModule', realtimeModulesBySourceRegistryTableId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Field: { spatialRelations: 'SpatialRelation', @@ -22974,14 +23846,6 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, - AgentThread: { - agentMessagesByThreadId: 'AgentMessage', - agentTasksByThreadId: 'AgentTask', - }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -22989,6 +23853,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, User: { ownedDatabases: 'Database', appAdminGrantsByActorId: 'AppAdminGrant', @@ -23041,11 +23909,7 @@ export const connectionFieldsMap = { orgClaimedInvitesByEntityId: 'OrgClaimedInvite', orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', orgClaimedInvitesBySenderId: 'OrgClaimedInvite', - auditLogsByActorId: 'AuditLog', - agentThreadsByEntityId: 'AgentThread', - ownedAgentThreads: 'AgentThread', - ownedAgentMessages: 'AgentMessage', - ownedAgentTasks: 'AgentTask', + auditLogAuthsByActorId: 'AuditLogAuth', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -23116,12 +23980,12 @@ export interface VerifyEmailInput { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface ConstructBlueprintInput { @@ -23142,7 +24006,7 @@ export interface ResetPasswordInput { } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } @@ -23165,6 +24029,11 @@ export interface ProvisionSpatialRelationInput { pOperator?: string; pParamName?: string; } +export interface SignInCrossOriginInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} export interface BootstrapUserInput { clientMutationId?: string; targetDatabaseId?: string; @@ -23175,6 +24044,24 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -23205,14 +24092,14 @@ export interface ProvisionIndexInput { } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23228,7 +24115,7 @@ export interface ProvisionDatabaseWithUserInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23237,7 +24124,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23246,7 +24133,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23286,11 +24173,6 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} export interface CreateUserDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -23312,23 +24194,6 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -23336,15 +24201,6 @@ export interface RequestCrossOriginTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface ProvisionTableInput { clientMutationId?: string; databaseId?: string; @@ -23361,6 +24217,14 @@ export interface ProvisionTableInput { uniqueConstraints?: Record; description?: string; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -23739,14 +24603,14 @@ export interface DatabaseToManyEmailsModuleFilter { /** Filters to entities where no related entity matches. */ none?: EmailsModuleFilter; } -/** A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEncryptedSecretsModuleFilter { +/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsUserModuleFilter { /** Filters to entities where at least one related entity matches. */ - some?: EncryptedSecretsModuleFilter; + some?: ConfigSecretsUserModuleFilter; /** Filters to entities where every related entity matches. */ - every?: EncryptedSecretsModuleFilter; + every?: ConfigSecretsUserModuleFilter; /** Filters to entities where no related entity matches. */ - none?: EncryptedSecretsModuleFilter; + none?: ConfigSecretsUserModuleFilter; } /** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyInvitesModuleFilter { @@ -23964,6 +24828,60 @@ export interface DatabaseToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} +/** A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyInferenceLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: InferenceLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: InferenceLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: InferenceLogModuleFilter; +} +/** A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyComputeLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ComputeLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ComputeLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ComputeLogModuleFilter; +} +/** A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTransferLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TransferLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: TransferLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: TransferLogModuleFilter; +} +/** A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyStorageLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: StorageLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: StorageLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: StorageLogModuleFilter; +} +/** A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDbUsageModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DbUsageModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: DbUsageModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: DbUsageModuleFilter; +} /** 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. */ @@ -24088,6 +25006,15 @@ export interface SchemaToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyCheckConstraintFilter { /** Filters to entities where at least one related entity matches. */ @@ -24259,6 +25186,15 @@ export interface TableToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManySpatialRelationFilter { /** Filters to entities where at least one related entity matches. */ @@ -24895,42 +25831,6 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentMessageFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; -} -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentTaskFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUploadFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -24993,6 +25893,24 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} /** 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). */ @@ -25317,41 +26235,14 @@ export interface UserToManyOrgClaimedInviteFilter { /** Filters to entities where no related entity matches. */ none?: OrgClaimedInviteFilter; } -/** 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 many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentThreadFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentMessageFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; -} -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentTaskFilter { +/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogAuthFilter { /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; + some?: AuditLogAuthFilter; /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; + every?: AuditLogAuthFilter; /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; + none?: AuditLogAuthFilter; } /** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ export interface TrgmSearchInput { @@ -25469,6 +26360,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ */ export interface TableFilter { @@ -25636,6 +26531,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { @@ -26494,6 +27393,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -27056,8 +27957,8 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -/** A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EncryptedSecretsModuleFilter { +/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -27069,11 +27970,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -28059,6 +28960,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -28469,6 +29372,284 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsOrgModuleFilter { + /** 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** 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 `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ComputeLogModuleFilter { + /** 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 `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; + /** Filter by the object’s `computeLogTable` relation. */ + computeLogTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TransferLogModuleFilter { + /** 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 `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `transferLogTable` relation. */ + transferLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageLogModuleFilter { + /** 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 `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `storageLogTable` relation. */ + storageLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbUsageModuleFilter { + /** 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 `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `queryStatsDailyTable` relation. */ + queryStatsDailyTable?: TableFilter; + /** Filter by the object’s `queryStatsLogTable` relation. */ + queryStatsLogTable?: TableFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `tableStatsDailyTable` relation. */ + tableStatsDailyTable?: TableFilter; + /** Filter by the object’s `tableStatsLogTable` relation. */ + tableStatsLogTable?: TableFilter; +} /** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ @@ -28592,108 +29773,6 @@ export interface BlueprintTemplateFilter { /** `blueprintsByTemplateId` exist. */ blueprintsByTemplateIdExist?: boolean; } -/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentMessageFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Negates the expression. */ - not?: AgentMessageFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentTaskFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Negates the expression. */ - not?: AgentTaskFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -28721,6 +29800,29 @@ export interface AppLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -28754,6 +29856,23 @@ export interface OrgLimitCreditFilter { /** A related `entity` exists. */ entityExists?: boolean; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Filter by the object’s `id` field. */ @@ -28962,10 +30081,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -29094,6 +30213,34 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModules` relation. */ + inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; + /** `inferenceLogModules` exist. */ + inferenceLogModulesExist?: boolean; + /** Filter by the object’s `computeLogModules` relation. */ + computeLogModules?: DatabaseToManyComputeLogModuleFilter; + /** `computeLogModules` exist. */ + computeLogModulesExist?: boolean; + /** Filter by the object’s `transferLogModules` relation. */ + transferLogModules?: DatabaseToManyTransferLogModuleFilter; + /** `transferLogModules` exist. */ + transferLogModulesExist?: boolean; + /** Filter by the object’s `storageLogModules` relation. */ + storageLogModules?: DatabaseToManyStorageLogModuleFilter; + /** `storageLogModules` exist. */ + storageLogModulesExist?: boolean; + /** Filter by the object’s `dbUsageModules` relation. */ + dbUsageModules?: DatabaseToManyDbUsageModuleFilter; + /** `dbUsageModules` exist. */ + dbUsageModulesExist?: boolean; + /** Filter by the object’s `agentChatModule` relation. */ + agentChatModule?: AgentChatModuleFilter; + /** A related `agentChatModule` exists. */ + agentChatModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -29869,8 +31016,10 @@ export interface OrgClaimedInviteFilter { /** A related `sender` exists. */ senderExists?: boolean; } -/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogFilter { +/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -29885,60 +31034,17 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ actorExists?: boolean; } -/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadFilter { - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Negates the expression. */ - not?: AgentThreadFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentTasksByThreadId` relation. */ - agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; - /** `agentTasksByThreadId` exist. */ - agentTasksByThreadIdExist?: boolean; -} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -30521,26 +31627,10 @@ export interface UserFilter { orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; /** `orgClaimedInvitesBySenderId` exist. */ orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; - /** Filter by the object’s `agentThreadsByEntityId` relation. */ - agentThreadsByEntityId?: UserToManyAgentThreadFilter; - /** `agentThreadsByEntityId` exist. */ - agentThreadsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedAgentThreads` relation. */ - ownedAgentThreads?: UserToManyAgentThreadFilter; - /** `ownedAgentThreads` exist. */ - ownedAgentThreadsExist?: boolean; - /** Filter by the object’s `ownedAgentMessages` relation. */ - ownedAgentMessages?: UserToManyAgentMessageFilter; - /** `ownedAgentMessages` exist. */ - ownedAgentMessagesExist?: boolean; - /** Filter by the object’s `ownedAgentTasks` relation. */ - ownedAgentTasks?: UserToManyAgentTaskFilter; - /** `ownedAgentTasks` exist. */ - ownedAgentTasksExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -30553,6 +31643,31 @@ export interface UserFilter { */ unifiedSearch?: 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?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -30580,31 +31695,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** 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?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** 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. */ @@ -31115,6 +32205,14 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -31131,6 +32229,10 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; + /** Filter by the object’s `meterSourcesTable` relation. */ + meterSourcesTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -31266,6 +32368,53 @@ export interface RateLimitMetersModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against `AgentChatModule` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentChatModuleFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `threadTableId` field. */ + threadTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableId` field. */ + messageTableId?: UUIDFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableId` field. */ + taskTableId?: UUIDFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentChatModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentChatModuleFilter[]; + /** Negates the expression. */ + not?: AgentChatModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `messageTable` relation. */ + messageTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `taskTable` relation. */ + taskTable?: TableFilter; + /** Filter by the object’s `threadTable` relation. */ + threadTable?: TableFilter; +} /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ export interface BitStringFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -31465,8 +32614,27 @@ export interface OrgMembershipSettingFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } -/** A connection to a list of `AppPermission` values. */ +/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; edges: AppPermissionEdge[]; @@ -31504,25 +32672,6 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface SendAccountDeletionEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -31707,6 +32856,16 @@ export type ProvisionSpatialRelationPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SignInCrossOriginPayload { + clientMutationId?: string | null; + result?: SignInCrossOriginRecord | null; +} +export type SignInCrossOriginPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInCrossOriginRecordSelect; + }; +}; export interface BootstrapUserPayload { clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; @@ -31717,6 +32876,26 @@ export type BootstrapUserPayloadSelect = { select: BootstrapUserRecordSelect; }; }; +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export type SignUpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpRecordSelect; + }; +}; +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export type SignInPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInRecordSelect; + }; +}; export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -31817,16 +32996,6 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export type SignInCrossOriginPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInCrossOriginRecordSelect; - }; -}; export interface CreateUserDatabasePayload { clientMutationId?: string | null; result?: string | null; @@ -31855,57 +33024,37 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; -export interface SendVerificationEmailPayload { +export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; - result?: boolean | null; + result?: string | null; } -export type SendVerificationEmailPayloadSelect = { +export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; -export interface SignUpPayload { +export interface ProvisionTablePayload { clientMutationId?: string | null; - result?: SignUpRecord | null; + result?: ProvisionTableRecord[] | null; } -export type SignUpPayloadSelect = { +export type ProvisionTablePayloadSelect = { clientMutationId?: boolean; result?: { - select: SignUpRecordSelect; + select: ProvisionTableRecordSelect; }; }; -export interface RequestCrossOriginTokenPayload { +export interface SendVerificationEmailPayload { clientMutationId?: string | null; - result?: string | null; + result?: boolean | null; } -export type RequestCrossOriginTokenPayloadSelect = { +export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export type SignInPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInRecordSelect; - }; -}; -export interface ProvisionTablePayload { +export interface ForgotPasswordPayload { clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; } -export type ProvisionTablePayloadSelect = { +export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -31929,6 +33078,51 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -32019,51 +33213,6 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateDatabasePayload { clientMutationId?: string | null; /** The `Database` that was created by this mutation. */ @@ -33144,6 +34293,51 @@ export type DeleteRealtimeModulePayloadSelect = { select: RealtimeModuleEdgeSelect; }; }; +export interface CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type CreateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type UpdateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type DeleteConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -34224,49 +35418,49 @@ export type DeleteEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; -export interface CreateEncryptedSecretsModulePayload { +export interface CreateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was created by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type CreateEncryptedSecretsModulePayloadSelect = { +export type CreateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface UpdateEncryptedSecretsModulePayload { +export interface UpdateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was updated by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type UpdateEncryptedSecretsModulePayloadSelect = { +export type UpdateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface DeleteEncryptedSecretsModulePayload { +export interface DeleteConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was deleted by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type DeleteEncryptedSecretsModulePayloadSelect = { +export type DeleteConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; export interface CreateInvitesModulePayload { @@ -35169,6 +36363,231 @@ export type DeleteNotificationsModulePayloadSelect = { select: NotificationsModuleEdgeSelect; }; }; +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type CreateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type UpdateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type DeleteInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface CreateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was created by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type CreateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface UpdateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was updated by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type UpdateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface DeleteComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was deleted by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type DeleteComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface CreateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was created by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type CreateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface UpdateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was updated by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type UpdateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface DeleteTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was deleted by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type DeleteTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface CreateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was created by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type CreateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface UpdateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was updated by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type UpdateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface DeleteStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was deleted by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type DeleteStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type CreateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type UpdateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type DeleteDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was created by this mutation. */ @@ -36474,229 +37893,49 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAuditLogPayload { +export interface CreateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was created by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type CreateAuditLogPayloadSelect = { +export type CreateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface UpdateAuditLogPayload { +export interface UpdateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was updated by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type UpdateAuditLogPayloadSelect = { +export type UpdateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface DeleteAuditLogPayload { +export interface DeleteAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was deleted by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type DeleteAuditLogPayloadSelect = { +export type DeleteAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface CreateAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was created by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export type CreateAgentThreadPayloadSelect = { - clientMutationId?: boolean; - agentThread?: { - select: AgentThreadSelect; - }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; - }; -}; -export interface UpdateAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was updated by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export type UpdateAgentThreadPayloadSelect = { - clientMutationId?: boolean; - agentThread?: { - select: AgentThreadSelect; - }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; - }; -}; -export interface DeleteAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was deleted by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export type DeleteAgentThreadPayloadSelect = { - clientMutationId?: boolean; - agentThread?: { - select: AgentThreadSelect; - }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; - }; -}; -export interface CreateAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export type CreateAgentMessagePayloadSelect = { - clientMutationId?: boolean; - agentMessage?: { - select: AgentMessageSelect; - }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; - }; -}; -export interface UpdateAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was updated by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export type UpdateAgentMessagePayloadSelect = { - clientMutationId?: boolean; - agentMessage?: { - select: AgentMessageSelect; - }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; - }; -}; -export interface DeleteAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was deleted by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export type DeleteAgentMessagePayloadSelect = { - clientMutationId?: boolean; - agentMessage?: { - select: AgentMessageSelect; - }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; - }; -}; -export interface CreateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was created by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export type CreateAgentTaskPayloadSelect = { - clientMutationId?: boolean; - agentTask?: { - select: AgentTaskSelect; - }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; - }; -}; -export interface UpdateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was updated by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export type UpdateAgentTaskPayloadSelect = { - clientMutationId?: boolean; - agentTask?: { - select: AgentTaskSelect; - }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; - }; -}; -export interface DeleteAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was deleted by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export type DeleteAgentTaskPayloadSelect = { - clientMutationId?: boolean; - agentTask?: { - select: AgentTaskSelect; - }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; - }; -}; -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; + auditLogAuth?: { + select: AuditLogAuthSelect; + }; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; export interface CreateIdentityProviderPayload { @@ -36845,49 +38084,240 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; + }; +}; +export interface CreateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type CreateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface UpdateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type UpdateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface DeleteDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type DeleteDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + 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 CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -37070,150 +38500,15 @@ export type DeleteOrgLimitCapPayloadSelect = { select: OrgLimitCapEdgeSelect; }; }; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export type CreateMigrateFilePayloadSelect = { - clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; - }; -}; -export interface CreateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type CreateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface UpdateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type UpdateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface DeleteDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type DeleteDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was created by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type CreateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was updated by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type UpdateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface DeleteNodeTypeRegistryPayload { +export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was deleted by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; } -export type DeleteNodeTypeRegistryPayloadSelect = { +export type CreateUserConnectedAccountPayloadSelect = { clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; + userConnectedAccount?: { + select: UserConnectedAccountSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -37306,6 +38601,51 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -37351,17 +38691,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export type CreateUserConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; - }; -}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -37452,184 +38781,94 @@ export type DeletePubkeySettingPayloadSelect = { select: PubkeySettingEdgeSelect; }; }; -export interface CreateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type CreateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type UpdateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type DeleteRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface CreateUsageSnapshotPayload { - clientMutationId?: string | null; - /** The `UsageSnapshot` that was created by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; -} -export type CreateUsageSnapshotPayloadSelect = { - clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; - }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; - }; -}; -export interface UpdateUsageSnapshotPayload { - clientMutationId?: string | null; - /** The `UsageSnapshot` that was updated by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; -} -export type UpdateUsageSnapshotPayloadSelect = { - clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; - }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; - }; -}; -export interface DeleteUsageSnapshotPayload { - clientMutationId?: string | null; - /** The `UsageSnapshot` that was deleted by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; -} -export type DeleteUsageSnapshotPayloadSelect = { - clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; - }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; - }; -}; -export interface CreateAppMembershipDefaultPayload { +export interface CreateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteRateLimitsModulePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateRlsSettingPayload { @@ -37677,28 +38916,6 @@ export type DeleteRlsSettingPayloadSelect = { select: RlsSettingEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -37744,6 +38961,51 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; +export interface CreateAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was created by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} +export type CreateAgentChatModulePayloadSelect = { + clientMutationId?: boolean; + agentChatModule?: { + select: AgentChatModuleSelect; + }; + agentChatModuleEdge?: { + select: AgentChatModuleEdgeSelect; + }; +}; +export interface UpdateAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was updated by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} +export type UpdateAgentChatModulePayloadSelect = { + clientMutationId?: boolean; + agentChatModule?: { + select: AgentChatModuleSelect; + }; + agentChatModuleEdge?: { + select: AgentChatModuleEdgeSelect; + }; +}; +export interface DeleteAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was deleted by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} +export type DeleteAgentChatModulePayloadSelect = { + clientMutationId?: boolean; + agentChatModule?: { + select: AgentChatModuleSelect; + }; + agentChatModuleEdge?: { + select: AgentChatModuleEdgeSelect; + }; +}; export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; /** The `RateLimitMetersModule` that was created by this mutation. */ @@ -37845,6 +39107,96 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type UpdateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type DeleteAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; export interface CreateDatabaseSettingPayload { clientMutationId?: string | null; /** The `DatabaseSetting` that was created by this mutation. */ @@ -37890,60 +39242,94 @@ export type DeleteDatabaseSettingPayloadSelect = { select: DatabaseSettingEdgeSelect; }; }; -export interface CreateBillingModulePayload { +export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type CreateBillingModulePayloadSelect = { +export type CreateOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface UpdateBillingModulePayload { +export interface UpdateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type UpdateBillingModulePayloadSelect = { +export type UpdateOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface DeleteBillingModulePayload { +export interface DeleteOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type DeleteBillingModulePayloadSelect = { +export type DeleteOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface CreateAstMigrationPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type CreateAstMigrationPayloadSelect = { +export type CreateAppMembershipPayloadSelect = { clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; export interface CreateUserPayload { @@ -37991,49 +39377,15 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type CreateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type UpdateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface DeleteOrgMembershipSettingPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type CreateAstMigrationPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + astMigration?: { + select: AstMigrationSelect; }; }; export interface CreateWebauthnSettingPayload { @@ -38081,49 +39433,49 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -export interface CreateAppMembershipPayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type CreateAppMembershipPayloadSelect = { +export type CreateBillingModulePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + billingModule?: { + select: BillingModuleSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface UpdateAppMembershipPayload { +export interface UpdateBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type UpdateAppMembershipPayloadSelect = { +export type UpdateBillingModulePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + billingModule?: { + select: BillingModuleSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface DeleteAppMembershipPayload { +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type DeleteAppMembershipPayloadSelect = { +export type DeleteBillingModulePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + billingModule?: { + select: BillingModuleSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; export interface CreateBillingProviderModulePayload { @@ -38216,16 +39568,16 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `Object` edge in the connection. */ +export interface ObjectEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; } -export type AppPermissionEdgeSelect = { +export type ObjectEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionSelect; + select: ObjectSelect; }; }; /** Information about pagination in a connection. */ @@ -38245,6 +39597,18 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -38257,17 +39621,21 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; +export interface SignInCrossOriginRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; } -export type ObjectEdgeSelect = { - cursor?: boolean; - node?: { - select: ObjectSelect; - }; +export type SignInCrossOriginRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; }; export interface BootstrapUserRecord { outUserId?: string | null; @@ -38289,62 +39657,6 @@ export type BootstrapUserRecordSelect = { outIsSudo?: boolean; outApiKey?: boolean; }; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; -}; -export interface ProvisionRelationRecord { - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; -} -export type ProvisionRelationRecordSelect = { - outFieldId?: boolean; - outJunctionTableId?: boolean; - outSourceFieldId?: boolean; - outTargetFieldId?: boolean; -}; -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignInCrossOriginRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface ExtendTokenExpiresRecord { - id?: string | null; - sessionId?: string | null; - expiresAt?: string | null; -} -export type ExtendTokenExpiresRecordSelect = { - id?: boolean; - sessionId?: boolean; - expiresAt?: boolean; -}; -export interface CreateApiKeyRecord { - apiKey?: string | null; - keyId?: string | null; - expiresAt?: string | null; -} -export type CreateApiKeyRecordSelect = { - apiKey?: boolean; - keyId?: boolean; - expiresAt?: boolean; -}; export interface SignUpRecord { id?: string | null; userId?: string | null; @@ -38381,6 +39693,46 @@ export type SignInRecordSelect = { mfaRequired?: boolean; mfaChallengeToken?: boolean; }; +export interface ProvisionDatabaseWithUserRecord { + outDatabaseId?: string | null; + outApiKey?: string | null; +} +export type ProvisionDatabaseWithUserRecordSelect = { + outDatabaseId?: boolean; + outApiKey?: boolean; +}; +export interface ProvisionRelationRecord { + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export type ProvisionRelationRecordSelect = { + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; +}; +export interface ExtendTokenExpiresRecord { + id?: string | null; + sessionId?: string | null; + expiresAt?: string | null; +} +export type ExtendTokenExpiresRecordSelect = { + id?: boolean; + sessionId?: boolean; + expiresAt?: boolean; +}; +export interface CreateApiKeyRecord { + apiKey?: string | null; + keyId?: string | null; + expiresAt?: string | null; +} +export type CreateApiKeyRecordSelect = { + apiKey?: boolean; + keyId?: boolean; + expiresAt?: boolean; +}; export interface ProvisionTableRecord { outTableId?: string | null; outFields?: string[] | null; @@ -38677,6 +40029,18 @@ export type RealtimeModuleEdgeSelect = { select: RealtimeModuleSelect; }; }; +/** A `ConfigSecretsOrgModule` edge in the connection. */ +export interface ConfigSecretsOrgModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsOrgModule` at the end of the edge. */ + node?: ConfigSecretsOrgModule | null; +} +export type ConfigSecretsOrgModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsOrgModuleSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -38965,16 +40329,16 @@ export type EmailsModuleEdgeSelect = { select: EmailsModuleSelect; }; }; -/** A `EncryptedSecretsModule` edge in the connection. */ -export interface EncryptedSecretsModuleEdge { +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { cursor?: string | null; - /** The `EncryptedSecretsModule` at the end of the edge. */ - node?: EncryptedSecretsModule | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; } -export type EncryptedSecretsModuleEdgeSelect = { +export type ConfigSecretsUserModuleEdgeSelect = { cursor?: boolean; node?: { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsUserModuleSelect; }; }; /** A `InvitesModule` edge in the connection. */ @@ -39217,6 +40581,66 @@ export type NotificationsModuleEdgeSelect = { select: NotificationsModuleSelect; }; }; +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +export type InferenceLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InferenceLogModuleSelect; + }; +}; +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { + cursor?: string | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; +} +export type ComputeLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ComputeLogModuleSelect; + }; +}; +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { + cursor?: string | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; +} +export type TransferLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TransferLogModuleSelect; + }; +}; +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { + cursor?: string | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; +} +export type StorageLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: StorageLogModuleSelect; + }; +}; +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; +} +export type DbUsageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DbUsageModuleSelect; + }; +}; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -39565,52 +40989,52 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { +/** A `AuditLogAuth` edge in the connection. */ +export interface AuditLogAuthEdge { cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; + /** The `AuditLogAuth` at the end of the edge. */ + node?: AuditLogAuth | null; } -export type AuditLogEdgeSelect = { +export type AuditLogAuthEdgeSelect = { cursor?: boolean; node?: { - select: AuditLogSelect; + select: AuditLogAuthSelect; }; }; -/** A `AgentThread` edge in the connection. */ -export interface AgentThreadEdge { +/** A `Ref` edge in the connection. */ +export interface RefEdge { cursor?: string | null; - /** The `AgentThread` at the end of the edge. */ - node?: AgentThread | null; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; } -export type AgentThreadEdgeSelect = { +export type RefEdgeSelect = { cursor?: boolean; node?: { - select: AgentThreadSelect; + select: RefSelect; }; }; -/** A `AgentMessage` edge in the connection. */ -export interface AgentMessageEdge { +/** A `Store` edge in the connection. */ +export interface StoreEdge { cursor?: string | null; - /** The `AgentMessage` at the end of the edge. */ - node?: AgentMessage | null; + /** The `Store` at the end of the edge. */ + node?: Store | null; } -export type AgentMessageEdgeSelect = { +export type StoreEdgeSelect = { cursor?: boolean; node?: { - select: AgentMessageSelect; + select: StoreSelect; }; }; -/** A `AgentTask` edge in the connection. */ -export interface AgentTaskEdge { +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { cursor?: string | null; - /** The `AgentTask` at the end of the edge. */ - node?: AgentTask | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; } -export type AgentTaskEdgeSelect = { +export type AppPermissionDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AgentTaskSelect; + select: AppPermissionDefaultSelect; }; }; /** A `RoleType` edge in the connection. */ @@ -39625,52 +41049,52 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; -/** A `Ref` edge in the connection. */ -export interface RefEdge { +/** A `DevicesModule` edge in the connection. */ +export interface DevicesModuleEdge { cursor?: string | null; - /** The `Ref` at the end of the edge. */ - node?: Ref | null; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; } -export type RefEdgeSelect = { +export type DevicesModuleEdgeSelect = { cursor?: boolean; node?: { - select: RefSelect; + select: DevicesModuleSelect; }; }; -/** A `Store` edge in the connection. */ -export interface StoreEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `Store` at the end of the edge. */ - node?: Store | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type StoreEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: StoreSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type AppPermissionDefaultEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionDefaultSelect; + select: OrgMembershipDefaultSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type NodeTypeRegistryEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: NodeTypeRegistrySelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -39721,42 +41145,6 @@ export type OrgLimitCapEdgeSelect = { select: OrgLimitCapSelect; }; }; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { - cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; -} -export type DevicesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DevicesModuleSelect; - }; -}; -/** A `NodeTypeRegistry` edge in the connection. */ -export interface NodeTypeRegistryEdge { - cursor?: string | null; - /** The `NodeTypeRegistry` at the end of the edge. */ - node?: NodeTypeRegistry | null; -} -export type NodeTypeRegistryEdgeSelect = { - cursor?: boolean; - node?: { - select: NodeTypeRegistrySelect; - }; -}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -39781,6 +41169,18 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +export type AppLimitCreditCodeEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeSelect; + }; +}; /** A `AppLimitWarning` edge in the connection. */ export interface AppLimitWarningEdge { cursor?: string | null; @@ -39829,40 +41229,16 @@ export type RateLimitsModuleEdgeSelect = { select: RateLimitsModuleSelect; }; }; -/** A `UsageSnapshot` edge in the connection. */ -export interface UsageSnapshotEdge { - cursor?: string | null; - /** The `UsageSnapshot` at the end of the edge. */ - node?: UsageSnapshot | null; -} -export type UsageSnapshotEdgeSelect = { - cursor?: boolean; - node?: { - select: UsageSnapshotSelect; - }; -}; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `RlsSetting` edge in the connection. */ @@ -39889,6 +41265,18 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; +/** A `AgentChatModule` edge in the connection. */ +export interface AgentChatModuleEdge { + cursor?: string | null; + /** The `AgentChatModule` at the end of the edge. */ + node?: AgentChatModule | null; +} +export type AgentChatModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentChatModuleSelect; + }; +}; /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -39913,40 +41301,40 @@ export type PlansModuleEdgeSelect = { select: PlansModuleSelect; }; }; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type DatabaseSettingEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: DatabaseSettingSelect; + select: AppLimitEventSelect; }; }; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; } -export type BillingModuleEdgeSelect = { +export type OrgLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: BillingModuleSelect; + select: OrgLimitEventSelect; }; }; -/** A `User` edge in the connection. */ -export interface UserEdge { +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; } -export type UserEdgeSelect = { +export type DatabaseSettingEdgeSelect = { cursor?: boolean; node?: { - select: UserSelect; + select: DatabaseSettingSelect; }; }; /** A `OrgMembershipSetting` edge in the connection. */ @@ -39961,6 +41349,30 @@ export type OrgMembershipSettingEdgeSelect = { select: OrgMembershipSettingSelect; }; }; +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { + cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; +/** A `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** The `User` at the end of the edge. */ + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; /** A `WebauthnSetting` edge in the connection. */ export interface WebauthnSettingEdge { cursor?: string | null; @@ -39973,16 +41385,16 @@ export type WebauthnSettingEdgeSelect = { select: WebauthnSettingSelect; }; }; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type AppMembershipEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: BillingModuleSelect; }; }; /** A `BillingProviderModule` edge in the connection. */ diff --git a/sdk/constructive-cli/src/public/orm/models/agentTask.ts b/sdk/constructive-cli/src/public/orm/models/agentChatModule.ts similarity index 50% rename from sdk/constructive-cli/src/public/orm/models/agentTask.ts rename to sdk/constructive-cli/src/public/orm/models/agentChatModule.ts index 3bbc609f16..a531d98ff6 100644 --- a/sdk/constructive-cli/src/public/orm/models/agentTask.ts +++ b/sdk/constructive-cli/src/public/orm/models/agentChatModule.ts @@ -1,5 +1,5 @@ /** - * AgentTask model for ORM client + * AgentChatModule 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 { - AgentTask, - AgentTaskWithRelations, - AgentTaskSelect, - AgentTaskFilter, - AgentTaskOrderBy, - CreateAgentTaskInput, - UpdateAgentTaskInput, - AgentTaskPatch, + AgentChatModule, + AgentChatModuleWithRelations, + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy, + CreateAgentChatModuleInput, + UpdateAgentChatModuleInput, + AgentChatModulePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class AgentTaskModel { +export class AgentChatModuleModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentTasks: ConnectionResult>; + agentChatModules: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'AgentTask', - 'agentTasks', + 'AgentChatModule', + 'agentChatModules', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class AgentTaskModel { before: args?.before, offset: args?.offset, }, - 'AgentTaskFilter', - 'AgentTaskOrderBy', + 'AgentChatModuleFilter', + 'AgentChatModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentTask', - fieldName: 'agentTasks', + operationName: 'AgentChatModule', + fieldName: 'agentChatModules', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentTask: InferSelectResult | null; + agentChatModule: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'AgentTask', - 'agentTasks', + 'AgentChatModule', + 'agentChatModules', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'AgentTaskFilter', - 'AgentTaskOrderBy', + 'AgentChatModuleFilter', + 'AgentChatModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentTask', - fieldName: 'agentTask', + operationName: 'AgentChatModule', + fieldName: 'agentChatModule', document, variables, transform: (data: { - agentTasks?: { - nodes?: InferSelectResult[]; + agentChatModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentTask: data.agentTasks?.nodes?.[0] ?? null, + agentChatModule: data.agentChatModules?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentTask: InferSelectResult | null; + agentChatModule: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'AgentTask', - 'agentTasks', + 'AgentChatModule', + 'agentChatModules', args.select, { where: { @@ -124,90 +124,90 @@ export class AgentTaskModel { }, first: 1, }, - 'AgentTaskFilter', - 'AgentTaskOrderBy', + 'AgentChatModuleFilter', + 'AgentChatModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentTask', - fieldName: 'agentTask', + operationName: 'AgentChatModule', + fieldName: 'agentChatModule', document, variables, transform: (data: { - agentTasks?: { - nodes?: InferSelectResult[]; + agentChatModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentTask: data.agentTasks?.nodes?.[0] ?? null, + agentChatModule: data.agentChatModules?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createAgentTask: { - agentTask: InferSelectResult; + createAgentChatModule: { + agentChatModule: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'AgentTask', - 'createAgentTask', - 'agentTask', + 'AgentChatModule', + 'createAgentChatModule', + 'agentChatModule', args.select, args.data, - 'CreateAgentTaskInput', + 'CreateAgentChatModuleInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentTask', - fieldName: 'createAgentTask', + operationName: 'AgentChatModule', + fieldName: 'createAgentChatModule', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - AgentTaskPatch + AgentChatModulePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateAgentTask: { - agentTask: InferSelectResult; + updateAgentChatModule: { + agentChatModule: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'AgentTask', - 'updateAgentTask', - 'agentTask', + 'AgentChatModule', + 'updateAgentChatModule', + 'agentChatModule', args.select, args.where.id, args.data, - 'UpdateAgentTaskInput', + 'UpdateAgentChatModuleInput', 'id', - 'agentTaskPatch', + 'agentChatModulePatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentTask', - fieldName: 'updateAgentTask', + operationName: 'AgentChatModule', + fieldName: 'updateAgentChatModule', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -215,28 +215,28 @@ export class AgentTaskModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteAgentTask: { - agentTask: InferSelectResult; + deleteAgentChatModule: { + agentChatModule: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'AgentTask', - 'deleteAgentTask', - 'agentTask', + 'AgentChatModule', + 'deleteAgentChatModule', + 'agentChatModule', { id: args.where.id, }, - 'DeleteAgentTaskInput', + 'DeleteAgentChatModuleInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentTask', - fieldName: 'deleteAgentTask', + operationName: 'AgentChatModule', + fieldName: 'deleteAgentChatModule', document, variables, }); diff --git a/sdk/constructive-cli/src/public/orm/models/agentThread.ts b/sdk/constructive-cli/src/public/orm/models/agentThread.ts deleted file mode 100644 index 7bbd14abec..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/agentThread.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AgentThread 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 { - AgentThread, - AgentThreadWithRelations, - AgentThreadSelect, - AgentThreadFilter, - AgentThreadOrderBy, - CreateAgentThreadInput, - UpdateAgentThreadInput, - AgentThreadPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AgentThreadModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentThreads: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AgentThread', - 'agentThreads', - 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, - }, - 'AgentThreadFilter', - 'AgentThreadOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentThread', - fieldName: 'agentThreads', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentThread: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AgentThread', - 'agentThreads', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AgentThreadFilter', - 'AgentThreadOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentThread', - fieldName: 'agentThread', - document, - variables, - transform: (data: { - agentThreads?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - agentThread: data.agentThreads?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentThread: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AgentThread', - 'agentThreads', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AgentThreadFilter', - 'AgentThreadOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentThread', - fieldName: 'agentThread', - document, - variables, - transform: (data: { - agentThreads?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - agentThread: data.agentThreads?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAgentThread: { - agentThread: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AgentThread', - 'createAgentThread', - 'agentThread', - args.select, - args.data, - 'CreateAgentThreadInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentThread', - fieldName: 'createAgentThread', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AgentThreadPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAgentThread: { - agentThread: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AgentThread', - 'updateAgentThread', - 'agentThread', - args.select, - args.where.id, - args.data, - 'UpdateAgentThreadInput', - 'id', - 'agentThreadPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentThread', - fieldName: 'updateAgentThread', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAgentThread: { - agentThread: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AgentThread', - 'deleteAgentThread', - 'agentThread', - { - id: args.where.id, - }, - 'DeleteAgentThreadInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentThread', - fieldName: 'deleteAgentThread', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts +++ b/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-cli/src/public/orm/models/auditLog.ts b/sdk/constructive-cli/src/public/orm/models/auditLog.ts deleted file mode 100644 index 8d8abc012f..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/auditLog.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AuditLog 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 { - AuditLog, - AuditLogWithRelations, - AuditLogSelect, - AuditLogFilter, - AuditLogOrderBy, - CreateAuditLogInput, - UpdateAuditLogInput, - AuditLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AuditLogModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogs: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - 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, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLogs', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AuditLog', - 'createAuditLog', - 'auditLog', - args.select, - args.data, - 'CreateAuditLogInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'createAuditLog', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AuditLogPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AuditLog', - 'updateAuditLog', - 'auditLog', - args.select, - args.where.id, - args.data, - 'UpdateAuditLogInput', - 'id', - 'auditLogPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'updateAuditLog', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AuditLog', - 'deleteAuditLog', - 'auditLog', - { - id: args.where.id, - }, - 'DeleteAuditLogInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'deleteAuditLog', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/agentMessage.ts b/sdk/constructive-cli/src/public/orm/models/auditLogAuth.ts similarity index 53% rename from sdk/constructive-sdk/src/public/orm/models/agentMessage.ts rename to sdk/constructive-cli/src/public/orm/models/auditLogAuth.ts index d128641c85..8a6665612c 100644 --- a/sdk/constructive-sdk/src/public/orm/models/agentMessage.ts +++ b/sdk/constructive-cli/src/public/orm/models/auditLogAuth.ts @@ -1,5 +1,5 @@ /** - * AgentMessage model for ORM client + * AuditLogAuth 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 { - AgentMessage, - AgentMessageWithRelations, - AgentMessageSelect, - AgentMessageFilter, - AgentMessageOrderBy, - CreateAgentMessageInput, - UpdateAgentMessageInput, - AgentMessagePatch, + AuditLogAuth, + AuditLogAuthWithRelations, + AuditLogAuthSelect, + AuditLogAuthFilter, + AuditLogAuthOrderBy, + CreateAuditLogAuthInput, + UpdateAuditLogAuthInput, + AuditLogAuthPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class AgentMessageModel { +export class AuditLogAuthModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentMessages: ConnectionResult>; + auditLogAuths: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'AgentMessage', - 'agentMessages', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class AgentMessageModel { before: args?.before, offset: args?.offset, }, - 'AgentMessageFilter', - 'AgentMessageOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentMessage', - fieldName: 'agentMessages', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuths', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentMessage: InferSelectResult | null; + auditLogAuth: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'AgentMessage', - 'agentMessages', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'AgentMessageFilter', - 'AgentMessageOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentMessage', - fieldName: 'agentMessage', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', document, variables, transform: (data: { - agentMessages?: { - nodes?: InferSelectResult[]; + auditLogAuths?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentMessage: data.agentMessages?.nodes?.[0] ?? null, + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentMessage: InferSelectResult | null; + auditLogAuth: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'AgentMessage', - 'agentMessages', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: { @@ -124,90 +124,90 @@ export class AgentMessageModel { }, first: 1, }, - 'AgentMessageFilter', - 'AgentMessageOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentMessage', - fieldName: 'agentMessage', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', document, variables, transform: (data: { - agentMessages?: { - nodes?: InferSelectResult[]; + auditLogAuths?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentMessage: data.agentMessages?.nodes?.[0] ?? null, + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createAgentMessage: { - agentMessage: InferSelectResult; + createAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'AgentMessage', - 'createAgentMessage', - 'agentMessage', + 'AuditLogAuth', + 'createAuditLogAuth', + 'auditLogAuth', args.select, args.data, - 'CreateAgentMessageInput', + 'CreateAuditLogAuthInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentMessage', - fieldName: 'createAgentMessage', + operationName: 'AuditLogAuth', + fieldName: 'createAuditLogAuth', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - AgentMessagePatch + AuditLogAuthPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateAgentMessage: { - agentMessage: InferSelectResult; + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'AgentMessage', - 'updateAgentMessage', - 'agentMessage', + 'AuditLogAuth', + 'updateAuditLogAuth', + 'auditLogAuth', args.select, args.where.id, args.data, - 'UpdateAgentMessageInput', + 'UpdateAuditLogAuthInput', 'id', - 'agentMessagePatch', + 'auditLogAuthPatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentMessage', - fieldName: 'updateAgentMessage', + operationName: 'AuditLogAuth', + fieldName: 'updateAuditLogAuth', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -215,28 +215,28 @@ export class AgentMessageModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteAgentMessage: { - agentMessage: InferSelectResult; + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'AgentMessage', - 'deleteAgentMessage', - 'agentMessage', + 'AuditLogAuth', + 'deleteAuditLogAuth', + 'auditLogAuth', { id: args.where.id, }, - 'DeleteAgentMessageInput', + 'DeleteAuditLogAuthInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentMessage', - fieldName: 'deleteAgentMessage', + operationName: 'AuditLogAuth', + fieldName: 'deleteAuditLogAuth', document, variables, }); diff --git a/sdk/constructive-cli/src/public/orm/models/computeLogModule.ts b/sdk/constructive-cli/src/public/orm/models/computeLogModule.ts new file mode 100644 index 0000000000..2e36321ef1 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/computeLogModule.ts @@ -0,0 +1,244 @@ +/** + * ComputeLogModule 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 { + ComputeLogModule, + ComputeLogModuleWithRelations, + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy, + CreateComputeLogModuleInput, + UpdateComputeLogModuleInput, + ComputeLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ComputeLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + computeLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ComputeLogModule', + 'computeLogModules', + 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, + }, + 'ComputeLogModuleFilter', + 'ComputeLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ComputeLogModule', + fieldName: 'computeLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + computeLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ComputeLogModule', + 'computeLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ComputeLogModuleFilter', + 'ComputeLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ComputeLogModule', + fieldName: 'computeLogModule', + document, + variables, + transform: (data: { + computeLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + computeLogModule: data.computeLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + computeLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ComputeLogModule', + 'computeLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ComputeLogModuleFilter', + 'ComputeLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ComputeLogModule', + fieldName: 'computeLogModule', + document, + variables, + transform: (data: { + computeLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + computeLogModule: data.computeLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ComputeLogModule', + 'createComputeLogModule', + 'computeLogModule', + args.select, + args.data, + 'CreateComputeLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ComputeLogModule', + fieldName: 'createComputeLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ComputeLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ComputeLogModule', + 'updateComputeLogModule', + 'computeLogModule', + args.select, + args.where.id, + args.data, + 'UpdateComputeLogModuleInput', + 'id', + 'computeLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ComputeLogModule', + fieldName: 'updateComputeLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ComputeLogModule', + 'deleteComputeLogModule', + 'computeLogModule', + { + id: args.where.id, + }, + 'DeleteComputeLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ComputeLogModule', + fieldName: 'deleteComputeLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/configSecretsOrgModule.ts b/sdk/constructive-cli/src/public/orm/models/configSecretsOrgModule.ts new file mode 100644 index 0000000000..ef53f2d5cd --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/configSecretsOrgModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsOrgModule 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 { + ConfigSecretsOrgModule, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, + CreateConfigSecretsOrgModuleInput, + UpdateConfigSecretsOrgModuleInput, + ConfigSecretsOrgModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsOrgModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + 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, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsOrgModule', + 'createConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.data, + 'CreateConfigSecretsOrgModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'createConfigSecretsOrgModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsOrgModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsOrgModule', + 'updateConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsOrgModuleInput', + 'id', + 'configSecretsOrgModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'updateConfigSecretsOrgModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsOrgModule', + 'deleteConfigSecretsOrgModule', + 'configSecretsOrgModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsOrgModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'deleteConfigSecretsOrgModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/configSecretsUserModule.ts b/sdk/constructive-cli/src/public/orm/models/configSecretsUserModule.ts new file mode 100644 index 0000000000..b1b8f0cacb --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/configSecretsUserModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsUserModule 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 { + ConfigSecretsUserModule, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, + CreateConfigSecretsUserModuleInput, + UpdateConfigSecretsUserModuleInput, + ConfigSecretsUserModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsUserModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + 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, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsUserModule', + 'createConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.data, + 'CreateConfigSecretsUserModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'createConfigSecretsUserModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsUserModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsUserModule', + 'updateConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsUserModuleInput', + 'id', + 'configSecretsUserModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'updateConfigSecretsUserModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsUserModule', + 'deleteConfigSecretsUserModule', + 'configSecretsUserModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsUserModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'deleteConfigSecretsUserModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/usageSnapshot.ts b/sdk/constructive-cli/src/public/orm/models/dbUsageModule.ts similarity index 53% rename from sdk/constructive-cli/src/public/orm/models/usageSnapshot.ts rename to sdk/constructive-cli/src/public/orm/models/dbUsageModule.ts index 9fad79a81f..69aa58b980 100644 --- a/sdk/constructive-cli/src/public/orm/models/usageSnapshot.ts +++ b/sdk/constructive-cli/src/public/orm/models/dbUsageModule.ts @@ -1,5 +1,5 @@ /** - * UsageSnapshot model for ORM client + * DbUsageModule 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 { - UsageSnapshot, - UsageSnapshotWithRelations, - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy, - CreateUsageSnapshotInput, - UpdateUsageSnapshotInput, - UsageSnapshotPatch, + DbUsageModule, + DbUsageModuleWithRelations, + DbUsageModuleSelect, + DbUsageModuleFilter, + DbUsageModuleOrderBy, + CreateDbUsageModuleInput, + UpdateDbUsageModuleInput, + DbUsageModulePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class UsageSnapshotModel { +export class DbUsageModuleModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - usageSnapshots: ConnectionResult>; + dbUsageModules: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', + 'DbUsageModule', + 'dbUsageModules', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class UsageSnapshotModel { before: args?.before, offset: args?.offset, }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', + 'DbUsageModuleFilter', + 'DbUsageModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshots', + operationName: 'DbUsageModule', + fieldName: 'dbUsageModules', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; + dbUsageModule: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'UsageSnapshot', - 'usageSnapshots', + 'DbUsageModule', + 'dbUsageModules', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', + 'DbUsageModuleFilter', + 'DbUsageModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'dbUsageModule', document, variables, transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; + dbUsageModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, + dbUsageModule: data.dbUsageModules?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; + dbUsageModule: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', + 'DbUsageModule', + 'dbUsageModules', args.select, { where: { @@ -124,90 +124,90 @@ export class UsageSnapshotModel { }, first: 1, }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', + 'DbUsageModuleFilter', + 'DbUsageModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'dbUsageModule', document, variables, transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; + dbUsageModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, + dbUsageModule: data.dbUsageModules?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createUsageSnapshot: { - usageSnapshot: InferSelectResult; + createDbUsageModule: { + dbUsageModule: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'UsageSnapshot', - 'createUsageSnapshot', - 'usageSnapshot', + 'DbUsageModule', + 'createDbUsageModule', + 'dbUsageModule', args.select, args.data, - 'CreateUsageSnapshotInput', + 'CreateDbUsageModuleInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'createUsageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'createDbUsageModule', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - UsageSnapshotPatch + DbUsageModulePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; + updateDbUsageModule: { + dbUsageModule: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'UsageSnapshot', - 'updateUsageSnapshot', - 'usageSnapshot', + 'DbUsageModule', + 'updateDbUsageModule', + 'dbUsageModule', args.select, args.where.id, args.data, - 'UpdateUsageSnapshotInput', + 'UpdateDbUsageModuleInput', 'id', - 'usageSnapshotPatch', + 'dbUsageModulePatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'updateUsageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'updateDbUsageModule', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -215,28 +215,28 @@ export class UsageSnapshotModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; + deleteDbUsageModule: { + dbUsageModule: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'UsageSnapshot', - 'deleteUsageSnapshot', - 'usageSnapshot', + 'DbUsageModule', + 'deleteDbUsageModule', + 'dbUsageModule', { id: args.where.id, }, - 'DeleteUsageSnapshotInput', + 'DeleteDbUsageModuleInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'deleteUsageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'deleteDbUsageModule', document, variables, }); diff --git a/sdk/constructive-cli/src/public/orm/models/encryptedSecretsModule.ts b/sdk/constructive-cli/src/public/orm/models/encryptedSecretsModule.ts deleted file mode 100644 index 754ec7e785..0000000000 --- a/sdk/constructive-cli/src/public/orm/models/encryptedSecretsModule.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * EncryptedSecretsModule 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 { - EncryptedSecretsModule, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, - CreateEncryptedSecretsModuleInput, - UpdateEncryptedSecretsModuleInput, - EncryptedSecretsModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class EncryptedSecretsModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - 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, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'EncryptedSecretsModule', - 'createEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.data, - 'CreateEncryptedSecretsModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'createEncryptedSecretsModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - EncryptedSecretsModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'EncryptedSecretsModule', - 'updateEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.where.id, - args.data, - 'UpdateEncryptedSecretsModuleInput', - 'id', - 'encryptedSecretsModulePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'updateEncryptedSecretsModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'EncryptedSecretsModule', - 'deleteEncryptedSecretsModule', - 'encryptedSecretsModule', - { - id: args.where.id, - }, - 'DeleteEncryptedSecretsModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'deleteEncryptedSecretsModule', - 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 f32f15f0cb..706bbd0102 100644 --- a/sdk/constructive-cli/src/public/orm/models/index.ts +++ b/sdk/constructive-cli/src/public/orm/models/index.ts @@ -6,9 +6,9 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; +export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; -export { ObjectModel } from './object'; export { DatabaseModel } from './database'; export { SchemaModel } from './schema'; export { TableModel } from './table'; @@ -33,6 +33,7 @@ export { RelationProvisionModel } from './relationProvision'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RealtimeModuleModel } from './realtimeModule'; +export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; export { EnumModel } from './enum'; @@ -57,7 +58,7 @@ export { CryptoAuthModuleModel } from './cryptoAuthModule'; export { DefaultIdsModuleModel } from './defaultIdsModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; export { EmailsModuleModel } from './emailsModule'; -export { EncryptedSecretsModuleModel } from './encryptedSecretsModule'; +export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { InvitesModuleModel } from './invitesModule'; export { EventsModuleModel } from './eventsModule'; export { LimitsModuleModel } from './limitsModule'; @@ -78,6 +79,11 @@ export { EntityTypeProvisionModel } from './entityTypeProvision'; export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; export { NotificationsModuleModel } from './notificationsModule'; +export { InferenceLogModuleModel } from './inferenceLogModule'; +export { ComputeLogModuleModel } from './computeLogModule'; +export { TransferLogModuleModel } from './transferLogModule'; +export { StorageLogModuleModel } from './storageLogModule'; +export { DbUsageModuleModel } from './dbUsageModule'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; @@ -107,47 +113,44 @@ export { AppInviteModel } from './appInvite'; export { AppClaimedInviteModel } from './appClaimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AuditLogModel } from './auditLog'; -export { AgentThreadModel } from './agentThread'; -export { AgentMessageModel } from './agentMessage'; -export { AgentTaskModel } from './agentTask'; -export { RoleTypeModel } from './roleType'; +export { AuditLogAuthModel } from './auditLogAuth'; export { IdentityProviderModel } from './identityProvider'; export { RefModel } from './ref'; export { StoreModel } from './store'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { RoleTypeModel } from './roleType'; +export { MigrateFileModel } from './migrateFile'; +export { DevicesModuleModel } from './devicesModule'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; export { AppLimitCapModel } from './appLimitCap'; export { OrgLimitCapModel } from './orgLimitCap'; -export { MembershipTypeModel } from './membershipType'; -export { MigrateFileModel } from './migrateFile'; -export { DevicesModuleModel } from './devicesModule'; -export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { UserConnectedAccountModel } from './userConnectedAccount'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; export { AppLimitWarningModel } from './appLimitWarning'; -export { UserConnectedAccountModel } from './userConnectedAccount'; export { CommitModel } from './commit'; export { PubkeySettingModel } from './pubkeySetting'; export { RateLimitsModuleModel } from './rateLimitsModule'; -export { UsageSnapshotModel } from './usageSnapshot'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { RlsSettingModel } from './rlsSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { RlsModuleModel } from './rlsModule'; +export { AgentChatModuleModel } from './agentChatModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { PlansModuleModel } from './plansModule'; export { SqlActionModel } from './sqlAction'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { DatabaseSettingModel } from './databaseSetting'; -export { BillingModuleModel } from './billingModule'; -export { AstMigrationModel } from './astMigration'; -export { UserModel } from './user'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { WebauthnSettingModel } from './webauthnSetting'; export { AppMembershipModel } from './appMembership'; +export { UserModel } from './user'; +export { AstMigrationModel } from './astMigration'; +export { WebauthnSettingModel } from './webauthnSetting'; +export { BillingModuleModel } from './billingModule'; export { BillingProviderModuleModel } from './billingProviderModule'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-cli/src/public/orm/models/inferenceLogModule.ts b/sdk/constructive-cli/src/public/orm/models/inferenceLogModule.ts new file mode 100644 index 0000000000..f6f4ab2452 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/inferenceLogModule.ts @@ -0,0 +1,244 @@ +/** + * InferenceLogModule 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 { + InferenceLogModule, + InferenceLogModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, + CreateInferenceLogModuleInput, + UpdateInferenceLogModuleInput, + InferenceLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InferenceLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + 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, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InferenceLogModule', + 'createInferenceLogModule', + 'inferenceLogModule', + args.select, + args.data, + 'CreateInferenceLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'createInferenceLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InferenceLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InferenceLogModule', + 'updateInferenceLogModule', + 'inferenceLogModule', + args.select, + args.where.id, + args.data, + 'UpdateInferenceLogModuleInput', + 'id', + 'inferenceLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'updateInferenceLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InferenceLogModule', + 'deleteInferenceLogModule', + 'inferenceLogModule', + { + id: args.where.id, + }, + 'DeleteInferenceLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'deleteInferenceLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-cli/src/public/orm/models/storageLogModule.ts b/sdk/constructive-cli/src/public/orm/models/storageLogModule.ts new file mode 100644 index 0000000000..60e0b45cac --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/storageLogModule.ts @@ -0,0 +1,244 @@ +/** + * StorageLogModule 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 { + StorageLogModule, + StorageLogModuleWithRelations, + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy, + CreateStorageLogModuleInput, + UpdateStorageLogModuleInput, + StorageLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class StorageLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + storageLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'StorageLogModule', + 'storageLogModules', + 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, + }, + 'StorageLogModuleFilter', + 'StorageLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'StorageLogModule', + fieldName: 'storageLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + storageLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'StorageLogModule', + 'storageLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'StorageLogModuleFilter', + 'StorageLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'StorageLogModule', + fieldName: 'storageLogModule', + document, + variables, + transform: (data: { + storageLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + storageLogModule: data.storageLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + storageLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'StorageLogModule', + 'storageLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'StorageLogModuleFilter', + 'StorageLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'StorageLogModule', + fieldName: 'storageLogModule', + document, + variables, + transform: (data: { + storageLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + storageLogModule: data.storageLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'StorageLogModule', + 'createStorageLogModule', + 'storageLogModule', + args.select, + args.data, + 'CreateStorageLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'StorageLogModule', + fieldName: 'createStorageLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + StorageLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'StorageLogModule', + 'updateStorageLogModule', + 'storageLogModule', + args.select, + args.where.id, + args.data, + 'UpdateStorageLogModuleInput', + 'id', + 'storageLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'StorageLogModule', + fieldName: 'updateStorageLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'StorageLogModule', + 'deleteStorageLogModule', + 'storageLogModule', + { + id: args.where.id, + }, + 'DeleteStorageLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'StorageLogModule', + fieldName: 'deleteStorageLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/transferLogModule.ts b/sdk/constructive-cli/src/public/orm/models/transferLogModule.ts new file mode 100644 index 0000000000..dd1b30c286 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/transferLogModule.ts @@ -0,0 +1,244 @@ +/** + * TransferLogModule 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 { + TransferLogModule, + TransferLogModuleWithRelations, + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy, + CreateTransferLogModuleInput, + UpdateTransferLogModuleInput, + TransferLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class TransferLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + transferLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'TransferLogModule', + 'transferLogModules', + 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, + }, + 'TransferLogModuleFilter', + 'TransferLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TransferLogModule', + fieldName: 'transferLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + transferLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'TransferLogModule', + 'transferLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'TransferLogModuleFilter', + 'TransferLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TransferLogModule', + fieldName: 'transferLogModule', + document, + variables, + transform: (data: { + transferLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + transferLogModule: data.transferLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + transferLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'TransferLogModule', + 'transferLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'TransferLogModuleFilter', + 'TransferLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TransferLogModule', + fieldName: 'transferLogModule', + document, + variables, + transform: (data: { + transferLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + transferLogModule: data.transferLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'TransferLogModule', + 'createTransferLogModule', + 'transferLogModule', + args.select, + args.data, + 'CreateTransferLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TransferLogModule', + fieldName: 'createTransferLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + TransferLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'TransferLogModule', + 'updateTransferLogModule', + 'transferLogModule', + args.select, + args.where.id, + args.data, + 'UpdateTransferLogModuleInput', + 'id', + 'transferLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TransferLogModule', + fieldName: 'updateTransferLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'TransferLogModule', + 'deleteTransferLogModule', + 'transferLogModule', + { + id: args.where.id, + }, + 'DeleteTransferLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TransferLogModule', + fieldName: 'deleteTransferLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/mutation/index.ts b/sdk/constructive-cli/src/public/orm/mutation/index.ts index 8d1e1cbef2..d9241c2882 100644 --- a/sdk/constructive-cli/src/public/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/public/orm/mutation/index.ts @@ -31,7 +31,10 @@ import type { RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, + SignInCrossOriginInput, BootstrapUserInput, + SignUpInput, + SignInInput, SetFieldOrderInput, ProvisionCheckConstraintInput, ProvisionUniqueConstraintInput, @@ -45,16 +48,13 @@ import type { SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, - SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, - SendVerificationEmailInput, - ForgotPasswordInput, - SignUpInput, RequestCrossOriginTokenInput, - SignInInput, ProvisionTableInput, + SendVerificationEmailInput, + ForgotPasswordInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, @@ -80,7 +80,10 @@ import type { RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, + SignInCrossOriginPayload, BootstrapUserPayload, + SignUpPayload, + SignInPayload, SetFieldOrderPayload, ProvisionCheckConstraintPayload, ProvisionUniqueConstraintPayload, @@ -94,16 +97,13 @@ import type { SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, - SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, - SignUpPayload, RequestCrossOriginTokenPayload, - SignInPayload, ProvisionTablePayload, + SendVerificationEmailPayload, + ForgotPasswordPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, @@ -129,7 +129,10 @@ import type { RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, + SignInCrossOriginPayloadSelect, BootstrapUserPayloadSelect, + SignUpPayloadSelect, + SignInPayloadSelect, SetFieldOrderPayloadSelect, ProvisionCheckConstraintPayloadSelect, ProvisionUniqueConstraintPayloadSelect, @@ -143,16 +146,13 @@ import type { SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, - SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, - SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, - SignInPayloadSelect, ProvisionTablePayloadSelect, + SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -212,7 +212,7 @@ export interface InitEmptyRepoVariables { } /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; @@ -240,9 +240,18 @@ export interface CopyTemplateToBlueprintVariables { export interface ProvisionSpatialRelationVariables { input: ProvisionSpatialRelationInput; } +export interface SignInCrossOriginVariables { + input: SignInCrossOriginInput; +} export interface BootstrapUserVariables { input: BootstrapUserInput; } +export interface SignUpVariables { + input: SignUpInput; +} +export interface SignInVariables { + input: SignInInput; +} export interface SetFieldOrderVariables { input: SetFieldOrderInput; } @@ -302,9 +311,6 @@ export interface ProvisionRelationVariables { export interface ApplyRlsVariables { input: ApplyRlsInput; } -export interface SignInCrossOriginVariables { - input: SignInCrossOriginInput; -} /** * Variables for createUserDatabase * Creates a new user database with all required modules, permissions, and RLS policies. @@ -333,21 +339,9 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} -export interface SignUpVariables { - input: SignUpInput; -} export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } -export interface SignInVariables { - input: SignInInput; -} /** * Variables for provisionTable * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -355,6 +349,12 @@ export interface SignInVariables { export interface ProvisionTableVariables { input: ProvisionTableInput; } +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -1063,6 +1063,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionSpatialRelationPayload' ), }), + signInCrossOrigin: ( + args: SignInCrossOriginVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInCrossOrigin: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInCrossOrigin', + fieldName: 'signInCrossOrigin', + ...buildCustomDocument( + 'mutation', + 'SignInCrossOrigin', + 'signInCrossOrigin', + options.select, + args, + [ + { + name: 'input', + type: 'SignInCrossOriginInput!', + }, + ], + connectionFieldsMap, + 'SignInCrossOriginPayload' + ), + }), bootstrapUser: ( args: BootstrapUserVariables, options: { @@ -1092,6 +1121,64 @@ export function createMutationOperations(client: OrmClient) { 'BootstrapUserPayload' ), }), + signUp: ( + args: SignUpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUp', + fieldName: 'signUp', + ...buildCustomDocument( + 'mutation', + 'SignUp', + 'signUp', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpInput!', + }, + ], + connectionFieldsMap, + 'SignUpPayload' + ), + }), + signIn: ( + args: SignInVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signIn: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignIn', + fieldName: 'signIn', + ...buildCustomDocument( + 'mutation', + 'SignIn', + 'signIn', + options.select, + args, + [ + { + name: 'input', + type: 'SignInInput!', + }, + ], + connectionFieldsMap, + 'SignInPayload' + ), + }), setFieldOrder: ( args: SetFieldOrderVariables, options: { @@ -1469,35 +1556,6 @@ export function createMutationOperations(client: OrmClient) { 'ApplyRlsPayload' ), }), - signInCrossOrigin: ( - args: SignInCrossOriginVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signInCrossOrigin: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignInCrossOrigin', - fieldName: 'signInCrossOrigin', - ...buildCustomDocument( - 'mutation', - 'SignInCrossOrigin', - 'signInCrossOrigin', - options.select, - args, - [ - { - name: 'input', - type: 'SignInCrossOriginInput!', - }, - ], - connectionFieldsMap, - 'SignInCrossOriginPayload' - ), - }), createUserDatabase: ( args: CreateUserDatabaseVariables, options: { @@ -1585,178 +1643,120 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), - signUp: ( - args: SignUpVariables, + requestCrossOriginToken: ( + args: RequestCrossOriginTokenVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signUp: InferSelectResult | null; + requestCrossOriginToken: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignUp', - fieldName: 'signUp', + operationName: 'RequestCrossOriginToken', + fieldName: 'requestCrossOriginToken', ...buildCustomDocument( 'mutation', - 'SignUp', - 'signUp', + 'RequestCrossOriginToken', + 'requestCrossOriginToken', options.select, args, [ { name: 'input', - type: 'SignUpInput!', + type: 'RequestCrossOriginTokenInput!', }, ], connectionFieldsMap, - 'SignUpPayload' + 'RequestCrossOriginTokenPayload' ), }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, + provisionTable: ( + args: ProvisionTableVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; + provisionTable: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', + operationName: 'ProvisionTable', + fieldName: 'provisionTable', ...buildCustomDocument( 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', + 'ProvisionTable', + 'provisionTable', options.select, args, [ { name: 'input', - type: 'RequestCrossOriginTokenInput!', + type: 'ProvisionTableInput!', }, ], connectionFieldsMap, - 'RequestCrossOriginTokenPayload' + 'ProvisionTablePayload' ), }), - signIn: ( - args: SignInVariables, + sendVerificationEmail: ( + args: SendVerificationEmailVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signIn: InferSelectResult | null; + sendVerificationEmail: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignIn', - fieldName: 'signIn', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', ...buildCustomDocument( 'mutation', - 'SignIn', - 'signIn', + 'SendVerificationEmail', + 'sendVerificationEmail', options.select, args, [ { name: 'input', - type: 'SignInInput!', + type: 'SendVerificationEmailInput!', }, ], connectionFieldsMap, - 'SignInPayload' + 'SendVerificationEmailPayload' ), }), - provisionTable: ( - args: ProvisionTableVariables, + forgotPassword: ( + args: ForgotPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - provisionTable: InferSelectResult | null; + forgotPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', ...buildCustomDocument( 'mutation', - 'ProvisionTable', - 'provisionTable', + 'ForgotPassword', + 'forgotPassword', options.select, args, [ { name: 'input', - type: 'ProvisionTableInput!', + type: 'ForgotPasswordInput!', }, ], connectionFieldsMap, - 'ProvisionTablePayload' + 'ForgotPasswordPayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-cli/src/public/orm/query/index.ts b/sdk/constructive-cli/src/public/orm/query/index.ts index 7fc254ab13..b014f09988 100644 --- a/sdk/constructive-cli/src/public/orm/query/index.ts +++ b/sdk/constructive-cli/src/public/orm/query/index.ts @@ -11,9 +11,9 @@ import type { User, ObjectSelect, UserSelect, + ObjectConnection, AppPermissionConnection, OrgPermissionConnection, - ObjectConnection, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -26,7 +26,7 @@ export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } @@ -68,8 +68,9 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -export interface AppPermissionsGetByMaskVariables { - mask?: string; +export interface GetAllObjectsFromRootVariables { + sId?: string; + id?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -80,8 +81,10 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface OrgPermissionsGetByMaskVariables { - mask?: string; +export interface GetPathObjectsFromRootVariables { + sId?: string; + id?: string; + path?: string[]; /** Only read the first `n` values of the set. */ first?: number; /** @@ -92,9 +95,14 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; +export interface GetObjectAtPathVariables { + sId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} +export interface AppPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -105,10 +113,8 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; +export interface OrgPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -119,12 +125,6 @@ export interface GetPathObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} export function createQueryOperations(client: OrmClient) { return { currentUserId: (options?: { select?: Record }) => @@ -292,7 +292,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -547,29 +547,33 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getAllObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', }, { name: 'first', @@ -588,29 +592,37 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; + getPathObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', ...buildCustomDocument( 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', }, { name: 'first', @@ -629,82 +641,70 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, - options?: { - select?: Record; - } + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; + getObjectAtPath: InferSelectResult | null; }>({ client, operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', ...buildCustomDocument( 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', - options?.select, + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { - name: 'id', + name: 'storeId', type: 'UUID', }, { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', + name: 'path', + type: '[String]', }, { - name: 'after', - type: 'Cursor', + name: 'refname', + type: 'String', }, ], connectionFieldsMap, - undefined + 'Object' ), }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; + appPermissionsGetByMask: AppPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -723,45 +723,45 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; + orgPermissionsGetByMask: OrgPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', + options?.select, args, [ { - name: 'dbId', - type: 'UUID', + name: 'mask', + type: 'BitString', }, { - name: 'storeId', - type: 'UUID', + name: 'first', + type: 'Int', }, { - name: 'path', - type: '[String]', + name: 'offset', + type: 'Int', }, { - name: 'refname', - type: 'String', + name: 'after', + type: 'Cursor', }, ], connectionFieldsMap, - 'Object' + undefined ), }), currentUser: ( diff --git a/sdk/constructive-react/src/admin/README.md b/sdk/constructive-react/src/admin/README.md index 8a61122240..9c6ee21dc0 100644 --- a/sdk/constructive-react/src/admin/README.md +++ b/sdk/constructive-react/src/admin/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 45 +- **Tables:** 44 - **Custom queries:** 9 - **Custom mutations:** 3 diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index ddaf5a89f7..0395e99e36 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -71,16 +71,6 @@ 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 | -| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `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 | | `useAppAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | | `useAppAdminGrantQuery` | Query | Records of admin role grants and revocations between members | | `useCreateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | @@ -91,6 +81,31 @@ function App() { | `useCreateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useUpdateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useDeleteAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `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 | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | +| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | +| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `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 | +| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useAppLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useAppLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useCreateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | @@ -111,21 +126,11 @@ function App() { | `useCreateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useUpdateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useDeleteOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | -| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | -| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | -| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | -| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | | `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 | @@ -141,16 +146,16 @@ function App() { | `useCreateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | | `useUpdateOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | | `useDeleteOrgLimitCreditMutation` | Mutation | Append-only ledger of credit grants that automatically update limit ceilings | +| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | | `useAppLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useAppLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useCreateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useUpdateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useDeleteAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useOrgLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useOrgLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useCreateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useUpdateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useDeleteOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | | `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | | `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | @@ -161,60 +166,66 @@ function App() { | `useCreateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useUpdateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useDeleteAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useOrgLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useOrgLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useCreateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useUpdateOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useDeleteOrgLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | +| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useAppGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useAppGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useCreateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useUpdateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useDeleteAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `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 | | `useOrgClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | | `useOrgClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | | `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 | -| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useOrgGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useOrgGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useCreateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useUpdateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | | `useDeleteOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | -| `useOrgChartEdgesQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useOrgChartEdgeQuery` | Query | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | -| `useUsageSnapshotsQuery` | Query | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useUsageSnapshotQuery` | Query | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useCreateUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useUpdateUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useDeleteUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `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 | -| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useAppInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useAppInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useCreateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useUpdateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useDeleteAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useAppLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | | `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | | `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | +| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `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 | +| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useOrgMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useCreateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useUpdateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useDeleteOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useOrgMemberProfilesQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | +| `useOrgMemberProfileQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | +| `useCreateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | +| `useUpdateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | +| `useDeleteOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | | `useOrgLimitAggregatesQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | | `useOrgLimitAggregateQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | | `useCreateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | @@ -225,26 +236,16 @@ function App() { | `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | | `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | | `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useOrgMemberProfilesQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useOrgMemberProfileQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useCreateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useUpdateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useDeleteOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useAppInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useAppInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useCreateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useUpdateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useDeleteAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useOrgInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useOrgInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useCreateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useUpdateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useDeleteOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useOrgMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useOrgMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useCreateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useUpdateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useDeleteOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useAppPermissionsGetPaddedMaskQuery` | Query | appPermissionsGetPaddedMask | | `useOrgPermissionsGetPaddedMaskQuery` | Query | orgPermissionsGetPaddedMask | | `useOrgIsManagerOfQuery` | Query | orgIsManagerOf | @@ -440,48 +441,6 @@ const { mutate: create } = useCreateAppPermissionDefaultMutation({ create({ permissions: '' }); ``` -### AppLimitCreditCode - -```typescript -// List all appLimitCreditCodes -const { data, isLoading } = useAppLimitCreditCodesQuery({ - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); - -// Get one appLimitCreditCode -const { data: item } = useAppLimitCreditCodeQuery({ - id: '', - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, -}); - -// Create a appLimitCreditCode -const { mutate: create } = useCreateAppLimitCreditCodeMutation({ - selection: { fields: { id: true } }, -}); -create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); -``` - -### 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: '' }); -``` - ### AppAdminGrant ```typescript @@ -524,151 +483,214 @@ const { mutate: create } = useCreateAppOwnerGrantMutation({ create({ isGrant: '', actorId: '', grantorId: '' }); ``` -### AppLimitCapsDefault +### OrgPermissionDefault ```typescript -// List all appLimitCapsDefaults -const { data, isLoading } = useAppLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all orgPermissionDefaults +const { data, isLoading } = useOrgPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true, entityId: true } }, }); -// Get one appLimitCapsDefault -const { data: item } = useAppLimitCapsDefaultQuery({ +// Get one orgPermissionDefault +const { data: item } = useOrgPermissionDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, permissions: true, entityId: true } }, }); -// Create a appLimitCapsDefault -const { mutate: create } = useCreateAppLimitCapsDefaultMutation({ +// Create a orgPermissionDefault +const { mutate: create } = useCreateOrgPermissionDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ permissions: '', entityId: '' }); ``` -### OrgLimitCapsDefault +### AppMembershipDefault ```typescript -// List all orgLimitCapsDefaults -const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all appMembershipDefaults +const { data, isLoading } = useAppMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); -// Get one orgLimitCapsDefault -const { data: item } = useOrgLimitCapsDefaultQuery({ +// Get one appMembershipDefault +const { data: item } = useAppMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); -// Create a orgLimitCapsDefault -const { mutate: create } = useCreateOrgLimitCapsDefaultMutation({ +// Create a appMembershipDefault +const { mutate: create } = useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); ``` -### AppLimitCap +### OrgAdminGrant ```typescript -// List all appLimitCaps -const { data, isLoading } = useAppLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, +// List all orgAdminGrants +const { data, isLoading } = useOrgAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one appLimitCap -const { data: item } = useAppLimitCapQuery({ +// Get one orgAdminGrant +const { data: item } = useOrgAdminGrantQuery({ id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, + selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a appLimitCap -const { mutate: create } = useCreateAppLimitCapMutation({ +// Create a orgAdminGrant +const { mutate: create } = useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } }, }); -create({ name: '', entityId: '', max: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgLimitCap +### OrgMembershipDefault ```typescript -// List all orgLimitCaps -const { data, isLoading } = useOrgLimitCapsQuery({ - selection: { fields: { id: true, name: true, entityId: true, max: true } }, -}); +// List all orgMembershipDefaults +const { data, isLoading } = useOrgMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +}); -// Get one orgLimitCap -const { data: item } = useOrgLimitCapQuery({ +// Get one orgMembershipDefault +const { data: item } = useOrgMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, entityId: true, max: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, }); -// Create a orgLimitCap -const { mutate: create } = useCreateOrgLimitCapMutation({ +// Create a orgMembershipDefault +const { mutate: create } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', entityId: '', max: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); ``` -### OrgAdminGrant +### OrgOwnerGrant ```typescript -// List all orgAdminGrants -const { data, isLoading } = useOrgAdminGrantsQuery({ +// List all orgOwnerGrants +const { data, isLoading } = useOrgOwnerGrantsQuery({ selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one orgAdminGrant -const { data: item } = useOrgAdminGrantQuery({ +// Get one orgOwnerGrant +const { data: item } = useOrgOwnerGrantQuery({ id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a orgAdminGrant -const { mutate: create } = useCreateOrgAdminGrantMutation({ +// Create a orgOwnerGrant +const { mutate: create } = useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } }, }); create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgOwnerGrant +### AppLimitCapsDefault ```typescript -// List all orgOwnerGrants -const { data, isLoading } = useOrgOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all appLimitCapsDefaults +const { data, isLoading } = useAppLimitCapsDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, }); -// Get one orgOwnerGrant -const { data: item } = useOrgOwnerGrantQuery({ +// Get one appLimitCapsDefault +const { data: item } = useAppLimitCapsDefaultQuery({ id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, max: true } }, }); -// Create a orgOwnerGrant -const { mutate: create } = useCreateOrgOwnerGrantMutation({ +// Create a appLimitCapsDefault +const { mutate: create } = useCreateAppLimitCapsDefaultMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ name: '', max: '' }); ``` -### MembershipType +### OrgLimitCapsDefault ```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, +// List all orgLimitCapsDefaults +const { data, isLoading } = useOrgLimitCapsDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true } }, }); -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, +// Get one orgLimitCapsDefault +const { data: item } = useOrgLimitCapsDefaultQuery({ + id: '', + selection: { fields: { id: true, name: true, max: true } }, }); -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ +// Create a orgLimitCapsDefault +const { mutate: create } = useCreateOrgLimitCapsDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); +create({ name: '', max: '' }); +``` + +### AppLimitCap + +```typescript +// List all appLimitCaps +const { data, isLoading } = useAppLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Get one appLimitCap +const { data: item } = useAppLimitCapQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Create a appLimitCap +const { mutate: create } = useCreateAppLimitCapMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', max: '' }); +``` + +### OrgLimitCap + +```typescript +// List all orgLimitCaps +const { data, isLoading } = useOrgLimitCapsQuery({ + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Get one orgLimitCap +const { data: item } = useOrgLimitCapQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, max: true } }, +}); + +// Create a orgLimitCap +const { mutate: create } = useCreateOrgLimitCapMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', max: '' }); +``` + +### OrgChartEdge + +```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 } }, +}); + +// 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 } }, +}); + +// Create a orgChartEdge +const { mutate: create } = useCreateOrgChartEdgeMutation({ + selection: { fields: { id: true } }, +}); +create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); ``` ### AppLimitDefault @@ -734,46 +756,46 @@ const { mutate: create } = useCreateOrgLimitCreditMutation({ create({ defaultLimitId: '', actorId: '', entityId: '', amount: '', creditType: '', reason: '' }); ``` -### AppLimitWarning +### AppLimitCreditCode ```typescript -// List all appLimitWarnings -const { data, isLoading } = useAppLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, +// List all appLimitCreditCodes +const { data, isLoading } = useAppLimitCreditCodesQuery({ + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, }); -// Get one appLimitWarning -const { data: item } = useAppLimitWarningQuery({ +// Get one appLimitCreditCode +const { data: item } = useAppLimitCreditCodeQuery({ id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, }); -// Create a appLimitWarning -const { mutate: create } = useCreateAppLimitWarningMutation({ +// Create a appLimitCreditCode +const { mutate: create } = useCreateAppLimitCreditCodeMutation({ selection: { fields: { id: true } }, }); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); +create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); ``` -### OrgLimitWarning +### AppLimitWarning ```typescript -// List all orgLimitWarnings -const { data, isLoading } = useOrgLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, +// List all appLimitWarnings +const { data, isLoading } = useAppLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, }); -// Get one orgLimitWarning -const { data: item } = useOrgLimitWarningQuery({ +// Get one appLimitWarning +const { data: item } = useAppLimitWarningQuery({ id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, }); -// Create a orgLimitWarning -const { mutate: create } = useCreateOrgLimitWarningMutation({ +// Create a appLimitWarning +const { mutate: create } = useCreateAppLimitWarningMutation({ selection: { fields: { id: true } }, }); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); +create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); ``` ### OrgChartEdgeGrant @@ -818,67 +840,67 @@ const { mutate: create } = useCreateAppClaimedInviteMutation({ create({ data: '', senderId: '', receiverId: '' }); ``` -### AppGrant +### OrgLimitWarning ```typescript -// List all appGrants -const { data, isLoading } = useAppGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all orgLimitWarnings +const { data, isLoading } = useOrgLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, }); -// Get one appGrant -const { data: item } = useAppGrantQuery({ +// Get one orgLimitWarning +const { data: item } = useOrgLimitWarningQuery({ id: '', - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }, }); -// Create a appGrant -const { mutate: create } = useCreateAppGrantMutation({ +// Create a orgLimitWarning +const { mutate: create } = useCreateOrgLimitWarningMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); +create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }); ``` -### AppMembershipDefault +### MembershipType ```typescript -// List all appMembershipDefaults -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +// List all membershipTypes +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); -// Get one appMembershipDefault -const { data: item } = useAppMembershipDefaultQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, +// Get one membershipType +const { data: item } = useMembershipTypeQuery({ + id: '', + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); -// Create a appMembershipDefault -const { mutate: create } = useCreateAppMembershipDefaultMutation({ +// Create a membershipType +const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); ``` -### OrgMembershipDefault +### AppGrant ```typescript -// List all orgMembershipDefaults -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +// List all appGrants +const { data, isLoading } = useAppGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Get one orgMembershipDefault -const { data: item } = useOrgMembershipDefaultQuery({ +// Get one appGrant +const { data: item } = useAppGrantQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a orgMembershipDefault -const { mutate: create } = useCreateOrgMembershipDefaultMutation({ +// Create a appGrant +const { mutate: create } = useCreateAppGrantMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); +create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); ``` ### OrgClaimedInvite @@ -902,97 +924,109 @@ const { mutate: create } = useCreateOrgClaimedInviteMutation({ create({ data: '', senderId: '', receiverId: '', entityId: '' }); ``` -### AppLimitEvent +### OrgGrant ```typescript -// List all appLimitEvents -const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +// List all orgGrants +const { data, isLoading } = useOrgGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); -// Create a appLimitEvent -const { mutate: create } = useCreateAppLimitEventMutation({ +// Get one orgGrant +const { data: item } = useOrgGrantQuery({ + id: '', + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a orgGrant +const { mutate: create } = useCreateOrgGrantMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### OrgLimitEvent +### AppLimitEvent ```typescript -// List all orgLimitEvents -const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +// List all appLimitEvents +const { data, isLoading } = useAppLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); -// Create a orgLimitEvent -const { mutate: create } = useCreateOrgLimitEventMutation({ +// Get one appLimitEvent +const { data: item } = useAppLimitEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Create a appLimitEvent +const { mutate: create } = useCreateAppLimitEventMutation({ selection: { fields: { id: true } }, }); create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); ``` -### OrgGrant +### OrgLimitEvent ```typescript -// List all orgGrants -const { data, isLoading } = useOrgGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all orgLimitEvents +const { data, isLoading } = useOrgLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); -// Get one orgGrant -const { data: item } = useOrgGrantQuery({ +// Get one orgLimitEvent +const { data: item } = useOrgLimitEventQuery({ id: '', - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); -// Create a orgGrant -const { mutate: create } = useCreateOrgGrantMutation({ +// Create a orgLimitEvent +const { mutate: create } = useCreateOrgLimitEventMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); ``` -### OrgChartEdge +### OrgMembershipSetting ```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 } }, +// List all orgMembershipSettings +const { data, isLoading } = useOrgMembershipSettingsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Get one orgChartEdge -const { data: item } = useOrgChartEdgeQuery({ +// Get one orgMembershipSetting +const { data: item } = useOrgMembershipSettingQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Create a orgChartEdge -const { mutate: create } = useCreateOrgChartEdgeMutation({ +// Create a orgMembershipSetting +const { mutate: create } = useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } }, }); -create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); +create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); ``` -### UsageSnapshot +### AppMembership ```typescript -// List all usageSnapshots -const { data, isLoading } = useUsageSnapshotsQuery({ - selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, +// List all appMemberships +const { data, isLoading } = useAppMembershipsQuery({ + 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 } }, }); -// Get one usageSnapshot -const { data: item } = useUsageSnapshotQuery({ +// Get one appMembership +const { data: item } = useAppMembershipQuery({ id: '', - selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, + 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 } }, }); -// Create a usageSnapshot -const { mutate: create } = useCreateUsageSnapshotMutation({ +// Create a appMembership +const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### AppLimit @@ -1016,46 +1050,46 @@ const { mutate: create } = useCreateAppLimitMutation({ create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '' }); ``` -### AppInvite +### OrgMembership ```typescript -// List all appInvites -const { data, isLoading } = useAppInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, +// List all orgMemberships +const { data, isLoading } = useOrgMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, }); -// Get one appInvite -const { data: item } = useAppInviteQuery({ +// Get one orgMembership +const { data: item } = useOrgMembershipQuery({ id: '', - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, }); -// Create a appInvite -const { mutate: create } = useCreateAppInviteMutation({ +// Create a orgMembership +const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }); ``` -### OrgMembershipSetting +### OrgMemberProfile ```typescript -// List all orgMembershipSettings -const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, +// List all orgMemberProfiles +const { data, isLoading } = useOrgMemberProfilesQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, }); -// Get one orgMembershipSetting -const { data: item } = useOrgMembershipSettingQuery({ +// Get one orgMemberProfile +const { data: item } = useOrgMemberProfileQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, }); -// Create a orgMembershipSetting -const { mutate: create } = useCreateOrgMembershipSettingMutation({ +// Create a orgMemberProfile +const { mutate: create } = useCreateOrgMemberProfileMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); +create({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); ``` ### OrgLimitAggregate @@ -1100,46 +1134,25 @@ const { mutate: create } = useCreateOrgLimitMutation({ create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', planMax: '', purchasedCredits: '', periodCredits: '', entityId: '' }); ``` -### OrgMemberProfile - -```typescript -// List all orgMemberProfiles -const { data, isLoading } = useOrgMemberProfilesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, -}); - -// Get one orgMemberProfile -const { data: item } = useOrgMemberProfileQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }, -}); - -// Create a orgMemberProfile -const { mutate: create } = useCreateOrgMemberProfileMutation({ - selection: { fields: { id: true } }, -}); -create({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); -``` - -### AppMembership +### AppInvite ```typescript -// List all appMemberships -const { data, isLoading } = useAppMembershipsQuery({ - 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 } }, +// List all appInvites +const { data, isLoading } = useAppInvitesQuery({ + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); -// Get one appMembership -const { data: item } = useAppMembershipQuery({ +// Get one appInvite +const { data: item } = useAppInviteQuery({ 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 } }, + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); -// Create a appMembership -const { mutate: create } = useCreateAppMembershipMutation({ +// Create a appInvite +const { mutate: create } = useCreateAppInviteMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); ``` ### OrgInvite @@ -1163,27 +1176,6 @@ const { mutate: create } = useCreateOrgInviteMutation({ create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }); ``` -### OrgMembership - -```typescript -// List all orgMemberships -const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, -}); - -// Get one orgMembership -const { data: item } = useOrgMembershipQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, -}); - -// Create a orgMembership -const { mutate: create } = useCreateOrgMembershipMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }); -``` - ## Custom Operation Hooks ### `useAppPermissionsGetPaddedMaskQuery` diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts index 96cf31d802..0d2462d863 100644 --- a/sdk/constructive-react/src/admin/hooks/index.ts +++ b/sdk/constructive-react/src/admin/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, AppLimitCreditRedemption, AppLimitCreditCodeItem, AppLimitCredit, OrgMember, AppPermissionDefault, AppLimitCreditCode, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, OrgAdminGrant, OrgOwnerGrant, MembershipType, AppLimitDefault, OrgLimitDefault, OrgLimitCredit, AppLimitWarning, OrgLimitWarning, OrgChartEdgeGrant, AppClaimedInvite, AppGrant, AppMembershipDefault, OrgMembershipDefault, OrgClaimedInvite, AppLimitEvent, OrgLimitEvent, OrgGrant, OrgChartEdge, UsageSnapshot, AppLimit, AppInvite, OrgMembershipSetting, OrgLimitAggregate, OrgLimit, OrgMemberProfile, AppMembership, OrgInvite, OrgMembership + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, AppLimitCreditRedemption, AppLimitCreditCodeItem, AppLimitCredit, OrgMember, AppPermissionDefault, AppAdminGrant, AppOwnerGrant, OrgPermissionDefault, AppMembershipDefault, OrgAdminGrant, OrgMembershipDefault, OrgOwnerGrant, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, OrgChartEdge, AppLimitDefault, OrgLimitDefault, OrgLimitCredit, AppLimitCreditCode, AppLimitWarning, OrgChartEdgeGrant, AppClaimedInvite, OrgLimitWarning, MembershipType, AppGrant, OrgClaimedInvite, OrgGrant, AppLimitEvent, OrgLimitEvent, OrgMembershipSetting, AppMembership, AppLimit, OrgMembership, OrgMemberProfile, OrgLimitAggregate, OrgLimit, AppInvite, OrgInvite * * Usage: * diff --git a/sdk/constructive-react/src/admin/hooks/invalidation.ts b/sdk/constructive-react/src/admin/hooks/invalidation.ts index 889a5d6c86..875bfa77ad 100644 --- a/sdk/constructive-react/src/admin/hooks/invalidation.ts +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -24,42 +24,41 @@ import { appLimitCreditKeys, orgMemberKeys, appPermissionDefaultKeys, - appLimitCreditCodeKeys, - orgPermissionDefaultKeys, appAdminGrantKeys, appOwnerGrantKeys, + orgPermissionDefaultKeys, + appMembershipDefaultKeys, + orgAdminGrantKeys, + orgMembershipDefaultKeys, + orgOwnerGrantKeys, appLimitCapsDefaultKeys, orgLimitCapsDefaultKeys, appLimitCapKeys, orgLimitCapKeys, - orgAdminGrantKeys, - orgOwnerGrantKeys, - membershipTypeKeys, + orgChartEdgeKeys, appLimitDefaultKeys, orgLimitDefaultKeys, orgLimitCreditKeys, + appLimitCreditCodeKeys, appLimitWarningKeys, - orgLimitWarningKeys, orgChartEdgeGrantKeys, appClaimedInviteKeys, + orgLimitWarningKeys, + membershipTypeKeys, appGrantKeys, - appMembershipDefaultKeys, - orgMembershipDefaultKeys, orgClaimedInviteKeys, + orgGrantKeys, appLimitEventKeys, orgLimitEventKeys, - orgGrantKeys, - orgChartEdgeKeys, - usageSnapshotKeys, - appLimitKeys, - appInviteKeys, orgMembershipSettingKeys, + appMembershipKeys, + appLimitKeys, + orgMembershipKeys, + orgMemberProfileKeys, orgLimitAggregateKeys, orgLimitKeys, - orgMemberProfileKeys, - appMembershipKeys, + appInviteKeys, orgInviteKeys, - orgMembershipKeys, } from './query-keys'; /** // ============================================================================ @@ -234,21 +233,38 @@ export const invalidate = { queryKey: appPermissionDefaultKeys.detail(id), }), }, - /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { - /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => + /** Invalidate appAdminGrant queries */ appAdminGrant: { + /** Invalidate all appAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.all, + queryKey: appAdminGrantKeys.all, }), - /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appAdminGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.lists(), + queryKey: appAdminGrantKeys.lists(), }), - /** Invalidate a specific appLimitCreditCode */ detail: ( + /** Invalidate a specific appAdminGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), + queryKey: appAdminGrantKeys.detail(id), + }), + }, + /** Invalidate appOwnerGrant queries */ appOwnerGrant: { + /** Invalidate all appOwnerGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.all, + }), + /** Invalidate appOwnerGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.lists(), + }), + /** Invalidate a specific appOwnerGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appOwnerGrantKeys.detail(id), }), }, /** Invalidate orgPermissionDefault queries */ orgPermissionDefault: { @@ -268,38 +284,72 @@ export const invalidate = { queryKey: orgPermissionDefaultKeys.detail(id), }), }, - /** Invalidate appAdminGrant queries */ appAdminGrant: { - /** Invalidate all appAdminGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate appMembershipDefault queries */ appMembershipDefault: { + /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.all, + queryKey: appMembershipDefaultKeys.all, }), - /** Invalidate appAdminGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.lists(), + queryKey: appMembershipDefaultKeys.lists(), }), - /** Invalidate a specific appAdminGrant */ detail: ( + /** Invalidate a specific appMembershipDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appAdminGrantKeys.detail(id), + queryKey: appMembershipDefaultKeys.detail(id), }), }, - /** Invalidate appOwnerGrant queries */ appOwnerGrant: { - /** Invalidate all appOwnerGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant queries */ orgAdminGrant: { + /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.all, + queryKey: orgAdminGrantKeys.all, }), - /** Invalidate appOwnerGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.lists(), + queryKey: orgAdminGrantKeys.lists(), }), - /** Invalidate a specific appOwnerGrant */ detail: ( + /** Invalidate a specific orgAdminGrant */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appOwnerGrantKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), + }), + }, + /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { + /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.all, + }), + /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.lists(), + }), + /** Invalidate a specific orgMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMembershipDefaultKeys.detail(id), + }), + }, + /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { + /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.all, + }), + /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.lists(), + }), + /** Invalidate a specific orgOwnerGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgOwnerGrantKeys.detail(id), }), }, /** Invalidate appLimitCapsDefault queries */ appLimitCapsDefault: { @@ -370,55 +420,21 @@ export const invalidate = { queryKey: orgLimitCapKeys.detail(id), }), }, - /** Invalidate orgAdminGrant queries */ orgAdminGrant: { - /** Invalidate all orgAdminGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.all, - }), - /** Invalidate orgAdminGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.lists(), - }), - /** Invalidate a specific orgAdminGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgAdminGrantKeys.detail(id), - }), - }, - /** Invalidate orgOwnerGrant queries */ orgOwnerGrant: { - /** Invalidate all orgOwnerGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.all, - }), - /** Invalidate orgOwnerGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.lists(), - }), - /** Invalidate a specific orgOwnerGrant */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgOwnerGrantKeys.detail(id), - }), - }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => + /** Invalidate orgChartEdge queries */ orgChartEdge: { + /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, + queryKey: orgChartEdgeKeys.all, }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), + queryKey: orgChartEdgeKeys.lists(), }), - /** Invalidate a specific membershipType */ detail: ( + /** Invalidate a specific orgChartEdge */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }), }, /** Invalidate appLimitDefault queries */ appLimitDefault: { @@ -472,38 +488,38 @@ export const invalidate = { queryKey: orgLimitCreditKeys.detail(id), }), }, - /** Invalidate appLimitWarning queries */ appLimitWarning: { - /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { + /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.all, + queryKey: appLimitCreditCodeKeys.all, }), - /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.lists(), + queryKey: appLimitCreditCodeKeys.lists(), }), - /** Invalidate a specific appLimitWarning */ detail: ( + /** Invalidate a specific appLimitCreditCode */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.detail(id), + queryKey: appLimitCreditCodeKeys.detail(id), }), }, - /** Invalidate orgLimitWarning queries */ orgLimitWarning: { - /** Invalidate all orgLimitWarning queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitWarning queries */ appLimitWarning: { + /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.all, + queryKey: appLimitWarningKeys.all, }), - /** Invalidate orgLimitWarning list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.lists(), + queryKey: appLimitWarningKeys.lists(), }), - /** Invalidate a specific orgLimitWarning */ detail: ( + /** Invalidate a specific appLimitWarning */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgLimitWarningKeys.detail(id), + queryKey: appLimitWarningKeys.detail(id), }), }, /** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: { @@ -540,52 +556,52 @@ export const invalidate = { queryKey: appClaimedInviteKeys.detail(id), }), }, - /** Invalidate appGrant queries */ appGrant: { - /** Invalidate all appGrant queries */ all: (queryClient: QueryClient) => + /** Invalidate orgLimitWarning queries */ orgLimitWarning: { + /** Invalidate all orgLimitWarning queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appGrantKeys.all, + queryKey: orgLimitWarningKeys.all, }), - /** Invalidate appGrant list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgLimitWarning list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appGrantKeys.lists(), + queryKey: orgLimitWarningKeys.lists(), }), - /** Invalidate a specific appGrant */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific orgLimitWarning */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: appGrantKeys.detail(id), + queryKey: orgLimitWarningKeys.detail(id), }), }, - /** Invalidate appMembershipDefault queries */ appMembershipDefault: { - /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate membershipType queries */ membershipType: { + /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.all, + queryKey: membershipTypeKeys.all, }), - /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), + queryKey: membershipTypeKeys.lists(), }), - /** Invalidate a specific appMembershipDefault */ detail: ( + /** Invalidate a specific membershipType */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }), }, - /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { - /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate appGrant queries */ appGrant: { + /** Invalidate all appGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.all, + queryKey: appGrantKeys.all, }), - /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appGrant list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), + queryKey: appGrantKeys.lists(), }), - /** Invalidate a specific orgMembershipDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => + /** Invalidate a specific appGrant */ detail: (queryClient: QueryClient, id: string | number) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: appGrantKeys.detail(id), }), }, /** Invalidate orgClaimedInvite queries */ orgClaimedInvite: { @@ -605,6 +621,20 @@ export const invalidate = { queryKey: orgClaimedInviteKeys.detail(id), }), }, + /** Invalidate orgGrant queries */ orgGrant: { + /** Invalidate all orgGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.all, + }), + /** Invalidate orgGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.lists(), + }), + /** Invalidate a specific orgGrant */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: orgGrantKeys.detail(id), + }), + }, /** Invalidate appLimitEvent queries */ appLimitEvent: { /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -639,52 +669,38 @@ export const invalidate = { queryKey: orgLimitEventKeys.detail(id), }), }, - /** Invalidate orgGrant queries */ orgGrant: { - /** Invalidate all orgGrant queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.all, - }), - /** Invalidate orgGrant list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.lists(), - }), - /** Invalidate a specific orgGrant */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: orgGrantKeys.detail(id), - }), - }, - /** Invalidate orgChartEdge queries */ orgChartEdge: { - /** Invalidate all orgChartEdge queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { + /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.all, + queryKey: orgMembershipSettingKeys.all, }), - /** Invalidate orgChartEdge list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.lists(), + queryKey: orgMembershipSettingKeys.lists(), }), - /** Invalidate a specific orgChartEdge */ detail: ( + /** Invalidate a specific orgMembershipSetting */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgChartEdgeKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }), }, - /** Invalidate usageSnapshot queries */ usageSnapshot: { - /** Invalidate all usageSnapshot queries */ all: (queryClient: QueryClient) => + /** Invalidate appMembership queries */ appMembership: { + /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.all, + queryKey: appMembershipKeys.all, }), - /** Invalidate usageSnapshot list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.lists(), + queryKey: appMembershipKeys.lists(), }), - /** Invalidate a specific usageSnapshot */ detail: ( + /** Invalidate a specific appMembership */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }), }, /** Invalidate appLimit queries */ appLimit: { @@ -701,38 +717,38 @@ export const invalidate = { queryKey: appLimitKeys.detail(id), }), }, - /** Invalidate appInvite queries */ appInvite: { - /** Invalidate all appInvite queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembership queries */ orgMembership: { + /** Invalidate all orgMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appInviteKeys.all, + queryKey: orgMembershipKeys.all, }), - /** Invalidate appInvite list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembership list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appInviteKeys.lists(), + queryKey: orgMembershipKeys.lists(), }), - /** Invalidate a specific appInvite */ detail: ( + /** Invalidate a specific orgMembership */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appInviteKeys.detail(id), + queryKey: orgMembershipKeys.detail(id), }), }, - /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { - /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMemberProfile queries */ orgMemberProfile: { + /** Invalidate all orgMemberProfile queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.all, + queryKey: orgMemberProfileKeys.all, }), - /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMemberProfile list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), + queryKey: orgMemberProfileKeys.lists(), }), - /** Invalidate a specific orgMembershipSetting */ detail: ( + /** Invalidate a specific orgMemberProfile */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: orgMemberProfileKeys.detail(id), }), }, /** Invalidate orgLimitAggregate queries */ orgLimitAggregate: { @@ -766,38 +782,21 @@ export const invalidate = { queryKey: orgLimitKeys.detail(id), }), }, - /** Invalidate orgMemberProfile queries */ orgMemberProfile: { - /** Invalidate all orgMemberProfile queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.all, - }), - /** Invalidate orgMemberProfile list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.lists(), - }), - /** Invalidate a specific orgMemberProfile */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMemberProfileKeys.detail(id), - }), - }, - /** Invalidate appMembership queries */ appMembership: { - /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => + /** Invalidate appInvite queries */ appInvite: { + /** Invalidate all appInvite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.all, + queryKey: appInviteKeys.all, }), - /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appInvite list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.lists(), + queryKey: appInviteKeys.lists(), }), - /** Invalidate a specific appMembership */ detail: ( + /** Invalidate a specific appInvite */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.detail(id), + queryKey: appInviteKeys.detail(id), }), }, /** Invalidate orgInvite queries */ orgInvite: { @@ -817,23 +816,6 @@ export const invalidate = { queryKey: orgInviteKeys.detail(id), }), }, - /** Invalidate orgMembership queries */ orgMembership: { - /** Invalidate all orgMembership queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.all, - }), - /** Invalidate orgMembership list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.lists(), - }), - /** Invalidate a specific orgMembership */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgMembershipKeys.detail(id), - }), - }, } as const; /** @@ -916,12 +898,20 @@ export const remove = { queryKey: appPermissionDefaultKeys.detail(id), }); }, - /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( + /** Remove appAdminGrant from cache */ appAdminGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), + queryKey: appAdminGrantKeys.detail(id), + }); + }, + /** Remove appOwnerGrant from cache */ appOwnerGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appOwnerGrantKeys.detail(id), }); }, /** Remove orgPermissionDefault from cache */ orgPermissionDefault: ( @@ -932,76 +922,76 @@ export const remove = { queryKey: orgPermissionDefaultKeys.detail(id), }); }, - /** Remove appAdminGrant from cache */ appAdminGrant: ( + /** Remove appMembershipDefault from cache */ appMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appAdminGrantKeys.detail(id), + queryKey: appMembershipDefaultKeys.detail(id), }); }, - /** Remove appOwnerGrant from cache */ appOwnerGrant: ( + /** Remove orgAdminGrant from cache */ orgAdminGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appOwnerGrantKeys.detail(id), + queryKey: orgAdminGrantKeys.detail(id), }); }, - /** Remove appLimitCapsDefault from cache */ appLimitCapsDefault: ( + /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCapsDefaultKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }); }, - /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: ( + /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitCapsDefaultKeys.detail(id), + queryKey: orgOwnerGrantKeys.detail(id), }); }, - /** Remove appLimitCap from cache */ appLimitCap: ( + /** Remove appLimitCapsDefault from cache */ appLimitCapsDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCapKeys.detail(id), + queryKey: appLimitCapsDefaultKeys.detail(id), }); }, - /** Remove orgLimitCap from cache */ orgLimitCap: ( + /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitCapKeys.detail(id), + queryKey: orgLimitCapsDefaultKeys.detail(id), }); }, - /** Remove orgAdminGrant from cache */ orgAdminGrant: ( + /** Remove appLimitCap from cache */ appLimitCap: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgAdminGrantKeys.detail(id), + queryKey: appLimitCapKeys.detail(id), }); }, - /** Remove orgOwnerGrant from cache */ orgOwnerGrant: ( + /** Remove orgLimitCap from cache */ orgLimitCap: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgOwnerGrantKeys.detail(id), + queryKey: orgLimitCapKeys.detail(id), }); }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove orgChartEdge from cache */ orgChartEdge: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgChartEdgeKeys.detail(id), }); }, /** Remove appLimitDefault from cache */ appLimitDefault: ( @@ -1028,20 +1018,20 @@ export const remove = { queryKey: orgLimitCreditKeys.detail(id), }); }, - /** Remove appLimitWarning from cache */ appLimitWarning: ( + /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitWarningKeys.detail(id), + queryKey: appLimitCreditCodeKeys.detail(id), }); }, - /** Remove orgLimitWarning from cache */ orgLimitWarning: ( + /** Remove appLimitWarning from cache */ appLimitWarning: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitWarningKeys.detail(id), + queryKey: appLimitWarningKeys.detail(id), }); }, /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( @@ -1060,25 +1050,25 @@ export const remove = { queryKey: appClaimedInviteKeys.detail(id), }); }, - /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appGrantKeys.detail(id), - }); - }, - /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + /** Remove orgLimitWarning from cache */ orgLimitWarning: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: orgLimitWarningKeys.detail(id), }); }, - /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( + /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), + }); + }, + /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appGrantKeys.detail(id), }); }, /** Remove orgClaimedInvite from cache */ orgClaimedInvite: ( @@ -1089,6 +1079,11 @@ export const remove = { queryKey: orgClaimedInviteKeys.detail(id), }); }, + /** Remove orgGrant from cache */ orgGrant: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgGrantKeys.detail(id), + }); + }, /** Remove appLimitEvent from cache */ appLimitEvent: ( queryClient: QueryClient, id: string | number @@ -1105,25 +1100,20 @@ export const remove = { queryKey: orgLimitEventKeys.detail(id), }); }, - /** Remove orgGrant from cache */ orgGrant: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: orgGrantKeys.detail(id), - }); - }, - /** Remove orgChartEdge from cache */ orgChartEdge: ( + /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgChartEdgeKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }); }, - /** Remove usageSnapshot from cache */ usageSnapshot: ( + /** Remove appMembership from cache */ appMembership: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: usageSnapshotKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }); }, /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { @@ -1131,17 +1121,20 @@ export const remove = { queryKey: appLimitKeys.detail(id), }); }, - /** Remove appInvite from cache */ appInvite: (queryClient: QueryClient, id: string | number) => { + /** Remove orgMembership from cache */ orgMembership: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: appInviteKeys.detail(id), + queryKey: orgMembershipKeys.detail(id), }); }, - /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( + /** Remove orgMemberProfile from cache */ orgMemberProfile: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: orgMemberProfileKeys.detail(id), }); }, /** Remove orgLimitAggregate from cache */ orgLimitAggregate: ( @@ -1157,20 +1150,9 @@ export const remove = { queryKey: orgLimitKeys.detail(id), }); }, - /** Remove orgMemberProfile from cache */ orgMemberProfile: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgMemberProfileKeys.detail(id), - }); - }, - /** Remove appMembership from cache */ appMembership: ( - queryClient: QueryClient, - id: string | number - ) => { + /** Remove appInvite from cache */ appInvite: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: appMembershipKeys.detail(id), + queryKey: appInviteKeys.detail(id), }); }, /** Remove orgInvite from cache */ orgInvite: (queryClient: QueryClient, id: string | number) => { @@ -1178,12 +1160,4 @@ export const remove = { queryKey: orgInviteKeys.detail(id), }); }, - /** Remove orgMembership from cache */ orgMembership: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgMembershipKeys.detail(id), - }); - }, } as const; diff --git a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts index ac54036239..e85af84448 100644 --- a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -107,24 +107,6 @@ export const appPermissionDefaultMutationKeys = { /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => ['mutation', 'apppermissiondefault', 'delete', id] as const, } as const; -export const appLimitCreditCodeMutationKeys = { - /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, - /** Create appLimitCreditCode mutation key */ create: () => - ['mutation', 'applimitcreditcode', 'create'] as const, - /** Update appLimitCreditCode mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditcode', 'update', id] as const, - /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditcode', '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 appAdminGrantMutationKeys = { /** All appAdminGrant mutation keys */ all: ['mutation', 'appadmingrant'] as const, /** Create appAdminGrant mutation key */ create: () => @@ -143,6 +125,51 @@ export const appOwnerGrantMutationKeys = { /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'appownergrant', '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 appMembershipDefaultMutationKeys = { + /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, + /** Create appMembershipDefault mutation key */ create: () => + ['mutation', 'appmembershipdefault', 'create'] as const, + /** Update appMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'appmembershipdefault', 'update', id] as const, + /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'appmembershipdefault', 'delete', id] as const, +} as const; +export const orgAdminGrantMutationKeys = { + /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, + /** Create orgAdminGrant mutation key */ create: () => + ['mutation', 'orgadmingrant', 'create'] as const, + /** Update orgAdminGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgadmingrant', 'update', id] as const, + /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgadmingrant', 'delete', id] as const, +} as const; +export const orgMembershipDefaultMutationKeys = { + /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, + /** Create orgMembershipDefault mutation key */ create: () => + ['mutation', 'orgmembershipdefault', 'create'] as const, + /** Update orgMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'update', id] as const, + /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'delete', id] as const, +} as const; +export const orgOwnerGrantMutationKeys = { + /** All orgOwnerGrant mutation keys */ all: ['mutation', 'orgownergrant'] as const, + /** Create orgOwnerGrant mutation key */ create: () => + ['mutation', 'orgownergrant', 'create'] as const, + /** Update orgOwnerGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgownergrant', 'update', id] as const, + /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgownergrant', 'delete', id] as const, +} as const; export const appLimitCapsDefaultMutationKeys = { /** All appLimitCapsDefault mutation keys */ all: ['mutation', 'applimitcapsdefault'] as const, /** Create appLimitCapsDefault mutation key */ create: () => @@ -179,32 +206,14 @@ export const orgLimitCapMutationKeys = { /** Delete orgLimitCap mutation key */ delete: (id: string | number) => ['mutation', 'orglimitcap', 'delete', id] as const, } as const; -export const orgAdminGrantMutationKeys = { - /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, - /** Create orgAdminGrant mutation key */ create: () => - ['mutation', 'orgadmingrant', 'create'] as const, - /** Update orgAdminGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgadmingrant', 'update', id] as const, - /** Delete orgAdminGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgadmingrant', 'delete', id] as const, -} as const; -export const orgOwnerGrantMutationKeys = { - /** All orgOwnerGrant mutation keys */ all: ['mutation', 'orgownergrant'] as const, - /** Create orgOwnerGrant mutation key */ create: () => - ['mutation', 'orgownergrant', 'create'] as const, - /** Update orgOwnerGrant mutation key */ update: (id: string | number) => - ['mutation', 'orgownergrant', 'update', id] as const, - /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orgownergrant', 'delete', id] as const, -} as const; -export const membershipTypeMutationKeys = { - /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, - /** Create membershipType mutation key */ create: () => - ['mutation', 'membershiptype', 'create'] as const, - /** Update membershipType mutation key */ update: (id: string | number) => - ['mutation', 'membershiptype', 'update', id] as const, - /** Delete membershipType mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptype', 'delete', id] as const, +export const orgChartEdgeMutationKeys = { + /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, + /** Create orgChartEdge mutation key */ create: () => + ['mutation', 'orgchartedge', 'create'] as const, + /** Update orgChartEdge mutation key */ update: (id: string | number) => + ['mutation', 'orgchartedge', 'update', id] as const, + /** Delete orgChartEdge mutation key */ delete: (id: string | number) => + ['mutation', 'orgchartedge', 'delete', id] as const, } as const; export const appLimitDefaultMutationKeys = { /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, @@ -233,6 +242,15 @@ export const orgLimitCreditMutationKeys = { /** Delete orgLimitCredit mutation key */ delete: (id: string | number) => ['mutation', 'orglimitcredit', 'delete', id] as const, } as const; +export const appLimitCreditCodeMutationKeys = { + /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, + /** Create appLimitCreditCode mutation key */ create: () => + ['mutation', 'applimitcreditcode', 'create'] as const, + /** Update appLimitCreditCode mutation key */ update: (id: string | number) => + ['mutation', 'applimitcreditcode', 'update', id] as const, + /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcreditcode', 'delete', id] as const, +} as const; export const appLimitWarningMutationKeys = { /** All appLimitWarning mutation keys */ all: ['mutation', 'applimitwarning'] as const, /** Create appLimitWarning mutation key */ create: () => @@ -242,15 +260,6 @@ export const appLimitWarningMutationKeys = { /** Delete appLimitWarning mutation key */ delete: (id: string | number) => ['mutation', 'applimitwarning', 'delete', id] as const, } as const; -export const orgLimitWarningMutationKeys = { - /** All orgLimitWarning mutation keys */ all: ['mutation', 'orglimitwarning'] as const, - /** Create orgLimitWarning mutation key */ create: () => - ['mutation', 'orglimitwarning', 'create'] as const, - /** Update orgLimitWarning mutation key */ update: (id: string | number) => - ['mutation', 'orglimitwarning', 'update', id] as const, - /** Delete orgLimitWarning mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitwarning', 'delete', id] as const, -} as const; export const orgChartEdgeGrantMutationKeys = { /** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'] as const, /** Create orgChartEdgeGrant mutation key */ create: () => @@ -269,6 +278,24 @@ export const appClaimedInviteMutationKeys = { /** Delete appClaimedInvite mutation key */ delete: (id: string | number) => ['mutation', 'appclaimedinvite', 'delete', id] as const, } as const; +export const orgLimitWarningMutationKeys = { + /** All orgLimitWarning mutation keys */ all: ['mutation', 'orglimitwarning'] as const, + /** Create orgLimitWarning mutation key */ create: () => + ['mutation', 'orglimitwarning', 'create'] as const, + /** Update orgLimitWarning mutation key */ update: (id: string | number) => + ['mutation', 'orglimitwarning', 'update', id] as const, + /** Delete orgLimitWarning mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitwarning', 'delete', id] as const, +} as const; +export const membershipTypeMutationKeys = { + /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, + /** Create membershipType mutation key */ create: () => + ['mutation', 'membershiptype', 'create'] as const, + /** Update membershipType mutation key */ update: (id: string | number) => + ['mutation', 'membershiptype', 'update', id] as const, + /** Delete membershipType mutation key */ delete: (id: string | number) => + ['mutation', 'membershiptype', 'delete', id] as const, +} as const; export const appGrantMutationKeys = { /** All appGrant mutation keys */ all: ['mutation', 'appgrant'] as const, /** Create appGrant mutation key */ create: () => ['mutation', 'appgrant', 'create'] as const, @@ -277,24 +304,6 @@ export const appGrantMutationKeys = { /** Delete appGrant mutation key */ delete: (id: string | number) => ['mutation', 'appgrant', 'delete', id] as const, } as const; -export const appMembershipDefaultMutationKeys = { - /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, - /** Create appMembershipDefault mutation key */ create: () => - ['mutation', 'appmembershipdefault', 'create'] as const, - /** Update appMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'appmembershipdefault', 'update', id] as const, - /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'appmembershipdefault', 'delete', id] as const, -} as const; -export const orgMembershipDefaultMutationKeys = { - /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, - /** Create orgMembershipDefault mutation key */ create: () => - ['mutation', 'orgmembershipdefault', 'create'] as const, - /** Update orgMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'update', id] as const, - /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'delete', id] as const, -} as const; export const orgClaimedInviteMutationKeys = { /** All orgClaimedInvite mutation keys */ all: ['mutation', 'orgclaimedinvite'] as const, /** Create orgClaimedInvite mutation key */ create: () => @@ -304,6 +313,14 @@ export const orgClaimedInviteMutationKeys = { /** Delete orgClaimedInvite mutation key */ delete: (id: string | number) => ['mutation', 'orgclaimedinvite', 'delete', id] as const, } as const; +export const orgGrantMutationKeys = { + /** All orgGrant mutation keys */ all: ['mutation', 'orggrant'] as const, + /** Create orgGrant mutation key */ create: () => ['mutation', 'orggrant', 'create'] as const, + /** Update orgGrant mutation key */ update: (id: string | number) => + ['mutation', 'orggrant', 'update', id] as const, + /** Delete orgGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orggrant', 'delete', id] as const, +} as const; export const appLimitEventMutationKeys = { /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, /** Create appLimitEvent mutation key */ create: () => @@ -322,31 +339,23 @@ export const orgLimitEventMutationKeys = { /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => ['mutation', 'orglimitevent', 'delete', id] as const, } as const; -export const orgGrantMutationKeys = { - /** All orgGrant mutation keys */ all: ['mutation', 'orggrant'] as const, - /** Create orgGrant mutation key */ create: () => ['mutation', 'orggrant', 'create'] as const, - /** Update orgGrant mutation key */ update: (id: string | number) => - ['mutation', 'orggrant', 'update', id] as const, - /** Delete orgGrant mutation key */ delete: (id: string | number) => - ['mutation', 'orggrant', 'delete', id] as const, -} as const; -export const orgChartEdgeMutationKeys = { - /** All orgChartEdge mutation keys */ all: ['mutation', 'orgchartedge'] as const, - /** Create orgChartEdge mutation key */ create: () => - ['mutation', 'orgchartedge', 'create'] as const, - /** Update orgChartEdge mutation key */ update: (id: string | number) => - ['mutation', 'orgchartedge', 'update', id] as const, - /** Delete orgChartEdge mutation key */ delete: (id: string | number) => - ['mutation', 'orgchartedge', 'delete', id] as const, +export const orgMembershipSettingMutationKeys = { + /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, + /** Create orgMembershipSetting mutation key */ create: () => + ['mutation', 'orgmembershipsetting', 'create'] as const, + /** Update orgMembershipSetting mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'update', id] as const, + /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'delete', id] as const, } as const; -export const usageSnapshotMutationKeys = { - /** All usageSnapshot mutation keys */ all: ['mutation', 'usagesnapshot'] as const, - /** Create usageSnapshot mutation key */ create: () => - ['mutation', 'usagesnapshot', 'create'] as const, - /** Update usageSnapshot mutation key */ update: (id: string | number) => - ['mutation', 'usagesnapshot', 'update', id] as const, - /** Delete usageSnapshot mutation key */ delete: (id: string | number) => - ['mutation', 'usagesnapshot', 'delete', id] as const, +export const appMembershipMutationKeys = { + /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, + /** Create appMembership mutation key */ create: () => + ['mutation', 'appmembership', 'create'] as const, + /** Update appMembership mutation key */ update: (id: string | number) => + ['mutation', 'appmembership', 'update', id] as const, + /** Delete appMembership mutation key */ delete: (id: string | number) => + ['mutation', 'appmembership', 'delete', id] as const, } as const; export const appLimitMutationKeys = { /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, @@ -356,22 +365,23 @@ export const appLimitMutationKeys = { /** Delete appLimit mutation key */ delete: (id: string | number) => ['mutation', 'applimit', 'delete', id] as const, } as const; -export const appInviteMutationKeys = { - /** All appInvite mutation keys */ all: ['mutation', 'appinvite'] as const, - /** Create appInvite mutation key */ create: () => ['mutation', 'appinvite', 'create'] as const, - /** Update appInvite mutation key */ update: (id: string | number) => - ['mutation', 'appinvite', 'update', id] as const, - /** Delete appInvite mutation key */ delete: (id: string | number) => - ['mutation', 'appinvite', 'delete', id] as const, +export const orgMembershipMutationKeys = { + /** All orgMembership mutation keys */ all: ['mutation', 'orgmembership'] as const, + /** Create orgMembership mutation key */ create: () => + ['mutation', 'orgmembership', 'create'] as const, + /** Update orgMembership mutation key */ update: (id: string | number) => + ['mutation', 'orgmembership', 'update', id] as const, + /** Delete orgMembership mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembership', 'delete', id] as const, } as const; -export const orgMembershipSettingMutationKeys = { - /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, - /** Create orgMembershipSetting mutation key */ create: () => - ['mutation', 'orgmembershipsetting', 'create'] as const, - /** Update orgMembershipSetting mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'update', id] as const, - /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'delete', id] as const, +export const orgMemberProfileMutationKeys = { + /** All orgMemberProfile mutation keys */ all: ['mutation', 'orgmemberprofile'] as const, + /** Create orgMemberProfile mutation key */ create: () => + ['mutation', 'orgmemberprofile', 'create'] as const, + /** Update orgMemberProfile mutation key */ update: (id: string | number) => + ['mutation', 'orgmemberprofile', 'update', id] as const, + /** Delete orgMemberProfile mutation key */ delete: (id: string | number) => + ['mutation', 'orgmemberprofile', 'delete', id] as const, } as const; export const orgLimitAggregateMutationKeys = { /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'] as const, @@ -390,23 +400,13 @@ export const orgLimitMutationKeys = { /** Delete orgLimit mutation key */ delete: (id: string | number) => ['mutation', 'orglimit', 'delete', id] as const, } as const; -export const orgMemberProfileMutationKeys = { - /** All orgMemberProfile mutation keys */ all: ['mutation', 'orgmemberprofile'] as const, - /** Create orgMemberProfile mutation key */ create: () => - ['mutation', 'orgmemberprofile', 'create'] as const, - /** Update orgMemberProfile mutation key */ update: (id: string | number) => - ['mutation', 'orgmemberprofile', 'update', id] as const, - /** Delete orgMemberProfile mutation key */ delete: (id: string | number) => - ['mutation', 'orgmemberprofile', 'delete', id] as const, -} as const; -export const appMembershipMutationKeys = { - /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, - /** Create appMembership mutation key */ create: () => - ['mutation', 'appmembership', 'create'] as const, - /** Update appMembership mutation key */ update: (id: string | number) => - ['mutation', 'appmembership', 'update', id] as const, - /** Delete appMembership mutation key */ delete: (id: string | number) => - ['mutation', 'appmembership', 'delete', id] as const, +export const appInviteMutationKeys = { + /** All appInvite mutation keys */ all: ['mutation', 'appinvite'] as const, + /** Create appInvite mutation key */ create: () => ['mutation', 'appinvite', 'create'] as const, + /** Update appInvite mutation key */ update: (id: string | number) => + ['mutation', 'appinvite', 'update', id] as const, + /** Delete appInvite mutation key */ delete: (id: string | number) => + ['mutation', 'appinvite', 'delete', id] as const, } as const; export const orgInviteMutationKeys = { /** All orgInvite mutation keys */ all: ['mutation', 'orginvite'] as const, @@ -416,15 +416,6 @@ export const orgInviteMutationKeys = { /** Delete orgInvite mutation key */ delete: (id: string | number) => ['mutation', 'orginvite', 'delete', id] as const, } as const; -export const orgMembershipMutationKeys = { - /** All orgMembership mutation keys */ all: ['mutation', 'orgmembership'] as const, - /** Create orgMembership mutation key */ create: () => - ['mutation', 'orgmembership', 'create'] as const, - /** Update orgMembership mutation key */ update: (id: string | number) => - ['mutation', 'orgmembership', 'update', id] as const, - /** Delete orgMembership mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembership', 'delete', id] as const, -} as const; // ============================================================================ // Custom Mutation Keys @@ -476,41 +467,40 @@ export const mutationKeys = { appLimitCredit: appLimitCreditMutationKeys, orgMember: orgMemberMutationKeys, appPermissionDefault: appPermissionDefaultMutationKeys, - appLimitCreditCode: appLimitCreditCodeMutationKeys, - orgPermissionDefault: orgPermissionDefaultMutationKeys, appAdminGrant: appAdminGrantMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, + orgPermissionDefault: orgPermissionDefaultMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, + orgAdminGrant: orgAdminGrantMutationKeys, + orgMembershipDefault: orgMembershipDefaultMutationKeys, + orgOwnerGrant: orgOwnerGrantMutationKeys, appLimitCapsDefault: appLimitCapsDefaultMutationKeys, orgLimitCapsDefault: orgLimitCapsDefaultMutationKeys, appLimitCap: appLimitCapMutationKeys, orgLimitCap: orgLimitCapMutationKeys, - orgAdminGrant: orgAdminGrantMutationKeys, - orgOwnerGrant: orgOwnerGrantMutationKeys, - membershipType: membershipTypeMutationKeys, + orgChartEdge: orgChartEdgeMutationKeys, appLimitDefault: appLimitDefaultMutationKeys, orgLimitDefault: orgLimitDefaultMutationKeys, orgLimitCredit: orgLimitCreditMutationKeys, + appLimitCreditCode: appLimitCreditCodeMutationKeys, appLimitWarning: appLimitWarningMutationKeys, - orgLimitWarning: orgLimitWarningMutationKeys, orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, appClaimedInvite: appClaimedInviteMutationKeys, + orgLimitWarning: orgLimitWarningMutationKeys, + membershipType: membershipTypeMutationKeys, appGrant: appGrantMutationKeys, - appMembershipDefault: appMembershipDefaultMutationKeys, - orgMembershipDefault: orgMembershipDefaultMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, + orgGrant: orgGrantMutationKeys, appLimitEvent: appLimitEventMutationKeys, orgLimitEvent: orgLimitEventMutationKeys, - orgGrant: orgGrantMutationKeys, - orgChartEdge: orgChartEdgeMutationKeys, - usageSnapshot: usageSnapshotMutationKeys, - appLimit: appLimitMutationKeys, - appInvite: appInviteMutationKeys, orgMembershipSetting: orgMembershipSettingMutationKeys, + appMembership: appMembershipMutationKeys, + appLimit: appLimitMutationKeys, + orgMembership: orgMembershipMutationKeys, + orgMemberProfile: orgMemberProfileMutationKeys, orgLimitAggregate: orgLimitAggregateMutationKeys, orgLimit: orgLimitMutationKeys, - orgMemberProfile: orgMemberProfileMutationKeys, - appMembership: appMembershipMutationKeys, + appInvite: appInviteMutationKeys, orgInvite: orgInviteMutationKeys, - orgMembership: orgMembershipMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts index 7997efc612..67392a6b77 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -26,18 +26,27 @@ export * from './useDeleteOrgMemberMutation'; export * from './useCreateAppPermissionDefaultMutation'; export * from './useUpdateAppPermissionDefaultMutation'; export * from './useDeleteAppPermissionDefaultMutation'; -export * from './useCreateAppLimitCreditCodeMutation'; -export * from './useUpdateAppLimitCreditCodeMutation'; -export * from './useDeleteAppLimitCreditCodeMutation'; -export * from './useCreateOrgPermissionDefaultMutation'; -export * from './useUpdateOrgPermissionDefaultMutation'; -export * from './useDeleteOrgPermissionDefaultMutation'; export * from './useCreateAppAdminGrantMutation'; export * from './useUpdateAppAdminGrantMutation'; export * from './useDeleteAppAdminGrantMutation'; export * from './useCreateAppOwnerGrantMutation'; export * from './useUpdateAppOwnerGrantMutation'; export * from './useDeleteAppOwnerGrantMutation'; +export * from './useCreateOrgPermissionDefaultMutation'; +export * from './useUpdateOrgPermissionDefaultMutation'; +export * from './useDeleteOrgPermissionDefaultMutation'; +export * from './useCreateAppMembershipDefaultMutation'; +export * from './useUpdateAppMembershipDefaultMutation'; +export * from './useDeleteAppMembershipDefaultMutation'; +export * from './useCreateOrgAdminGrantMutation'; +export * from './useUpdateOrgAdminGrantMutation'; +export * from './useDeleteOrgAdminGrantMutation'; +export * from './useCreateOrgMembershipDefaultMutation'; +export * from './useUpdateOrgMembershipDefaultMutation'; +export * from './useDeleteOrgMembershipDefaultMutation'; +export * from './useCreateOrgOwnerGrantMutation'; +export * from './useUpdateOrgOwnerGrantMutation'; +export * from './useDeleteOrgOwnerGrantMutation'; export * from './useCreateAppLimitCapsDefaultMutation'; export * from './useUpdateAppLimitCapsDefaultMutation'; export * from './useDeleteAppLimitCapsDefaultMutation'; @@ -50,15 +59,9 @@ export * from './useDeleteAppLimitCapMutation'; export * from './useCreateOrgLimitCapMutation'; export * from './useUpdateOrgLimitCapMutation'; export * from './useDeleteOrgLimitCapMutation'; -export * from './useCreateOrgAdminGrantMutation'; -export * from './useUpdateOrgAdminGrantMutation'; -export * from './useDeleteOrgAdminGrantMutation'; -export * from './useCreateOrgOwnerGrantMutation'; -export * from './useUpdateOrgOwnerGrantMutation'; -export * from './useDeleteOrgOwnerGrantMutation'; -export * from './useCreateMembershipTypeMutation'; -export * from './useUpdateMembershipTypeMutation'; -export * from './useDeleteMembershipTypeMutation'; +export * from './useCreateOrgChartEdgeMutation'; +export * from './useUpdateOrgChartEdgeMutation'; +export * from './useDeleteOrgChartEdgeMutation'; export * from './useCreateAppLimitDefaultMutation'; export * from './useUpdateAppLimitDefaultMutation'; export * from './useDeleteAppLimitDefaultMutation'; @@ -68,68 +71,66 @@ export * from './useDeleteOrgLimitDefaultMutation'; export * from './useCreateOrgLimitCreditMutation'; export * from './useUpdateOrgLimitCreditMutation'; export * from './useDeleteOrgLimitCreditMutation'; +export * from './useCreateAppLimitCreditCodeMutation'; +export * from './useUpdateAppLimitCreditCodeMutation'; +export * from './useDeleteAppLimitCreditCodeMutation'; export * from './useCreateAppLimitWarningMutation'; export * from './useUpdateAppLimitWarningMutation'; export * from './useDeleteAppLimitWarningMutation'; -export * from './useCreateOrgLimitWarningMutation'; -export * from './useUpdateOrgLimitWarningMutation'; -export * from './useDeleteOrgLimitWarningMutation'; export * from './useCreateOrgChartEdgeGrantMutation'; export * from './useUpdateOrgChartEdgeGrantMutation'; export * from './useDeleteOrgChartEdgeGrantMutation'; export * from './useCreateAppClaimedInviteMutation'; export * from './useUpdateAppClaimedInviteMutation'; export * from './useDeleteAppClaimedInviteMutation'; +export * from './useCreateOrgLimitWarningMutation'; +export * from './useUpdateOrgLimitWarningMutation'; +export * from './useDeleteOrgLimitWarningMutation'; +export * from './useCreateMembershipTypeMutation'; +export * from './useUpdateMembershipTypeMutation'; +export * from './useDeleteMembershipTypeMutation'; export * from './useCreateAppGrantMutation'; export * from './useUpdateAppGrantMutation'; export * from './useDeleteAppGrantMutation'; -export * from './useCreateAppMembershipDefaultMutation'; -export * from './useUpdateAppMembershipDefaultMutation'; -export * from './useDeleteAppMembershipDefaultMutation'; -export * from './useCreateOrgMembershipDefaultMutation'; -export * from './useUpdateOrgMembershipDefaultMutation'; -export * from './useDeleteOrgMembershipDefaultMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; -export * from './useCreateAppLimitEventMutation'; -export * from './useCreateOrgLimitEventMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; -export * from './useCreateOrgChartEdgeMutation'; -export * from './useUpdateOrgChartEdgeMutation'; -export * from './useDeleteOrgChartEdgeMutation'; -export * from './useCreateUsageSnapshotMutation'; -export * from './useUpdateUsageSnapshotMutation'; -export * from './useDeleteUsageSnapshotMutation'; -export * from './useCreateAppLimitMutation'; -export * from './useUpdateAppLimitMutation'; -export * from './useDeleteAppLimitMutation'; -export * from './useCreateAppInviteMutation'; -export * from './useUpdateAppInviteMutation'; -export * from './useDeleteAppInviteMutation'; +export * from './useCreateAppLimitEventMutation'; +export * from './useUpdateAppLimitEventMutation'; +export * from './useDeleteAppLimitEventMutation'; +export * from './useCreateOrgLimitEventMutation'; +export * from './useUpdateOrgLimitEventMutation'; +export * from './useDeleteOrgLimitEventMutation'; export * from './useCreateOrgMembershipSettingMutation'; export * from './useUpdateOrgMembershipSettingMutation'; export * from './useDeleteOrgMembershipSettingMutation'; +export * from './useCreateAppMembershipMutation'; +export * from './useUpdateAppMembershipMutation'; +export * from './useDeleteAppMembershipMutation'; +export * from './useCreateAppLimitMutation'; +export * from './useUpdateAppLimitMutation'; +export * from './useDeleteAppLimitMutation'; +export * from './useCreateOrgMembershipMutation'; +export * from './useUpdateOrgMembershipMutation'; +export * from './useDeleteOrgMembershipMutation'; +export * from './useCreateOrgMemberProfileMutation'; +export * from './useUpdateOrgMemberProfileMutation'; +export * from './useDeleteOrgMemberProfileMutation'; export * from './useCreateOrgLimitAggregateMutation'; export * from './useUpdateOrgLimitAggregateMutation'; export * from './useDeleteOrgLimitAggregateMutation'; export * from './useCreateOrgLimitMutation'; export * from './useUpdateOrgLimitMutation'; export * from './useDeleteOrgLimitMutation'; -export * from './useCreateOrgMemberProfileMutation'; -export * from './useUpdateOrgMemberProfileMutation'; -export * from './useDeleteOrgMemberProfileMutation'; -export * from './useCreateAppMembershipMutation'; -export * from './useUpdateAppMembershipMutation'; -export * from './useDeleteAppMembershipMutation'; +export * from './useCreateAppInviteMutation'; +export * from './useUpdateAppInviteMutation'; +export * from './useDeleteAppInviteMutation'; export * from './useCreateOrgInviteMutation'; export * from './useUpdateOrgInviteMutation'; export * from './useDeleteOrgInviteMutation'; -export * from './useCreateOrgMembershipMutation'; -export * from './useUpdateOrgMembershipMutation'; -export * from './useDeleteOrgMembershipMutation'; export * from './useSubmitAppInviteCodeMutation'; export * from './useSubmitOrgInviteCodeMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateUsageSnapshotMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateUsageSnapshotMutation.ts deleted file mode 100644 index 0dc6f30009..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useCreateUsageSnapshotMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * @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 { usageSnapshotKeys } from '../query-keys'; -import { usageSnapshotMutationKeys } from '../mutation-keys'; -import type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - CreateUsageSnapshotInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - CreateUsageSnapshotInput, -} from '../../orm/input-types'; -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateUsageSnapshotMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateUsageSnapshotMutation( - params: { - selection: { - fields: S & UsageSnapshotSelect; - } & HookStrictSelect, UsageSnapshotSelect>; - } & Omit< - UseMutationOptions< - { - createUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - CreateUsageSnapshotInput['usageSnapshot'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - CreateUsageSnapshotInput['usageSnapshot'] ->; -export function useCreateUsageSnapshotMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: usageSnapshotMutationKeys.create(), - mutationFn: (data: CreateUsageSnapshotInput['usageSnapshot']) => - getClient() - .usageSnapshot.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitEventMutation.ts similarity index 54% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts rename to sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitEventMutation.ts index 6abac002e4..2c97fe2946 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppLimitEventMutation.ts @@ -1,5 +1,5 @@ /** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * Append-only log of limit events for historical reporting and audit * @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 { auditLogKeys } from '../query-keys'; -import { auditLogMutationKeys } from '../mutation-keys'; -import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +import { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; /** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * Append-only log of limit events for historical reporting and audit * * @example * ```tsx - * const { mutate, isPending } = useDeleteAuditLogMutation({ + * const { mutate, isPending } = useDeleteAppLimitEventMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteAuditLogMutation( +export function useDeleteAppLimitEventMutation( params: { selection: { - fields: S & AuditLogSelect; - } & HookStrictSelect, AuditLogSelect>; + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; } & Omit< UseMutationOptions< { - deleteAuditLog: { - auditLog: InferSelectResult; + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteAuditLogMutation( > ): UseMutationResult< { - deleteAuditLog: { - auditLog: InferSelectResult; + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteAuditLogMutation( id: string; } >; -export function useDeleteAuditLogMutation( +export function useDeleteAppLimitEventMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteAuditLogMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: auditLogMutationKeys.all, + mutationKey: appLimitEventMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .auditLog.delete({ + .appLimitEvent.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteAuditLogMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: auditLogKeys.detail(variables.id), + queryKey: appLimitEventKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: auditLogKeys.lists(), + queryKey: appLimitEventKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteUsageSnapshotMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitEventMutation.ts similarity index 50% rename from sdk/constructive-react/src/admin/hooks/mutations/useDeleteUsageSnapshotMutation.ts rename to sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitEventMutation.ts index 91f5fc5ee6..a0a4a3b2a7 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteUsageSnapshotMutation.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitEventMutation.ts @@ -1,5 +1,5 @@ /** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. + * Append-only log of limit events for historical reporting and audit * @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 { usageSnapshotKeys } from '../query-keys'; -import { usageSnapshotMutationKeys } from '../mutation-keys'; -import type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types'; +import { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types'; +export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; /** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. + * Append-only log of limit events for historical reporting and audit * * @example * ```tsx - * const { mutate, isPending } = useDeleteUsageSnapshotMutation({ + * const { mutate, isPending } = useDeleteOrgLimitEventMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteUsageSnapshotMutation( +export function useDeleteOrgLimitEventMutation( params: { selection: { - fields: S & UsageSnapshotSelect; - } & HookStrictSelect, UsageSnapshotSelect>; + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; } & Omit< UseMutationOptions< { - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteUsageSnapshotMutation( > ): UseMutationResult< { - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteUsageSnapshotMutation( id: string; } >; -export function useDeleteUsageSnapshotMutation( +export function useDeleteOrgLimitEventMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteUsageSnapshotMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: usageSnapshotMutationKeys.all, + mutationKey: orgLimitEventMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .usageSnapshot.delete({ + .orgLimitEvent.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteUsageSnapshotMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: usageSnapshotKeys.detail(variables.id), + queryKey: orgLimitEventKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.lists(), + queryKey: orgLimitEventKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitEventMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitEventMutation.ts new file mode 100644 index 0000000000..7234a1d236 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppLimitEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventPatch, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLimitEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLimitEventMutation( + params: { + selection: { + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } +>; +export function useUpdateAppLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitEventMutationKeys.all, + mutationFn: ({ + id, + appLimitEventPatch, + }: { + id: string; + appLimitEventPatch: AppLimitEventPatch; + }) => + getClient() + .appLimitEvent.update({ + where: { + id, + }, + data: appLimitEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitEventMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitEventMutation.ts new file mode 100644 index 0000000000..6809f97605 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventPatch, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitEventMutation( + params: { + selection: { + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } +>; +export function useUpdateOrgLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitEventMutationKeys.all, + mutationFn: ({ + id, + orgLimitEventPatch, + }: { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + }) => + getClient() + .orgLimitEvent.update({ + where: { + id, + }, + data: orgLimitEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateUsageSnapshotMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateUsageSnapshotMutation.ts deleted file mode 100644 index acc705d60b..0000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateUsageSnapshotMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * @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 { usageSnapshotKeys } from '../query-keys'; -import { usageSnapshotMutationKeys } from '../mutation-keys'; -import type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - UsageSnapshotPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - UsageSnapshotPatch, -} from '../../orm/input-types'; -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateUsageSnapshotMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', usageSnapshotPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateUsageSnapshotMutation( - params: { - selection: { - fields: S & UsageSnapshotSelect; - } & HookStrictSelect, UsageSnapshotSelect>; - } & Omit< - UseMutationOptions< - { - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - { - id: string; - usageSnapshotPatch: UsageSnapshotPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - { - id: string; - usageSnapshotPatch: UsageSnapshotPatch; - } ->; -export function useUpdateUsageSnapshotMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - usageSnapshotPatch: UsageSnapshotPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: usageSnapshotMutationKeys.all, - mutationFn: ({ - id, - usageSnapshotPatch, - }: { - id: string; - usageSnapshotPatch: UsageSnapshotPatch; - }) => - getClient() - .usageSnapshot.update({ - where: { - id, - }, - data: usageSnapshotPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/index.ts b/sdk/constructive-react/src/admin/hooks/queries/index.ts index 5e85250435..b9dbd1422e 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/index.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -19,14 +19,20 @@ export * from './useOrgMembersQuery'; export * from './useOrgMemberQuery'; export * from './useAppPermissionDefaultsQuery'; export * from './useAppPermissionDefaultQuery'; -export * from './useAppLimitCreditCodesQuery'; -export * from './useAppLimitCreditCodeQuery'; -export * from './useOrgPermissionDefaultsQuery'; -export * from './useOrgPermissionDefaultQuery'; export * from './useAppAdminGrantsQuery'; export * from './useAppAdminGrantQuery'; export * from './useAppOwnerGrantsQuery'; export * from './useAppOwnerGrantQuery'; +export * from './useOrgPermissionDefaultsQuery'; +export * from './useOrgPermissionDefaultQuery'; +export * from './useAppMembershipDefaultsQuery'; +export * from './useAppMembershipDefaultQuery'; +export * from './useOrgAdminGrantsQuery'; +export * from './useOrgAdminGrantQuery'; +export * from './useOrgMembershipDefaultsQuery'; +export * from './useOrgMembershipDefaultQuery'; +export * from './useOrgOwnerGrantsQuery'; +export * from './useOrgOwnerGrantQuery'; export * from './useAppLimitCapsDefaultsQuery'; export * from './useAppLimitCapsDefaultQuery'; export * from './useOrgLimitCapsDefaultsQuery'; @@ -35,60 +41,54 @@ export * from './useAppLimitCapsQuery'; export * from './useAppLimitCapQuery'; export * from './useOrgLimitCapsQuery'; export * from './useOrgLimitCapQuery'; -export * from './useOrgAdminGrantsQuery'; -export * from './useOrgAdminGrantQuery'; -export * from './useOrgOwnerGrantsQuery'; -export * from './useOrgOwnerGrantQuery'; -export * from './useMembershipTypesQuery'; -export * from './useMembershipTypeQuery'; +export * from './useOrgChartEdgesQuery'; +export * from './useOrgChartEdgeQuery'; export * from './useAppLimitDefaultsQuery'; export * from './useAppLimitDefaultQuery'; export * from './useOrgLimitDefaultsQuery'; export * from './useOrgLimitDefaultQuery'; export * from './useOrgLimitCreditsQuery'; export * from './useOrgLimitCreditQuery'; +export * from './useAppLimitCreditCodesQuery'; +export * from './useAppLimitCreditCodeQuery'; export * from './useAppLimitWarningsQuery'; export * from './useAppLimitWarningQuery'; -export * from './useOrgLimitWarningsQuery'; -export * from './useOrgLimitWarningQuery'; export * from './useOrgChartEdgeGrantsQuery'; export * from './useOrgChartEdgeGrantQuery'; export * from './useAppClaimedInvitesQuery'; export * from './useAppClaimedInviteQuery'; +export * from './useOrgLimitWarningsQuery'; +export * from './useOrgLimitWarningQuery'; +export * from './useMembershipTypesQuery'; +export * from './useMembershipTypeQuery'; export * from './useAppGrantsQuery'; export * from './useAppGrantQuery'; -export * from './useAppMembershipDefaultsQuery'; -export * from './useAppMembershipDefaultQuery'; -export * from './useOrgMembershipDefaultsQuery'; -export * from './useOrgMembershipDefaultQuery'; export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; -export * from './useAppLimitEventsQuery'; -export * from './useOrgLimitEventsQuery'; export * from './useOrgGrantsQuery'; export * from './useOrgGrantQuery'; -export * from './useOrgChartEdgesQuery'; -export * from './useOrgChartEdgeQuery'; -export * from './useUsageSnapshotsQuery'; -export * from './useUsageSnapshotQuery'; -export * from './useAppLimitsQuery'; -export * from './useAppLimitQuery'; -export * from './useAppInvitesQuery'; -export * from './useAppInviteQuery'; +export * from './useAppLimitEventsQuery'; +export * from './useAppLimitEventQuery'; +export * from './useOrgLimitEventsQuery'; +export * from './useOrgLimitEventQuery'; export * from './useOrgMembershipSettingsQuery'; export * from './useOrgMembershipSettingQuery'; +export * from './useAppMembershipsQuery'; +export * from './useAppMembershipQuery'; +export * from './useAppLimitsQuery'; +export * from './useAppLimitQuery'; +export * from './useOrgMembershipsQuery'; +export * from './useOrgMembershipQuery'; +export * from './useOrgMemberProfilesQuery'; +export * from './useOrgMemberProfileQuery'; export * from './useOrgLimitAggregatesQuery'; export * from './useOrgLimitAggregateQuery'; export * from './useOrgLimitsQuery'; export * from './useOrgLimitQuery'; -export * from './useOrgMemberProfilesQuery'; -export * from './useOrgMemberProfileQuery'; -export * from './useAppMembershipsQuery'; -export * from './useAppMembershipQuery'; +export * from './useAppInvitesQuery'; +export * from './useAppInviteQuery'; export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; -export * from './useOrgMembershipsQuery'; -export * from './useOrgMembershipQuery'; export * from './useAppPermissionsGetPaddedMaskQuery'; export * from './useOrgPermissionsGetPaddedMaskQuery'; export * from './useOrgIsManagerOfQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventQuery.ts new file mode 100644 index 0000000000..3303e3895d --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { appLimitEventKeys } from '../query-keys'; +import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitEventQueryKey = appLimitEventKeys.detail; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLimitEventQuery< + S extends AppLimitEventSelect, + TData = { + appLimitEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + appLimitEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchAppLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLimitEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; +}): Promise<{ + appLimitEvent: InferSelectResult | null; +}>; +export async function fetchAppLimitEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchAppLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; + } +): Promise; +export async function prefetchAppLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventQuery.ts new file mode 100644 index 0000000000..1f471a60a7 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { orgLimitEventKeys } from '../query-keys'; +import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitEventQueryKey = orgLimitEventKeys.detail; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitEventQuery< + S extends OrgLimitEventSelect, + TData = { + orgLimitEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchOrgLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; +}): Promise<{ + orgLimitEvent: InferSelectResult | null; +}>; +export async function fetchOrgLimitEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchOrgLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; + } +): Promise; +export async function prefetchOrgLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useUsageSnapshotQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useUsageSnapshotQuery.ts deleted file mode 100644 index 012efead9d..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useUsageSnapshotQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * @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 { usageSnapshotKeys } from '../query-keys'; -import type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const usageSnapshotQueryKey = usageSnapshotKeys.detail; -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```tsx - * const { data, isLoading } = useUsageSnapshotQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useUsageSnapshotQuery< - S extends UsageSnapshotSelect, - TData = { - usageSnapshot: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UsageSnapshotSelect>; - } & Omit< - UseQueryOptions< - { - usageSnapshot: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUsageSnapshotQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: usageSnapshotKeys.detail(params.id), - queryFn: () => - getClient() - .usageSnapshot.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```ts - * const data = await fetchUsageSnapshotQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchUsageSnapshotQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UsageSnapshotSelect>; -}): Promise<{ - usageSnapshot: InferSelectResult | null; -}>; -export async function fetchUsageSnapshotQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .usageSnapshot.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```ts - * await prefetchUsageSnapshotQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchUsageSnapshotQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UsageSnapshotSelect>; - } -): Promise; -export async function prefetchUsageSnapshotQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: usageSnapshotKeys.detail(params.id), - queryFn: () => - getClient() - .usageSnapshot.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useUsageSnapshotsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useUsageSnapshotsQuery.ts deleted file mode 100644 index 7e152a0ea4..0000000000 --- a/sdk/constructive-react/src/admin/hooks/queries/useUsageSnapshotsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * @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 { usageSnapshotKeys } from '../query-keys'; -import type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - UsageSnapshotFilter, - UsageSnapshotOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - UsageSnapshotFilter, - UsageSnapshotOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const usageSnapshotsQueryKey = usageSnapshotKeys.list; -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```tsx - * const { data, isLoading } = useUsageSnapshotsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useUsageSnapshotsQuery< - S extends UsageSnapshotSelect, - TData = { - usageSnapshots: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UsageSnapshotSelect>; - } & Omit< - UseQueryOptions< - { - usageSnapshots: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUsageSnapshotsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: usageSnapshotKeys.list(args), - queryFn: () => getClient().usageSnapshot.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```ts - * const data = await fetchUsageSnapshotsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchUsageSnapshotsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UsageSnapshotSelect>; -}): Promise<{ - usageSnapshots: ConnectionResult>; -}>; -export async function fetchUsageSnapshotsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy - >(params.selection); - return getClient().usageSnapshot.findMany(args).unwrap(); -} -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```ts - * await prefetchUsageSnapshotsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchUsageSnapshotsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UsageSnapshotSelect>; - } -): Promise; -export async function prefetchUsageSnapshotsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: usageSnapshotKeys.list(args), - queryFn: () => getClient().usageSnapshot.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/query-keys.ts b/sdk/constructive-react/src/admin/hooks/query-keys.ts index af275e5e23..ab33b73828 100644 --- a/sdk/constructive-react/src/admin/hooks/query-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -100,24 +100,6 @@ export const appPermissionDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appPermissionDefaultKeys.details(), id] as const, } as const; -export const appLimitCreditCodeKeys = { - /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, - /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitCreditCodeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitCreditCodeKeys.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 appAdminGrantKeys = { /** All appAdminGrant queries */ all: ['appadmingrant'] as const, /** List query keys */ lists: () => [...appAdminGrantKeys.all, 'list'] as const, @@ -136,6 +118,51 @@ export const appOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appOwnerGrantKeys.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 appMembershipDefaultKeys = { + /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, + /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appMembershipDefaultKeys.details(), id] as const, +} as const; +export const orgAdminGrantKeys = { + /** All orgAdminGrant queries */ all: ['orgadmingrant'] as const, + /** List query keys */ lists: () => [...orgAdminGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgAdminGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgAdminGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgAdminGrantKeys.details(), id] as const, +} as const; +export const orgMembershipDefaultKeys = { + /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, + /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMembershipDefaultKeys.details(), id] as const, +} as const; +export const orgOwnerGrantKeys = { + /** All orgOwnerGrant queries */ all: ['orgownergrant'] as const, + /** List query keys */ lists: () => [...orgOwnerGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgOwnerGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgOwnerGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgOwnerGrantKeys.details(), id] as const, +} as const; export const appLimitCapsDefaultKeys = { /** All appLimitCapsDefault queries */ all: ['applimitcapsdefault'] as const, /** List query keys */ lists: () => [...appLimitCapsDefaultKeys.all, 'list'] as const, @@ -172,32 +199,14 @@ export const orgLimitCapKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitCapKeys.details(), id] as const, } as const; -export const orgAdminGrantKeys = { - /** All orgAdminGrant queries */ all: ['orgadmingrant'] as const, - /** List query keys */ lists: () => [...orgAdminGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgAdminGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgAdminGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgAdminGrantKeys.details(), id] as const, -} as const; -export const orgOwnerGrantKeys = { - /** All orgOwnerGrant queries */ all: ['orgownergrant'] as const, - /** List query keys */ lists: () => [...orgOwnerGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgOwnerGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgOwnerGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgOwnerGrantKeys.details(), id] as const, -} as const; -export const membershipTypeKeys = { - /** All membershipType queries */ all: ['membershiptype'] as const, - /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, +export const orgChartEdgeKeys = { + /** All orgChartEdge queries */ all: ['orgchartedge'] as const, + /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...membershipTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, + [...orgChartEdgeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypeKeys.details(), id] as const, + [...orgChartEdgeKeys.details(), id] as const, } as const; export const appLimitDefaultKeys = { /** All appLimitDefault queries */ all: ['applimitdefault'] as const, @@ -226,6 +235,15 @@ export const orgLimitCreditKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitCreditKeys.details(), id] as const, } as const; +export const appLimitCreditCodeKeys = { + /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, + /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCreditCodeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCreditCodeKeys.details(), id] as const, +} as const; export const appLimitWarningKeys = { /** All appLimitWarning queries */ all: ['applimitwarning'] as const, /** List query keys */ lists: () => [...appLimitWarningKeys.all, 'list'] as const, @@ -235,15 +253,6 @@ export const appLimitWarningKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appLimitWarningKeys.details(), id] as const, } as const; -export const orgLimitWarningKeys = { - /** All orgLimitWarning queries */ all: ['orglimitwarning'] as const, - /** List query keys */ lists: () => [...orgLimitWarningKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitWarningKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitWarningKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitWarningKeys.details(), id] as const, -} as const; export const orgChartEdgeGrantKeys = { /** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'] as const, /** List query keys */ lists: () => [...orgChartEdgeGrantKeys.all, 'list'] as const, @@ -262,32 +271,32 @@ export const appClaimedInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appClaimedInviteKeys.details(), id] as const, } as const; -export const appGrantKeys = { - /** All appGrant queries */ all: ['appgrant'] as const, - /** List query keys */ lists: () => [...appGrantKeys.all, 'list'] as const, +export const orgLimitWarningKeys = { + /** All orgLimitWarning queries */ all: ['orglimitwarning'] as const, + /** List query keys */ lists: () => [...orgLimitWarningKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appGrantKeys.all, 'detail'] as const, + [...orgLimitWarningKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitWarningKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appGrantKeys.details(), id] as const, + [...orgLimitWarningKeys.details(), id] as const, } as const; -export const appMembershipDefaultKeys = { - /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, - /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, +export const membershipTypeKeys = { + /** All membershipType queries */ all: ['membershiptype'] as const, + /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + [...membershipTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipDefaultKeys.details(), id] as const, + [...membershipTypeKeys.details(), id] as const, } as const; -export const orgMembershipDefaultKeys = { - /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, - /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, +export const appGrantKeys = { + /** All appGrant queries */ all: ['appgrant'] as const, + /** List query keys */ lists: () => [...appGrantKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + [...appGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appGrantKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipDefaultKeys.details(), id] as const, + [...appGrantKeys.details(), id] as const, } as const; export const orgClaimedInviteKeys = { /** All orgClaimedInvite queries */ all: ['orgclaimedinvite'] as const, @@ -298,6 +307,15 @@ export const orgClaimedInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgClaimedInviteKeys.details(), id] as const, } as const; +export const orgGrantKeys = { + /** All orgGrant queries */ all: ['orggrant'] as const, + /** List query keys */ lists: () => [...orgGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgGrantKeys.details(), id] as const, +} as const; export const appLimitEventKeys = { /** All appLimitEvent queries */ all: ['applimitevent'] as const, /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, @@ -316,32 +334,23 @@ export const orgLimitEventKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitEventKeys.details(), id] as const, } as const; -export const orgGrantKeys = { - /** All orgGrant queries */ all: ['orggrant'] as const, - /** List query keys */ lists: () => [...orgGrantKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgGrantKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgGrantKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgGrantKeys.details(), id] as const, -} as const; -export const orgChartEdgeKeys = { - /** All orgChartEdge queries */ all: ['orgchartedge'] as const, - /** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'] as const, +export const orgMembershipSettingKeys = { + /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, + /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgChartEdgeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'] as const, + [...orgMembershipSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgChartEdgeKeys.details(), id] as const, + [...orgMembershipSettingKeys.details(), id] as const, } as const; -export const usageSnapshotKeys = { - /** All usageSnapshot queries */ all: ['usagesnapshot'] as const, - /** List query keys */ lists: () => [...usageSnapshotKeys.all, 'list'] as const, +export const appMembershipKeys = { + /** All appMembership queries */ all: ['appmembership'] as const, + /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...usageSnapshotKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...usageSnapshotKeys.all, 'detail'] as const, + [...appMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...usageSnapshotKeys.details(), id] as const, + [...appMembershipKeys.details(), id] as const, } as const; export const appLimitKeys = { /** All appLimit queries */ all: ['applimit'] as const, @@ -352,23 +361,23 @@ export const appLimitKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appLimitKeys.details(), id] as const, } as const; -export const appInviteKeys = { - /** All appInvite queries */ all: ['appinvite'] as const, - /** List query keys */ lists: () => [...appInviteKeys.all, 'list'] as const, +export const orgMembershipKeys = { + /** All orgMembership queries */ all: ['orgmembership'] as const, + /** List query keys */ lists: () => [...orgMembershipKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appInviteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appInviteKeys.all, 'detail'] as const, + [...orgMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appInviteKeys.details(), id] as const, + [...orgMembershipKeys.details(), id] as const, } as const; -export const orgMembershipSettingKeys = { - /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, - /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, +export const orgMemberProfileKeys = { + /** All orgMemberProfile queries */ all: ['orgmemberprofile'] as const, + /** List query keys */ lists: () => [...orgMemberProfileKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, + [...orgMemberProfileKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMemberProfileKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipSettingKeys.details(), id] as const, + [...orgMemberProfileKeys.details(), id] as const, } as const; export const orgLimitAggregateKeys = { /** All orgLimitAggregate queries */ all: ['orglimitaggregate'] as const, @@ -388,23 +397,14 @@ export const orgLimitKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitKeys.details(), id] as const, } as const; -export const orgMemberProfileKeys = { - /** All orgMemberProfile queries */ all: ['orgmemberprofile'] as const, - /** List query keys */ lists: () => [...orgMemberProfileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMemberProfileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMemberProfileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMemberProfileKeys.details(), id] as const, -} as const; -export const appMembershipKeys = { - /** All appMembership queries */ all: ['appmembership'] as const, - /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, +export const appInviteKeys = { + /** All appInvite queries */ all: ['appinvite'] as const, + /** List query keys */ lists: () => [...appInviteKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, + [...appInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appInviteKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipKeys.details(), id] as const, + [...appInviteKeys.details(), id] as const, } as const; export const orgInviteKeys = { /** All orgInvite queries */ all: ['orginvite'] as const, @@ -415,15 +415,6 @@ export const orgInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgInviteKeys.details(), id] as const, } as const; -export const orgMembershipKeys = { - /** All orgMembership queries */ all: ['orgmembership'] as const, - /** List query keys */ lists: () => [...orgMembershipKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipKeys.details(), id] as const, -} as const; // ============================================================================ // Custom Query Keys @@ -485,42 +476,41 @@ export const queryKeys = { appLimitCredit: appLimitCreditKeys, orgMember: orgMemberKeys, appPermissionDefault: appPermissionDefaultKeys, - appLimitCreditCode: appLimitCreditCodeKeys, - orgPermissionDefault: orgPermissionDefaultKeys, appAdminGrant: appAdminGrantKeys, appOwnerGrant: appOwnerGrantKeys, + orgPermissionDefault: orgPermissionDefaultKeys, + appMembershipDefault: appMembershipDefaultKeys, + orgAdminGrant: orgAdminGrantKeys, + orgMembershipDefault: orgMembershipDefaultKeys, + orgOwnerGrant: orgOwnerGrantKeys, appLimitCapsDefault: appLimitCapsDefaultKeys, orgLimitCapsDefault: orgLimitCapsDefaultKeys, appLimitCap: appLimitCapKeys, orgLimitCap: orgLimitCapKeys, - orgAdminGrant: orgAdminGrantKeys, - orgOwnerGrant: orgOwnerGrantKeys, - membershipType: membershipTypeKeys, + orgChartEdge: orgChartEdgeKeys, appLimitDefault: appLimitDefaultKeys, orgLimitDefault: orgLimitDefaultKeys, orgLimitCredit: orgLimitCreditKeys, + appLimitCreditCode: appLimitCreditCodeKeys, appLimitWarning: appLimitWarningKeys, - orgLimitWarning: orgLimitWarningKeys, orgChartEdgeGrant: orgChartEdgeGrantKeys, appClaimedInvite: appClaimedInviteKeys, + orgLimitWarning: orgLimitWarningKeys, + membershipType: membershipTypeKeys, appGrant: appGrantKeys, - appMembershipDefault: appMembershipDefaultKeys, - orgMembershipDefault: orgMembershipDefaultKeys, orgClaimedInvite: orgClaimedInviteKeys, + orgGrant: orgGrantKeys, appLimitEvent: appLimitEventKeys, orgLimitEvent: orgLimitEventKeys, - orgGrant: orgGrantKeys, - orgChartEdge: orgChartEdgeKeys, - usageSnapshot: usageSnapshotKeys, - appLimit: appLimitKeys, - appInvite: appInviteKeys, orgMembershipSetting: orgMembershipSettingKeys, + appMembership: appMembershipKeys, + appLimit: appLimitKeys, + orgMembership: orgMembershipKeys, + orgMemberProfile: orgMemberProfileKeys, orgLimitAggregate: orgLimitAggregateKeys, orgLimit: orgLimitKeys, - orgMemberProfile: orgMemberProfileKeys, - appMembership: appMembershipKeys, + appInvite: appInviteKeys, orgInvite: orgInviteKeys, - orgMembership: orgMembershipKeys, custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index 06cda7b6e2..b973588a8f 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -30,42 +30,41 @@ const db = createClient({ | `appLimitCredit` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | +| `orgLimitWarning` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `orgGrant` | findMany, findOne, create, update, delete | | `appLimitEvent` | findMany, findOne, create, update, delete | | `orgLimitEvent` | findMany, findOne, create, update, delete | -| `orgGrant` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | -| `usageSnapshot` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgMembership` | findMany, findOne, create, update, delete | +| `orgMemberProfile` | findMany, findOne, create, update, delete | | `orgLimitAggregate` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | -| `orgMemberProfile` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | -| `orgMembership` | findMany, findOne, create, update, delete | ## Table Operations @@ -355,37 +354,72 @@ const updated = await db.appPermissionDefault.update({ where: { id: '' }, const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.appAdminGrant` -CRUD operations for AppLimitCreditCode records. +CRUD operations for AppAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// List all 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.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermissionDefault` @@ -419,9 +453,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appAdminGrant` +### `db.appMembershipDefault` -CRUD operations for AppAdminGrant records. +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgAdminGrant` + +CRUD operations for OrgAdminGrant records. **Fields:** @@ -430,6 +499,7 @@ CRUD operations for AppAdminGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -437,25 +507,60 @@ CRUD operations for AppAdminGrant records. **Operations:** ```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all 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.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: 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.appAdminGrant.create({ data: { isGrant: '', actorId: '', 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.appAdminGrant.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.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appOwnerGrant` +### `db.orgMembershipDefault` -CRUD operations for AppOwnerGrant records. +CRUD operations for OrgMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: 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 } }).execute(); + +// Create +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, 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.orgOwnerGrant` + +CRUD operations for OrgOwnerGrant records. **Fields:** @@ -464,6 +569,7 @@ CRUD operations for AppOwnerGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -471,20 +577,20 @@ CRUD operations for AppOwnerGrant records. **Operations:** ```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all 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.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: 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.appOwnerGrant.create({ data: { isGrant: '', actorId: '', 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.appOwnerGrant.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.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -613,154 +719,86 @@ const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { n const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgChartEdge` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdge records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// 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 } }).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.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.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, 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.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.appLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: 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.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgLimitDefault` -CRUD operations for MembershipType records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | +| `id` | UUID | No | | `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** @@ -816,42 +854,42 @@ const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitWarning` +### `db.appLimitCreditCode` -CRUD operations for AppLimitWarning records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitWarning` +### `db.appLimitWarning` -CRUD operations for OrgLimitWarning records. +CRUD operations for AppLimitWarning records. **Fields:** @@ -862,25 +900,24 @@ CRUD operations for OrgLimitWarning records. | `warningType` | String | Yes | | `thresholdValue` | BigInt | Yes | | `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -954,109 +991,107 @@ const updated = await db.appClaimedInvite.update({ where: { id: '' }, data const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appGrant` +### `db.orgLimitWarning` -CRUD operations for AppGrant records. +CRUD operations for OrgLimitWarning records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitWarning records +const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: 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.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: 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.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.appGrant` -CRUD operations for OrgMembershipDefault records. +CRUD operations for AppGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all 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.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: 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.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgClaimedInvite` @@ -1094,51 +1129,52 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` +### `db.orgGrant` -CRUD operations for AppLimitEvent records. +CRUD operations for OrgGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | Yes | +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all 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.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, 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.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitEvent` +### `db.appLimitEvent` -CRUD operations for OrgLimitEvent records. +CRUD operations for AppLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | @@ -1152,61 +1188,64 @@ CRUD operations for OrgLimitEvent records. **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgGrant` +### `db.orgLimitEvent` -CRUD operations for OrgGrant records. +CRUD operations for OrgLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | +| `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all 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(); +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgChartEdge` +### `db.orgMembershipSetting` -CRUD operations for OrgChartEdge records. +CRUD operations for OrgMembershipSetting records. **Fields:** @@ -1215,63 +1254,79 @@ CRUD operations for OrgChartEdge records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | | `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | 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 } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: 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 } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.usageSnapshot` +### `db.appMembership` -CRUD operations for UsageSnapshot records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `databaseId` | UUID | Yes | -| `metricName` | String | Yes | -| `metricValue` | BigInt | Yes | -| `dimensions` | JSON | Yes | -| `capturedAt` | Datetime | Yes | | `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all usageSnapshot records -const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); +// List all 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.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: 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.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, 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.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -1313,50 +1368,55 @@ const updated = await db.appLimit.update({ where: { id: '' }, data: { name const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.appInvite` +### `db.orgMembership` -CRUD operations for AppInvite records. +CRUD operations for OrgMembership 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 | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.orgMemberProfile` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgMemberProfile records. **Fields:** @@ -1365,35 +1425,32 @@ CRUD operations for OrgMembershipSetting records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | +| `membershipId` | UUID | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `actorId` | UUID | Yes | +| `displayName` | String | Yes | +| `email` | String | Yes | +| `title` | String | Yes | +| `bio` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all orgMemberProfile records +const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitAggregate` @@ -1476,87 +1533,45 @@ const updated = await db.orgLimit.update({ where: { id: '' }, data: { name const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMemberProfile` +### `db.appInvite` -CRUD operations for OrgMemberProfile records. +CRUD operations for AppInvite 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 | +| `profileId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembership` - -CRUD operations for AppMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all 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(); +// List all appInvite records +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: 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.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: 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.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` @@ -1603,52 +1618,6 @@ const updated = await db.orgInvite.update({ where: { id: '' }, data: { ema const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.appPermissionsGetPaddedMask` diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts index ceecedd2a4..3bd22a1077 100644 --- a/sdk/constructive-react/src/admin/orm/index.ts +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -14,46 +14,45 @@ import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; import { AppLimitCreditModel } from './models/appLimitCredit'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; import { AppLimitCapModel } from './models/appLimitCap'; import { OrgLimitCapModel } from './models/orgLimitCap'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitCreditModel } from './models/orgLimitCredit'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; +import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { MembershipTypeModel } from './models/membershipType'; import { AppGrantModel } from './models/appGrant'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { OrgGrantModel } from './models/orgGrant'; import { AppLimitEventModel } from './models/appLimitEvent'; import { OrgLimitEventModel } from './models/orgLimitEvent'; -import { OrgGrantModel } from './models/orgGrant'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; -import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppLimitModel } from './models/appLimit'; -import { AppInviteModel } from './models/appInvite'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; +import { AppMembershipModel } from './models/appMembership'; +import { AppLimitModel } from './models/appLimit'; +import { OrgMembershipModel } from './models/orgMembership'; +import { OrgMemberProfileModel } from './models/orgMemberProfile'; import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { OrgLimitModel } from './models/orgLimit'; -import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { AppMembershipModel } from './models/appMembership'; +import { AppInviteModel } from './models/appInvite'; import { OrgInviteModel } from './models/orgInvite'; -import { OrgMembershipModel } from './models/orgMembership'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; @@ -94,42 +93,41 @@ export function createClient(config: OrmClientConfig) { appLimitCredit: new AppLimitCreditModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), appLimitCap: new AppLimitCapModel(client), orgLimitCap: new OrgLimitCapModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - membershipType: new MembershipTypeModel(client), + orgChartEdge: new OrgChartEdgeModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitCredit: new OrgLimitCreditModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), appLimitWarning: new AppLimitWarningModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), + orgLimitWarning: new OrgLimitWarningModel(client), + membershipType: new MembershipTypeModel(client), appGrant: new AppGrantModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), + orgGrant: new OrgGrantModel(client), appLimitEvent: new AppLimitEventModel(client), orgLimitEvent: new OrgLimitEventModel(client), - orgGrant: new OrgGrantModel(client), - orgChartEdge: new OrgChartEdgeModel(client), - usageSnapshot: new UsageSnapshotModel(client), - appLimit: new AppLimitModel(client), - appInvite: new AppInviteModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), + appMembership: new AppMembershipModel(client), + appLimit: new AppLimitModel(client), + orgMembership: new OrgMembershipModel(client), + orgMemberProfile: new OrgMemberProfileModel(client), orgLimitAggregate: new OrgLimitAggregateModel(client), orgLimit: new OrgLimitModel(client), - orgMemberProfile: new OrgMemberProfileModel(client), - appMembership: new AppMembershipModel(client), + appInvite: new AppInviteModel(client), orgInvite: new OrgInviteModel(client), - orgMembership: new OrgMembershipModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index 0e9e56aec5..54a2d80e58 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -316,17 +316,27 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { +/** Records of admin role grants and revocations between members */ +export interface AppAdminGrant { id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Records of ownership transfers and grants between members */ +export interface AppOwnerGrant { + id: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { @@ -336,24 +346,52 @@ export interface OrgPermissionDefault { /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** Records of admin role grants and revocations between members */ -export interface AppAdminGrant { +export interface OrgAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} /** Records of ownership transfers and grants between members */ -export interface AppOwnerGrant { +export interface OrgOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -394,46 +432,21 @@ export interface OrgLimitCap { /** Override cap value for this entity */ max?: string | null; } -/** Records of admin role grants and revocations between members */ -export interface OrgAdminGrant { +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - /** The entity (org or group) this admin grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface OrgOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - /** The entity (org or group) this ownership grant applies to */ + /** Organization this hierarchy edge belongs to */ entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; } /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { @@ -471,20 +484,20 @@ export interface OrgLimitCredit { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string | null; } -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; } /** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { +export interface AppLimitWarning { id: string; /** Limit name this warning applies to (must match a default_limits entry) */ name?: string | null; @@ -494,8 +507,6 @@ export interface OrgLimitWarning { thresholdValue?: string | null; /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -529,6 +540,35 @@ export interface AppClaimedInvite { createdAt?: string | null; updatedAt?: string | null; } +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface OrgLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; +} /** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; @@ -542,30 +582,6 @@ export interface AppGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; @@ -579,8 +595,26 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ +export interface OrgGrant { + id: string; + /** Bitmask of permissions being granted or revoked */ + permissions?: string | null; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ + actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Append-only log of limit events for historical reporting and audit */ export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -602,6 +636,9 @@ export interface AppLimitEvent { } /** Append-only log of limit events for historical reporting and audit */ export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -621,52 +658,62 @@ export interface OrgLimitEvent { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ -export interface OrgGrant { +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - /** The entity (org or group) this permission grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; } -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ - entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; -} -/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ -export interface UsageSnapshot { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string | null; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string | null; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string | null; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: Record | null; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string | null; - id: string; -} -/** Tracks per-actor usage counts against configurable maximum limits */ + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + profileId?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; /** Name identifier of the limit being tracked */ @@ -690,57 +737,60 @@ export interface AppLimit { /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; } -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface OrgMembership { id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ + entityId?: string | null; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean | null; + profileId?: string | null; } -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { +/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ +export interface OrgMemberProfile { id: string; createdAt?: string | null; updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ + /** References the membership this profile belongs to (1:1) */ + membershipId?: string | null; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string | null; + /** Display name shown to other entity members */ + displayName?: string | null; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string | null; + /** Job title or role description visible to other entity members */ + title?: string | null; + /** Short biography visible to other entity members */ + bio?: string | null; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage | null; } /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ export interface OrgLimitAggregate { @@ -793,56 +843,31 @@ export interface OrgLimit { periodCredits?: string | null; entityId?: string | null; } -/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ -export interface OrgMemberProfile { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string | null; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string | null; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string | null; - /** Display name shown to other entity members */ - displayName?: string | null; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string | null; - /** Job title or role description visible to other entity members */ - title?: string | null; - /** Short biography visible to other entity members */ - bio?: string | null; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { id: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ + data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { @@ -875,39 +900,6 @@ export interface OrgInvite { updatedAt?: string | null; entityId?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface OrgMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - /** References the entity (org or group) this membership belongs to */ - entityId?: string | null; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean | null; - profileId?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -937,20 +929,18 @@ export interface AppLimitCreditRelations { } export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} +export interface OrgPermissionDefaultRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgAdminGrantRelations {} +export interface OrgMembershipDefaultRelations {} +export interface OrgOwnerGrantRelations {} export interface AppLimitCapsDefaultRelations {} export interface OrgLimitCapsDefaultRelations {} export interface AppLimitCapRelations {} export interface OrgLimitCapRelations {} -export interface OrgAdminGrantRelations {} -export interface OrgOwnerGrantRelations {} -export interface MembershipTypeRelations {} +export interface OrgChartEdgeRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; @@ -961,37 +951,38 @@ export interface OrgLimitDefaultRelations { export interface OrgLimitCreditRelations { defaultLimit?: OrgLimitDefault | null; } +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} export interface AppLimitWarningRelations {} -export interface OrgLimitWarningRelations {} export interface OrgChartEdgeGrantRelations {} export interface AppClaimedInviteRelations {} +export interface OrgLimitWarningRelations {} +export interface MembershipTypeRelations {} export interface AppGrantRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations {} export interface OrgClaimedInviteRelations {} +export interface OrgGrantRelations {} export interface AppLimitEventRelations {} export interface OrgLimitEventRelations {} -export interface OrgGrantRelations {} -export interface OrgChartEdgeRelations {} -export interface UsageSnapshotRelations {} -export interface AppLimitRelations {} -export interface AppInviteRelations {} export interface OrgMembershipSettingRelations {} -export interface OrgLimitAggregateRelations {} -export interface OrgLimitRelations {} -export interface OrgMemberProfileRelations { - membership?: OrgMembership | null; -} export interface AppMembershipRelations {} -export interface OrgInviteRelations {} +export interface AppLimitRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } -// ============ Entity Types With Relations ============ -export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & - OrgGetManagersRecordRelations; -export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & - OrgGetSubordinatesRecordRelations; +export interface OrgMemberProfileRelations { + membership?: OrgMembership | null; +} +export interface OrgLimitAggregateRelations {} +export interface OrgLimitRelations {} +export interface AppInviteRelations {} +export interface OrgInviteRelations {} +// ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & @@ -1002,46 +993,45 @@ export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelatio export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; +export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; -export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; -export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; +export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; +export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; -export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; -export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { userId?: boolean; @@ -1107,42 +1097,59 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { +export type AppAdminGrantSelect = { id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type OrgPermissionDefaultSelect = { id?: boolean; permissions?: boolean; entityId?: boolean; }; -export type AppAdminGrantSelect = { +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; }; -export type AppOwnerGrantSelect = { +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; +}; +export type OrgOwnerGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1169,31 +1176,15 @@ export type OrgLimitCapSelect = { entityId?: boolean; max?: boolean; }; -export type OrgAdminGrantSelect = { +export type OrgChartEdgeSelect = { id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; -}; -export type OrgOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; }; export type AppLimitDefaultSelect = { id?: boolean; @@ -1237,20 +1228,31 @@ export type OrgLimitCreditSelect = { select: OrgLimitDefaultSelect; }; }; -export type AppLimitWarningSelect = { +export type AppLimitCreditCodeSelect = { id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; }; -export type OrgLimitWarningSelect = { +export type AppLimitWarningSelect = { id?: boolean; name?: boolean; warningType?: boolean; thresholdValue?: boolean; taskIdentifier?: boolean; - entityId?: boolean; }; export type OrgChartEdgeGrantSelect = { id?: boolean; @@ -1271,6 +1273,22 @@ export type AppClaimedInviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; + entityId?: boolean; +}; +export type MembershipTypeSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; +}; export type AppGrantSelect = { id?: boolean; permissions?: boolean; @@ -1280,24 +1298,6 @@ export type AppGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; -}; export type OrgClaimedInviteSelect = { id?: boolean; data?: boolean; @@ -1307,7 +1307,19 @@ export type OrgClaimedInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; +export type OrgGrantSelect = { + id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1319,6 +1331,8 @@ export type AppLimitEventSelect = { reason?: boolean; }; export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1329,33 +1343,39 @@ export type OrgLimitEventSelect = { maxAtEvent?: boolean; reason?: boolean; }; -export type OrgGrantSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; }; -export type OrgChartEdgeSelect = { +export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; -}; -export type UsageSnapshotSelect = { - databaseId?: boolean; - metricName?: boolean; - metricValue?: boolean; - dimensions?: boolean; - capturedAt?: boolean; - id?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; }; export type AppLimitSelect = { id?: boolean; @@ -1370,36 +1390,44 @@ export type AppLimitSelect = { purchasedCredits?: boolean; periodCredits?: boolean; }; -export type AppInviteSelect = { +export type OrgMembershipSelect = { id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; -}; -export type OrgMembershipSettingSelect = { + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + entityId?: boolean; + isReadOnly?: boolean; + profileId?: boolean; + orgMemberProfileByMembershipId?: { + select: OrgMemberProfileSelect; + }; +}; +export type OrgMemberProfileSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; + membershipId?: boolean; entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; + actorId?: boolean; + displayName?: boolean; + email?: boolean; + title?: boolean; + bio?: boolean; + profilePicture?: boolean; + membership?: { + select: OrgMembershipSelect; + }; }; export type OrgLimitAggregateSelect = { id?: boolean; @@ -1429,39 +1457,20 @@ export type OrgLimitSelect = { periodCredits?: boolean; entityId?: boolean; }; -export type OrgMemberProfileSelect = { +export type AppInviteSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - membershipId?: boolean; - entityId?: boolean; - actorId?: boolean; - displayName?: boolean; email?: boolean; - title?: boolean; - bio?: boolean; - profilePicture?: boolean; - membership?: { - select: OrgMembershipSelect; - }; -}; -export type AppMembershipSelect = { - id?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -1481,29 +1490,6 @@ export type OrgInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; -export type OrgMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - entityId?: boolean; - isReadOnly?: boolean; - profileId?: boolean; - orgMemberProfileByMembershipId?: { - select: OrgMemberProfileSelect; - }; -}; // ============ Table Filter Types ============ export interface OrgGetManagersRecordFilter { userId?: UUIDFilter; @@ -1643,31 +1629,45 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { +export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppLimitCreditCodeFilter[]; + and?: AppAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; + or?: AppAdminGrantFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppOwnerGrantFilter[]; + /** Negates the expression. */ + not?: AppOwnerGrantFilter; } export interface OrgPermissionDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1683,13 +1683,37 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } -export interface AppAdminGrantFilter { +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; +} +export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1697,19 +1721,43 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; + or?: OrgAdminGrantFilter[]; /** Negates the expression. */ - not?: AppAdminGrantFilter; + not?: OrgAdminGrantFilter; } -export interface AppOwnerGrantFilter { +export interface OrgMembershipDefaultFilter { + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} +export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1717,11 +1765,11 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; + and?: OrgOwnerGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; + or?: OrgOwnerGrantFilter[]; /** Negates the expression. */ - not?: AppOwnerGrantFilter; + not?: OrgOwnerGrantFilter; } export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1783,71 +1831,31 @@ export interface OrgLimitCapFilter { /** Negates the expression. */ not?: OrgLimitCapFilter; } -export interface OrgAdminGrantFilter { +export interface OrgChartEdgeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; + and?: OrgChartEdgeFilter[]; /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; + or?: OrgChartEdgeFilter[]; /** Negates the expression. */ - not?: OrgAdminGrantFilter; + not?: OrgChartEdgeFilter; } -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: 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?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -export interface AppLimitDefaultFilter { +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1915,25 +1923,33 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } -export interface AppLimitWarningFilter { +export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; + and?: AppLimitCreditCodeFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: AppLimitCreditCodeFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -export interface OrgLimitWarningFilter { +export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1944,14 +1960,12 @@ export interface OrgLimitWarningFilter { thresholdValue?: BigIntFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; + and?: AppLimitWarningFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; + or?: AppLimitWarningFilter[]; /** Negates the expression. */ - not?: OrgLimitWarningFilter; + not?: AppLimitWarningFilter; } export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1997,6 +2011,46 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} export interface AppGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2019,71 +2073,55 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } -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; -} -export interface OrgMembershipDefaultFilter { +export interface OrgClaimedInviteFilter { /** 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; - /** 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 `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: OrgClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: OrgClaimedInviteFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; + not?: OrgClaimedInviteFilter; } -export interface OrgClaimedInviteFilter { +export interface OrgGrantFilter { /** 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 `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; + and?: OrgGrantFilter[]; /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; + or?: OrgGrantFilter[]; /** Negates the expression. */ - not?: OrgClaimedInviteFilter; + not?: OrgGrantFilter; } export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2110,6 +2148,10 @@ export interface AppLimitEventFilter { not?: AppLimitEventFilter; } export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2135,77 +2177,85 @@ export interface OrgLimitEventFilter { /** Negates the expression. */ not?: OrgLimitEventFilter; } -export interface OrgGrantFilter { +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: OrgGrantFilter; + not?: OrgMembershipSettingFilter; } -export interface OrgChartEdgeFilter { +export interface AppMembershipFilter { /** 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 `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + /** 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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipFilter[]; + /** Negates the expression. */ + not?: AppMembershipFilter; +} +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2233,73 +2283,85 @@ export interface AppLimitFilter { /** Negates the expression. */ not?: AppLimitFilter; } -export interface AppInviteFilter { +export interface OrgMembershipFilter { /** 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 `profileId` field. */ - profileId?: UUIDFilter; - /** 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 `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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isExternal` field. */ + isExternal?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; + and?: OrgMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; + or?: OrgMembershipFilter[]; /** Negates the expression. */ - not?: AppInviteFilter; + not?: OrgMembershipFilter; + /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ + orgMemberProfileByMembershipId?: OrgMemberProfileFilter; + /** A related `orgMemberProfileByMembershipId` exists. */ + orgMemberProfileByMembershipIdExists?: boolean; } -export interface OrgMembershipSettingFilter { +export interface OrgMemberProfileFilter { /** 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 `membershipId` field. */ + membershipId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `bio` field. */ + bio?: StringFilter; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: OrgMemberProfileFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: OrgMemberProfileFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; + not?: OrgMemberProfileFilter; + /** Filter by the object’s `membership` relation. */ + membership?: OrgMembershipFilter; } export interface OrgLimitAggregateFilter { /** Filter by the object’s `id` field. */ @@ -2365,77 +2427,37 @@ export interface OrgLimitFilter { /** Negates the expression. */ not?: OrgLimitFilter; } -export interface OrgMemberProfileFilter { +export interface AppInviteFilter { /** 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 `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + 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 `profileId` field. */ + profileId?: UUIDFilter; + /** 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 `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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; + and?: AppInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; + or?: AppInviteFilter[]; /** Negates the expression. */ - not?: AppMembershipFilter; + not?: AppInviteFilter; } export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ @@ -2475,54 +2497,6 @@ export interface OrgInviteFilter { /** Negates the expression. */ not?: OrgInviteFilter; } -export interface OrgMembershipFilter { - /** 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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} // ============ OrderBy Types ============ export type OrgGetManagersRecordsOrderBy = | 'PRIMARY_KEY_ASC' @@ -2628,20 +2602,38 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = +export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2652,7 +2644,25 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppAdminGrantOrderBy = +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2662,13 +2672,33 @@ export type AppAdminGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppOwnerGrantOrderBy = +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2678,6 +2708,8 @@ export type AppOwnerGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -2728,58 +2760,26 @@ export type OrgLimitCapOrderBy = | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgChartEdgeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2822,21 +2822,21 @@ export type OrgLimitCreditOrderBy = | 'CREDIT_TYPE_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type AppLimitWarningOrderBy = +export type AppLimitCreditCodeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type OrgLimitWarningOrderBy = + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2849,9 +2849,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'TASK_IDENTIFIER_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2890,60 +2888,56 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppGrantOrderBy = +export type OrgLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; +export type AppGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'UPDATED_AT_DESC'; export type OrgClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2962,28 +2956,34 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppLimitEventOrderBy = +export type OrgGrantOrderBy = | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -3002,27 +3002,33 @@ export type OrgLimitEventOrderBy = | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type OrgGrantOrderBy = +export type OrgLimitEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgChartEdgeOrderBy = + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3032,32 +3038,64 @@ export type OrgChartEdgeOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type UsageSnapshotOrderBy = + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' | 'ID_ASC' - | 'ID_DESC'; + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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 AppLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3084,37 +3122,47 @@ export type AppLimitOrderBy = | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC'; -export type AppInviteOrderBy = +export type OrgMembershipOrderBy = | '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' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMembershipSettingOrderBy = + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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_EXTERNAL_ASC' + | 'IS_EXTERNAL_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' + | 'ENTITY_ID_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; +export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3124,28 +3172,22 @@ export type OrgMembershipSettingOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' + | 'MEMBERSHIP_ID_ASC' + | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'BIO_ASC' + | 'BIO_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC'; export type OrgLimitAggregateOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3202,68 +3244,36 @@ export type OrgLimitOrderBy = | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMemberProfileOrderBy = +export type AppInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | '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' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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'; + | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3300,46 +3310,6 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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_EXTERNAL_ASC' - | 'IS_EXTERNAL_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' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; @@ -3539,27 +3509,47 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateAppAdminGrantInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + appAdminGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface AppAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + appAdminGrantPatch: AppAdminGrantPatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteAppAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3583,47 +3573,99 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppAdminGrantInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - appAdminGrant: { + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + orgAdminGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppAdminGrantPatch { +export interface OrgAdminGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppAdminGrantInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - appAdminGrantPatch: AppAdminGrantPatch; + orgAdminGrantPatch: OrgAdminGrantPatch; } -export interface DeleteAppAdminGrantInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppOwnerGrantInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - appOwnerGrant: { + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppOwnerGrantPatch { +export interface OrgOwnerGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppOwnerGrantInput { +export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; + orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface DeleteAppOwnerGrantInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3683,107 +3725,59 @@ export interface AppLimitCapPatch { export interface UpdateAppLimitCapInput { clientMutationId?: string; id: string; - appLimitCapPatch: AppLimitCapPatch; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - orgLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface OrgLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - orgLimitCapPatch: OrgLimitCapPatch; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; + appLimitCapPatch: AppLimitCapPatch; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteAppLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateOrgOwnerGrantInput { +export interface CreateOrgLimitCapInput { clientMutationId?: string; - orgOwnerGrant: { - isGrant?: boolean; - actorId: string; + orgLimitCap: { + name: string; entityId: string; - grantorId?: string; + max?: string; }; } -export interface OrgOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgLimitCapPatch { + name?: string | null; entityId?: string | null; - grantorId?: string | null; + max?: string | null; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateOrgLimitCapInput { clientMutationId?: string; id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; + orgLimitCapPatch: OrgLimitCapPatch; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { +export interface CreateOrgChartEdgeInput { clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; }; } -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; } -export interface UpdateMembershipTypeInput { +export interface UpdateOrgChartEdgeInput { clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; } -export interface DeleteMembershipTypeInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; - id: number; + id: string; } export interface CreateAppLimitDefaultInput { clientMutationId?: string; @@ -3857,53 +3851,51 @@ export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitWarningInput { +export interface CreateAppLimitCreditCodeInput { clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; }; } -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; } -export interface UpdateAppLimitWarningInput { +export interface UpdateAppLimitCreditCodeInput { clientMutationId?: string; id: string; - appLimitWarningPatch: AppLimitWarningPatch; + appLimitCreditCodePatch: AppLimitCreditCodePatch; } -export interface DeleteAppLimitWarningInput { +export interface DeleteAppLimitCreditCodeInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitWarningInput { +export interface CreateAppLimitWarningInput { clientMutationId?: string; - orgLimitWarning: { + appLimitWarning: { name: string; warningType: string; thresholdValue: string; taskIdentifier: string; - entityId?: string; }; } -export interface OrgLimitWarningPatch { +export interface AppLimitWarningPatch { name?: string | null; warningType?: string | null; thresholdValue?: string | null; taskIdentifier?: string | null; - entityId?: string | null; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; + appLimitWarningPatch: AppLimitWarningPatch; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } @@ -3959,75 +3951,79 @@ export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppGrantInput { +export interface CreateOrgLimitWarningInput { clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; + orgLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + entityId?: string; }; } -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; +export interface OrgLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; + entityId?: string | null; } -export interface UpdateAppGrantInput { +export interface UpdateOrgLimitWarningInput { clientMutationId?: string; id: string; - appGrantPatch: AppGrantPatch; + orgLimitWarningPatch: OrgLimitWarningPatch; } -export interface DeleteAppGrantInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateAppMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppGrantInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + appGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface AppGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppGrantInput { clientMutationId?: string; id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + appGrantPatch: AppGrantPatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } @@ -4055,6 +4051,32 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitEventInput { clientMutationId?: string; appLimitEvent: { @@ -4097,107 +4119,109 @@ export interface CreateOrgLimitEventInput { entityId?: string; eventType?: string; delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgGrantInput { - clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; }; } -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; +export interface OrgLimitEventPatch { + name?: string | null; actorId?: string | null; entityId?: string | null; - grantorId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; } -export interface UpdateOrgGrantInput { +export interface UpdateOrgLimitEventInput { clientMutationId?: string; id: string; - orgGrantPatch: OrgGrantPatch; + orgLimitEventPatch: OrgLimitEventPatch; } -export interface DeleteOrgGrantInput { +export interface DeleteOrgLimitEventInput { clientMutationId?: string; id: string; } -export interface CreateOrgChartEdgeInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - orgChartEdge: { + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; entityId: string; - childId: string; - parentId?: string; - positionTitle?: string; - positionLevel?: number; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface OrgChartEdgePatch { +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; entityId?: string | null; - childId?: string | null; - parentId?: string | null; - positionTitle?: string | null; - positionLevel?: number | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateOrgChartEdgeInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - orgChartEdgePatch: OrgChartEdgePatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface CreateUsageSnapshotInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - usageSnapshot: { - databaseId: string; - metricName: string; - metricValue?: string; - dimensions?: Record; - capturedAt?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface UsageSnapshotPatch { - databaseId?: string | null; - metricName?: string | null; - metricValue?: string | null; - dimensions?: Record | null; - capturedAt?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; } -export interface UpdateUsageSnapshotInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - usageSnapshotPatch: UsageSnapshotPatch; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteUsageSnapshotInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } @@ -4237,77 +4261,82 @@ export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface CreateAppInviteInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; + orgMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + entityId: string; + isReadOnly?: boolean; profileId?: string; - expiresAt?: string; }; } -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; +export interface OrgMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isExternal?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + entityId?: string | null; + isReadOnly?: boolean | null; profileId?: string | null; - expiresAt?: string | null; } -export interface UpdateAppInviteInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - appInvitePatch: AppInvitePatch; + orgMembershipPatch: OrgMembershipPatch; } -export interface DeleteAppInviteInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; + orgMemberProfile: { + membershipId: string; entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; + actorId: string; + displayName?: string; + email?: string; + title?: string; + bio?: string; + profilePicture?: ConstructiveInternalTypeImage; }; } -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; +export interface OrgMemberProfilePatch { + membershipId?: string | null; entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; + actorId?: string | null; + displayName?: string | null; + email?: string | null; + title?: string | null; + bio?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + profilePictureUpload?: File | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + orgMemberProfilePatch: OrgMemberProfilePatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } @@ -4378,87 +4407,48 @@ export interface OrgLimitPatch { periodCredits?: string | null; entityId?: string | null; } -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppInviteInput { + clientMutationId?: string; + appInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; profileId?: string; + expiresAt?: string; }; } -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; +export interface AppInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; profileId?: string | null; + expiresAt?: string | null; } -export interface UpdateAppMembershipInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - appMembershipPatch: AppMembershipPatch; + appInvitePatch: AppInvitePatch; } -export interface DeleteAppMembershipInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } @@ -4504,58 +4494,8 @@ export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -4563,6 +4503,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, } as Record>; // ============ Custom Input Types (from schema) ============ export interface SubmitAppInviteCodeInput { @@ -4582,24 +4526,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitDefaultToManyAppLimitCreditFilter { /** Filters to entities where at least one related entity matches. */ @@ -4627,6 +4553,24 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ export interface IntervalFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -4652,6 +4596,41 @@ export interface IntervalFilter { /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: IntervalInput; } +/** 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). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} /** 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). */ @@ -4729,101 +4708,49 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** 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). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; + and?: AppLimitCreditFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; + or?: AppLimitCreditFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; + not?: AppLimitCreditFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `creditCodeId` field. */ creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; + and?: AppLimitCreditCodeItemFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; + or?: AppLimitCreditCodeItemFilter[]; /** Negates the expression. */ - not?: AppLimitCreditFilter; + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } @@ -4852,6 +4779,23 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -4998,6 +4942,31 @@ export interface StringFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: 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?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -5025,31 +4994,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** 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?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** 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. */ @@ -5513,184 +5457,319 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type CreateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +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 CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface CreateOrgPermissionDefaultPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateOrgPermissionDefaultPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateOrgPermissionDefaultPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateOrgPermissionDefaultPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteOrgPermissionDefaultPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteOrgPermissionDefaultPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateAppAdminGrantPayload { +export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type CreateAppAdminGrantPayloadSelect = { +export type CreateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateAppAdminGrantPayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateAppAdminGrantPayloadSelect = { +export type UpdateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteAppAdminGrantPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type DeleteAppAdminGrantPayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateAppOwnerGrantPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateAppOwnerGrantPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateAppOwnerGrantPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateAppOwnerGrantPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteAppOwnerGrantPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteAppOwnerGrantPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -5843,169 +5922,79 @@ export type CreateOrgLimitCapPayloadSelect = { select: OrgLimitCapEdgeSelect; }; }; -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type UpdateOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type DeleteOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type CreateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface UpdateOrgOwnerGrantPayload { +export interface UpdateOrgLimitCapPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } -export type UpdateOrgOwnerGrantPayloadSelect = { +export type UpdateOrgLimitCapPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitCap?: { + select: OrgLimitCapSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; }; }; -export interface DeleteOrgOwnerGrantPayload { +export interface DeleteOrgLimitCapPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } -export type DeleteOrgOwnerGrantPayloadSelect = { +export type DeleteOrgLimitCapPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitCap?: { + select: OrgLimitCapSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; }; }; -export interface CreateMembershipTypePayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateMembershipTypePayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -6143,6 +6132,51 @@ export type DeleteOrgLimitCreditPayloadSelect = { select: OrgLimitCreditEdgeSelect; }; }; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -6188,51 +6222,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; /** The `OrgChartEdgeGrant` that was created by this mutation. */ @@ -6323,139 +6312,139 @@ export type DeleteAppClaimedInvitePayloadSelect = { select: AppClaimedInviteEdgeSelect; }; }; -export interface CreateAppGrantPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type CreateAppGrantPayloadSelect = { +export type CreateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface UpdateAppGrantPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type UpdateAppGrantPayloadSelect = { +export type UpdateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface DeleteAppGrantPayload { +export interface DeleteOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type DeleteAppGrantPayloadSelect = { +export type DeleteOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; export interface CreateOrgClaimedInvitePayload { @@ -6503,28 +6492,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -6570,94 +6537,184 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateOrgChartEdgePayload { +export interface CreateAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type CreateOrgChartEdgePayloadSelect = { +export type CreateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface UpdateOrgChartEdgePayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type UpdateOrgChartEdgePayloadSelect = { +export type UpdateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface DeleteOrgChartEdgePayload { +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type DeleteOrgChartEdgePayloadSelect = { +export type DeleteAppLimitEventPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface CreateUsageSnapshotPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was created by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type CreateUsageSnapshotPayloadSelect = { +export type CreateAppMembershipPayloadSelect = { clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; + appMembership?: { + select: AppMembershipSelect; }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; -export interface UpdateUsageSnapshotPayload { +export interface UpdateAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was updated by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type UpdateUsageSnapshotPayloadSelect = { +export type UpdateAppMembershipPayloadSelect = { clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; + appMembership?: { + select: AppMembershipSelect; }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; -export interface DeleteUsageSnapshotPayload { +export interface DeleteAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was deleted by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type DeleteUsageSnapshotPayloadSelect = { +export type DeleteAppMembershipPayloadSelect = { clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; + appMembership?: { + select: AppMembershipSelect; }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; export interface CreateAppLimitPayload { @@ -6705,94 +6762,94 @@ export type DeleteAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; -export interface CreateAppInvitePayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type CreateAppInvitePayloadSelect = { +export type CreateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface UpdateAppInvitePayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type UpdateAppInvitePayloadSelect = { +export type UpdateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface DeleteAppInvitePayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type DeleteAppInvitePayloadSelect = { +export type DeleteOrgMembershipPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type UpdateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type DeleteOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; export interface CreateOrgLimitAggregatePayload { @@ -6885,94 +6942,49 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface CreateAppMembershipPayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type CreateAppMembershipPayloadSelect = { +export type CreateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface UpdateAppMembershipPayload { +export interface UpdateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type UpdateAppMembershipPayloadSelect = { +export type UpdateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface DeleteAppMembershipPayload { +export interface DeleteAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type DeleteAppMembershipPayloadSelect = { +export type DeleteAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; export interface CreateOrgInvitePayload { @@ -7020,51 +7032,6 @@ export type DeleteOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -7157,25 +7124,37 @@ export type OrgMemberEdgeSelect = { /** A `AppPermissionDefault` edge in the connection. */ export interface AppPermissionDefaultEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { + cursor?: string | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; } -export type AppPermissionDefaultEdgeSelect = { +export type AppAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionDefaultSelect; + select: AppAdminGrantSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `AppOwnerGrant` at the end of the edge. */ + node?: AppOwnerGrant | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type AppOwnerGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: AppOwnerGrantSelect; }; }; /** A `OrgPermissionDefault` edge in the connection. */ @@ -7190,28 +7169,52 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type AppAdminGrantEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppAdminGrantSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; } -export type AppOwnerGrantEdgeSelect = { +export type OrgAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppOwnerGrantSelect; + select: OrgAdminGrantSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -7262,40 +7265,16 @@ export type OrgLimitCapEdgeSelect = { select: OrgLimitCapSelect; }; }; -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -export type OrgAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgAdminGrantSelect; - }; -}; -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -export type OrgOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgOwnerGrantSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type MembershipTypeEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: OrgChartEdgeSelect; }; }; /** A `AppLimitDefault` edge in the connection. */ @@ -7334,28 +7313,28 @@ export type OrgLimitCreditEdgeSelect = { select: OrgLimitCreditSelect; }; }; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; } -export type AppLimitWarningEdgeSelect = { +export type AppLimitCreditCodeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitWarningSelect; + select: AppLimitCreditCodeSelect; }; }; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; } -export type OrgLimitWarningEdgeSelect = { +export type AppLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitWarningSelect; + select: AppLimitWarningSelect; }; }; /** A `OrgChartEdgeGrant` edge in the connection. */ @@ -7382,40 +7361,40 @@ export type AppClaimedInviteEdgeSelect = { select: AppClaimedInviteSelect; }; }; -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -export type AppGrantEdgeSelect = { +export type OrgLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: AppGrantSelect; + select: OrgLimitWarningSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type AppGrantEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: AppGrantSelect; }; }; /** A `OrgClaimedInvite` edge in the connection. */ @@ -7442,28 +7421,52 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type OrgChartEdgeEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: OrgChartEdgeSelect; + select: AppLimitEventSelect; + }; +}; +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} +export type OrgLimitEventEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitEventSelect; + }; +}; +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} +export type OrgMembershipSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSettingSelect; }; }; -/** A `UsageSnapshot` edge in the connection. */ -export interface UsageSnapshotEdge { +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { cursor?: string | null; - /** The `UsageSnapshot` at the end of the edge. */ - node?: UsageSnapshot | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; } -export type UsageSnapshotEdgeSelect = { +export type AppMembershipEdgeSelect = { cursor?: boolean; node?: { - select: UsageSnapshotSelect; + select: AppMembershipSelect; }; }; /** A `AppLimit` edge in the connection. */ @@ -7478,28 +7481,28 @@ export type AppLimitEdgeSelect = { select: AppLimitSelect; }; }; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } -export type AppInviteEdgeSelect = { +export type OrgMembershipEdgeSelect = { cursor?: boolean; node?: { - select: AppInviteSelect; + select: OrgMembershipSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; } -export type OrgMembershipSettingEdgeSelect = { +export type OrgMemberProfileEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipSettingSelect; + select: OrgMemberProfileSelect; }; }; /** A `OrgLimitAggregate` edge in the connection. */ @@ -7526,28 +7529,16 @@ export type OrgLimitEdgeSelect = { select: OrgLimitSelect; }; }; -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -export type OrgMemberProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberProfileSelect; - }; -}; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; } -export type AppMembershipEdgeSelect = { +export type AppInviteEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: AppInviteSelect; }; }; /** A `OrgInvite` edge in the connection. */ @@ -7562,15 +7553,3 @@ export type OrgInviteEdgeSelect = { select: OrgInviteSelect; }; }; -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -export type OrgMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSelect; - }; -}; diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts +++ b/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-react/src/admin/orm/models/index.ts b/sdk/constructive-react/src/admin/orm/models/index.ts index 68ff613876..baa9547682 100644 --- a/sdk/constructive-react/src/admin/orm/models/index.ts +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -12,39 +12,38 @@ export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; export { AppLimitCreditModel } from './appLimitCredit'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; export { AppLimitCapModel } from './appLimitCap'; export { OrgLimitCapModel } from './orgLimitCap'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgLimitCreditModel } from './orgLimitCredit'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; export { AppLimitWarningModel } from './appLimitWarning'; -export { OrgLimitWarningModel } from './orgLimitWarning'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; +export { OrgLimitWarningModel } from './orgLimitWarning'; +export { MembershipTypeModel } from './membershipType'; export { AppGrantModel } from './appGrant'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { OrgGrantModel } from './orgGrant'; export { AppLimitEventModel } from './appLimitEvent'; export { OrgLimitEventModel } from './orgLimitEvent'; -export { OrgGrantModel } from './orgGrant'; -export { OrgChartEdgeModel } from './orgChartEdge'; -export { UsageSnapshotModel } from './usageSnapshot'; -export { AppLimitModel } from './appLimit'; -export { AppInviteModel } from './appInvite'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; +export { AppMembershipModel } from './appMembership'; +export { AppLimitModel } from './appLimit'; +export { OrgMembershipModel } from './orgMembership'; +export { OrgMemberProfileModel } from './orgMemberProfile'; export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { OrgLimitModel } from './orgLimit'; -export { OrgMemberProfileModel } from './orgMemberProfile'; -export { AppMembershipModel } from './appMembership'; +export { AppInviteModel } from './appInvite'; export { OrgInviteModel } from './orgInvite'; -export { OrgMembershipModel } from './orgMembership'; diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index 0de2e366b8..d1d5d8c0df 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -49,7 +49,6 @@ import type { OrgOwnerGrant, OrgPermission, OrgPermissionDefault, - UsageSnapshot, BigFloatFilter, BigIntFilter, BitStringFilter, @@ -135,21 +134,40 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -/** Methods to use when ordering `AppLimitCreditCode`. */ -export type AppLimitCreditCodeOrderBy = +/** Methods to use when ordering `AppAdminGrant`. */ +export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppOwnerGrant`. */ +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `OrgPermissionDefault`. */ export type OrgPermissionDefaultOrderBy = | 'NATURAL' @@ -161,38 +179,27 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `AppPermission`. */ -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `OrgPermission`. */ -export type OrgPermissionOrderBy = +/** Methods to use when ordering `AppMembershipDefault`. */ +export type AppMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `AppAdminGrant`. */ -export type AppAdminGrantOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +/** Methods to use when ordering `OrgAdminGrant`. */ +export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -202,14 +209,35 @@ export type AppAdminGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppOwnerGrant`. */ -export type AppOwnerGrantOrderBy = +/** Methods to use when ordering `OrgMembershipDefault`. */ +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `OrgOwnerGrant`. */ +export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -219,6 +247,8 @@ export type AppOwnerGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -273,61 +303,27 @@ export type OrgLimitCapOrderBy = | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -/** Methods to use when ordering `OrgAdminGrant`. */ -export type OrgAdminGrantOrderBy = +/** Methods to use when ordering `OrgChartEdge`. */ +export type OrgChartEdgeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgOwnerGrant`. */ -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; /** Methods to use when ordering `AppLimitDefault`. */ export type AppLimitDefaultOrderBy = | 'NATURAL' @@ -373,8 +369,8 @@ export type OrgLimitDefaultOrderBy = | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC'; -/** Methods to use when ordering `AppLimitWarning`. */ -export type AppLimitWarningOrderBy = +/** Methods to use when ordering `AppPermission`. */ +export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -382,14 +378,44 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -/** Methods to use when ordering `OrgLimitWarning`. */ -export type OrgLimitWarningOrderBy = + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `OrgPermission`. */ +export type OrgPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `AppLimitCreditCode`. */ +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +/** Methods to use when ordering `AppLimitWarning`. */ +export type AppLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -402,9 +428,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'TASK_IDENTIFIER_DESC'; /** Methods to use when ordering `OrgChartEdgeGrant`. */ export type OrgChartEdgeGrantOrderBy = | 'NATURAL' @@ -445,6 +469,40 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgLimitWarning`. */ +export type OrgLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `MembershipType`. */ +export type MembershipTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; /** Methods to use when ordering `AppGrant`. */ export type AppGrantOrderBy = | 'NATURAL' @@ -464,44 +522,6 @@ export type AppGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppMembershipDefault`. */ -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -/** Methods to use when ordering `OrgMembershipDefault`. */ -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; /** Methods to use when ordering `OrgClaimedInvite`. */ export type OrgClaimedInviteOrderBy = | 'NATURAL' @@ -521,9 +541,36 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `OrgGrant`. */ +export type OrgGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppLimitEvent`. */ export type AppLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -545,6 +592,12 @@ export type AppLimitEventOrderBy = /** Methods to use when ordering `OrgLimitEvent`. */ export type OrgLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -563,29 +616,41 @@ export type OrgLimitEventOrderBy = | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC'; -/** Methods to use when ordering `OrgGrant`. */ -export type OrgGrantOrderBy = +/** Methods to use when ordering `OrgMembershipSetting`. */ +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgChartEdge`. */ -export type OrgChartEdgeOrderBy = + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +/** Methods to use when ordering `AppMembership`. */ +export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -595,33 +660,32 @@ export type OrgChartEdgeOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -/** Methods to use when ordering `UsageSnapshot`. */ -export type UsageSnapshotOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC'; + | 'CREATED_BY_ASC' + | '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'; /** Methods to use when ordering `AppLimit`. */ export type AppLimitOrderBy = | 'NATURAL' @@ -649,39 +713,49 @@ export type AppLimitOrderBy = | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC'; -/** Methods to use when ordering `AppInvite`. */ -export type AppInviteOrderBy = +/** Methods to use when ordering `OrgMembership`. */ +export type OrgMembershipOrderBy = | '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' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `OrgMembershipSetting`. */ -export type OrgMembershipSettingOrderBy = + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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_EXTERNAL_ASC' + | 'IS_EXTERNAL_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' + | 'ENTITY_ID_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; +/** Methods to use when ordering `OrgMemberProfile`. */ +export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -691,28 +765,22 @@ export type OrgMembershipSettingOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' + | 'MEMBERSHIP_ID_ASC' + | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'BIO_ASC' + | 'BIO_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC'; /** Methods to use when ordering `OrgLimitAggregate`. */ export type OrgLimitAggregateOrderBy = | 'NATURAL' @@ -771,70 +839,37 @@ export type OrgLimitOrderBy = | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `OrgMemberProfile`. */ -export type OrgMemberProfileOrderBy = +/** Methods to use when ordering `AppInvite`. */ +export type AppInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -/** Methods to use when ordering `AppMembership`. */ -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | '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' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `OrgInvite`. */ export type OrgInviteOrderBy = | 'NATURAL' @@ -872,47 +907,6 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `OrgMembership`. */ -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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_EXTERNAL_ASC' - | 'IS_EXTERNAL_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' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -1094,6 +1088,48 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } +/** A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppAdminGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppAdminGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppAdminGrantFilter[]; + /** Negates the expression. */ + not?: AppAdminGrantFilter; +} +/** A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppOwnerGrantFilter[]; + /** Negates the expression. */ + not?: AppOwnerGrantFilter; +} /** 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. */ @@ -1109,52 +1145,39 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } -/** 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; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface 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 `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 `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?: OrgPermissionFilter[]; + and?: AppMembershipDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; + or?: AppMembershipDefaultFilter[]; /** Negates the expression. */ - not?: OrgPermissionFilter; + not?: AppMembershipDefaultFilter; } -/** A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppAdminGrantFilter { +/** A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1162,20 +1185,45 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; + or?: OrgAdminGrantFilter[]; /** Negates the expression. */ - not?: AppAdminGrantFilter; + not?: OrgAdminGrantFilter; } -/** A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppOwnerGrantFilter { +/** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipDefaultFilter { + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} +/** A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1183,11 +1231,11 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; + and?: OrgOwnerGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; + or?: OrgOwnerGrantFilter[]; /** Negates the expression. */ - not?: AppOwnerGrantFilter; + not?: OrgOwnerGrantFilter; } /** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCapsDefaultFilter { @@ -1253,72 +1301,30 @@ export interface OrgLimitCapFilter { /** Negates the expression. */ not?: OrgLimitCapFilter; } -/** A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgAdminGrantFilter { +/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: 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?: OrgAdminGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; - /** Negates the expression. */ - not?: OrgAdminGrantFilter; -} -/** A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: 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?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; -} -/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: OrgChartEdgeFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: OrgChartEdgeFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: OrgChartEdgeFilter; } /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitCreditFilter { @@ -1375,27 +1381,46 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } -/** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitWarningFilter { +/** 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 `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: 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?: AppLimitWarningFilter[]; + and?: AppPermissionFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: AppPermissionFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: AppPermissionFilter; } -/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitWarningFilter { +/** 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 `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1406,14 +1431,12 @@ export interface OrgLimitWarningFilter { thresholdValue?: BigIntFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; + and?: AppLimitWarningFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; + or?: AppLimitWarningFilter[]; /** Negates the expression. */ - not?: OrgLimitWarningFilter; + not?: AppLimitWarningFilter; } /** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgChartEdgeGrantFilter { @@ -1461,6 +1484,48 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } +/** A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} /** A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ */ export interface AppGrantFilter { /** Filter by the object’s `id` field. */ @@ -1484,75 +1549,58 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } -/** 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 `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipDefaultFilter { +/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgClaimedInviteFilter { /** 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; - /** 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 `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: OrgClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: OrgClaimedInviteFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; + not?: OrgClaimedInviteFilter; } -/** A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgClaimedInviteFilter { +/** A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgGrantFilter { /** 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 `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; + and?: OrgGrantFilter[]; /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; + or?: OrgGrantFilter[]; /** Negates the expression. */ - not?: OrgClaimedInviteFilter; + not?: OrgGrantFilter; } /** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -1580,6 +1628,10 @@ export interface AppLimitEventFilter { } /** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -1605,76 +1657,83 @@ export interface OrgLimitEventFilter { /** Negates the expression. */ not?: OrgLimitEventFilter; } -/** A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: 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?: OrgGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; - /** Negates the expression. */ - not?: OrgGrantFilter; -} -/** A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeFilter { +/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipSettingFilter { /** 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 `entityId` field. */ + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: OrgChartEdgeFilter; + not?: OrgMembershipSettingFilter; } -/** A filter to be used against `UsageSnapshot` object types. All fields are combined with a logical ‘and.’ */ -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; +/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipFilter { /** 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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; + and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; + or?: AppMembershipFilter[]; /** Negates the expression. */ - not?: UsageSnapshotFilter; + not?: AppMembershipFilter; } /** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitFilter { @@ -1751,6 +1810,189 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } +/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipFilter { + /** 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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isExternal` field. */ + isExternal?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipFilter[]; + /** Negates the expression. */ + not?: OrgMembershipFilter; + /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ + orgMemberProfileByMembershipId?: OrgMemberProfileFilter; + /** A related `orgMemberProfileByMembershipId` exists. */ + orgMemberProfileByMembershipIdExists?: boolean; +} +/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMemberProfileFilter { + /** 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 `membershipId` field. */ + membershipId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `bio` field. */ + bio?: StringFilter; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; + /** Checks for all expressions in this list. */ + and?: OrgMemberProfileFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMemberProfileFilter[]; + /** Negates the expression. */ + not?: OrgMemberProfileFilter; + /** Filter by the object’s `membership` relation. */ + membership?: OrgMembershipFilter; +} +/** 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). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} +/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `reserved` field. */ + reserved?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} +/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Filter by the object’s `planMax` field. */ + planMax?: BigIntFilter; + /** Filter by the object’s `purchasedCredits` field. */ + purchasedCredits?: BigIntFilter; + /** Filter by the object’s `periodCredits` field. */ + periodCredits?: BigIntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitFilter[]; + /** Negates the expression. */ + not?: OrgLimitFilter; +} /** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ export interface AppInviteFilter { /** Filter by the object’s `id` field. */ @@ -1861,267 +2103,6 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipSettingFilter { - /** 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 `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; - /** Negates the expression. */ - not?: OrgMembershipSettingFilter; -} -/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitAggregateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `reserved` field. */ - reserved?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitAggregateFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitAggregateFilter[]; - /** Negates the expression. */ - not?: OrgLimitAggregateFilter; -} -/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: BigIntFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Filter by the object’s `windowStart` field. */ - windowStart?: DatetimeFilter; - /** Filter by the object’s `windowDuration` field. */ - windowDuration?: IntervalFilter; - /** Filter by the object’s `planMax` field. */ - planMax?: BigIntFilter; - /** Filter by the object’s `purchasedCredits` field. */ - purchasedCredits?: BigIntFilter; - /** Filter by the object’s `periodCredits` field. */ - periodCredits?: BigIntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} -/** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMemberProfileFilter { - /** 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 `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -/** 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). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { - /** 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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} -/** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipFilter { - /** 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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; - /** Negates the expression. */ - not?: AppMembershipFilter; -} /** 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. */ @@ -2208,22 +2189,37 @@ export interface AppPermissionDefaultInput { /** Default permission bitmask applied to new members */ permissions?: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateAppAdminGrantInput { clientMutationId?: string; - /** The `AppLimitCreditCode` to be created by this mutation. */ - appLimitCreditCode: AppLimitCreditCodeInput; + /** The `AppAdminGrant` to be created by this mutation. */ + appAdminGrant: AppAdminGrantInput; } -/** An input for mutations affecting `AppLimitCreditCode` */ -export interface AppLimitCreditCodeInput { +/** An input for mutations affecting `AppAdminGrant` */ +export interface AppAdminGrantInput { id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant */ + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + /** The `AppOwnerGrant` to be created by this mutation. */ + appOwnerGrant: AppOwnerGrantInput; +} +/** An input for mutations affecting `AppOwnerGrant` */ +export interface AppOwnerGrantInput { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant */ + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; } export interface CreateOrgPermissionDefaultInput { clientMutationId?: string; @@ -2238,68 +2234,72 @@ export interface OrgPermissionDefaultInput { /** References the entity these default permissions apply to */ entityId: string; } -export interface CreateAppPermissionInput { - clientMutationId?: string; - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; -} -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface CreateOrgPermissionInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; + /** The `AppMembershipDefault` to be created by this mutation. */ + appMembershipDefault: AppMembershipDefaultInput; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { +/** An input for mutations affecting `AppMembershipDefault` */ +export interface AppMembershipDefaultInput { id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; } -export interface CreateAppAdminGrantInput { +export interface CreateOrgAdminGrantInput { clientMutationId?: string; - /** The `AppAdminGrant` to be created by this mutation. */ - appAdminGrant: AppAdminGrantInput; + /** The `OrgAdminGrant` to be created by this mutation. */ + orgAdminGrant: OrgAdminGrantInput; } -/** An input for mutations affecting `AppAdminGrant` */ -export interface AppAdminGrantInput { +/** An input for mutations affecting `OrgAdminGrant` */ +export interface OrgAdminGrantInput { id?: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean; /** The member receiving or losing the admin grant */ actorId: string; + /** The entity (org or group) this admin grant applies to */ + entityId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface CreateAppOwnerGrantInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - /** The `AppOwnerGrant` to be created by this mutation. */ - appOwnerGrant: AppOwnerGrantInput; + /** The `OrgMembershipDefault` to be created by this mutation. */ + orgMembershipDefault: OrgMembershipDefaultInput; } -/** An input for mutations affecting `AppOwnerGrant` */ -export interface AppOwnerGrantInput { +/** An input for mutations affecting `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + /** The `OrgOwnerGrant` to be created by this mutation. */ + orgOwnerGrant: OrgOwnerGrantInput; +} +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { id?: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; /** The member receiving or losing the ownership grant */ actorId: string; + /** The entity (org or group) this ownership grant applies to */ + entityId: string; grantorId?: string; createdAt?: string; updatedAt?: string; @@ -2360,61 +2360,43 @@ export interface OrgLimitCapInput { /** Override cap value for this entity */ max?: string; } -export interface CreateOrgAdminGrantInput { +export interface CreateOrgChartEdgeInput { clientMutationId?: string; - /** The `OrgAdminGrant` to be created by this mutation. */ - orgAdminGrant: OrgAdminGrantInput; + /** The `OrgChartEdge` to be created by this mutation. */ + orgChartEdge: OrgChartEdgeInput; } -/** An input for mutations affecting `OrgAdminGrant` */ -export interface OrgAdminGrantInput { +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { id?: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId: string; - /** The entity (org or group) this admin grant applies to */ - entityId: string; - grantorId?: string; createdAt?: string; updatedAt?: string; -} -export interface CreateOrgOwnerGrantInput { - clientMutationId?: string; - /** The `OrgOwnerGrant` to be created by this mutation. */ - orgOwnerGrant: OrgOwnerGrantInput; -} -/** An input for mutations affecting `OrgOwnerGrant` */ -export interface OrgOwnerGrantInput { - id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId: string; - /** The entity (org or group) this ownership grant applies to */ + /** Organization this hierarchy edge belongs to */ entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; } -export interface CreateMembershipTypeInput { +export interface CreateAppLimitCreditCodeItemInput { clientMutationId?: string; - /** The `MembershipType` to be created by this mutation. */ - membershipType: MembershipTypeInput; + /** The `AppLimitCreditCodeItem` to be created by this mutation. */ + appLimitCreditCodeItem: AppLimitCreditCodeItemInput; } -/** An input for mutations affecting `MembershipType` */ -export interface MembershipTypeInput { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name: string; - /** Description of what this membership type represents */ - description: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; +/** An input for mutations affecting `AppLimitCreditCodeItem` */ +export interface AppLimitCreditCodeItemInput { + id?: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId: string; + /** Number of credits this item grants per redemption */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; } export interface CreateAppLimitDefaultInput { clientMutationId?: string; @@ -2436,32 +2418,66 @@ export interface CreateOrgLimitDefaultInput { /** The `OrgLimitDefault` to be created by this mutation. */ orgLimitDefault: OrgLimitDefaultInput; } -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { +/** An input for mutations affecting `OrgLimitDefault` */ +export interface OrgLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + /** The `AppPermission` to be created by this mutation. */ + appPermission: AppPermissionInput; +} +/** An input for mutations affecting `AppPermission` */ +export interface AppPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + /** The `OrgPermission` to be created by this mutation. */ + orgPermission: OrgPermissionInput; +} +/** An input for mutations affecting `OrgPermission` */ +export interface OrgPermissionInput { id?: string; - /** Name identifier of the limit this default applies to */ - name: string; - /** Default maximum usage allowed for this limit */ - max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; } -export interface CreateAppLimitCreditCodeItemInput { +export interface CreateAppLimitCreditCodeInput { clientMutationId?: string; - /** The `AppLimitCreditCodeItem` to be created by this mutation. */ - appLimitCreditCodeItem: AppLimitCreditCodeItemInput; + /** The `AppLimitCreditCode` to be created by this mutation. */ + appLimitCreditCode: AppLimitCreditCodeInput; } -/** An input for mutations affecting `AppLimitCreditCodeItem` */ -export interface AppLimitCreditCodeItemInput { +/** An input for mutations affecting `AppLimitCreditCode` */ +export interface AppLimitCreditCodeInput { id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId: string; - /** Number of credits this item grants per redemption */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; } export interface CreateAppLimitWarningInput { clientMutationId?: string; @@ -2480,6 +2496,31 @@ export interface AppLimitWarningInput { /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier: string; } +export interface CreateOrgChartEdgeGrantInput { + clientMutationId?: string; + /** The `OrgChartEdgeGrant` to be created by this mutation. */ + orgChartEdgeGrant: OrgChartEdgeGrantInput; +} +/** An input for mutations affecting `OrgChartEdgeGrant` */ +export interface OrgChartEdgeGrantInput { + id?: string; + /** Organization this grant applies to */ + entityId: string; + /** User ID of the subordinate being placed in the hierarchy */ + 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; 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 */ + positionTitle?: string; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} export interface CreateAppLimitCreditInput { clientMutationId?: string; /** The `AppLimitCredit` to be created by this mutation. */ @@ -2499,25 +2540,6 @@ export interface AppLimitCreditInput { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string; } -export interface CreateOrgLimitWarningInput { - clientMutationId?: string; - /** The `OrgLimitWarning` to be created by this mutation. */ - orgLimitWarning: OrgLimitWarningInput; -} -/** An input for mutations affecting `OrgLimitWarning` */ -export interface OrgLimitWarningInput { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} export interface CreateOrgLimitCreditInput { clientMutationId?: string; /** The `OrgLimitCredit` to be created by this mutation. */ @@ -2539,31 +2561,6 @@ export interface OrgLimitCreditInput { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string; } -export interface CreateOrgChartEdgeGrantInput { - clientMutationId?: string; - /** The `OrgChartEdgeGrant` to be created by this mutation. */ - orgChartEdgeGrant: OrgChartEdgeGrantInput; -} -/** An input for mutations affecting `OrgChartEdgeGrant` */ -export interface OrgChartEdgeGrantInput { - id?: string; - /** Organization this grant applies to */ - entityId: string; - /** User ID of the subordinate being placed in the hierarchy */ - 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; 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 */ - positionTitle?: string; - /** Numeric seniority level being assigned in this grant */ - positionLevel?: number; - /** Timestamp when this grant or revocation was recorded */ - createdAt?: string; -} export interface CreateAppClaimedInviteInput { clientMutationId?: string; /** The `AppClaimedInvite` to be created by this mutation. */ @@ -2581,6 +2578,45 @@ export interface AppClaimedInviteInput { createdAt?: string; updatedAt?: string; } +export interface CreateOrgLimitWarningInput { + clientMutationId?: string; + /** The `OrgLimitWarning` to be created by this mutation. */ + orgLimitWarning: OrgLimitWarningInput; +} +/** An input for mutations affecting `OrgLimitWarning` */ +export interface OrgLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; +} +/** An input for mutations affecting `MembershipType` */ +export interface MembershipTypeInput { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name: string; + /** Description of what this membership type represents */ + description: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; +} export interface CreateAppGrantInput { clientMutationId?: string; /** The `AppGrant` to be created by this mutation. */ @@ -2599,40 +2635,6 @@ export interface AppGrantInput { createdAt?: string; updatedAt?: string; } -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - /** The `AppMembershipDefault` to be created by this mutation. */ - appMembershipDefault: AppMembershipDefaultInput; -} -/** An input for mutations affecting `AppMembershipDefault` */ -export interface AppMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - /** The `OrgMembershipDefault` to be created by this mutation. */ - orgMembershipDefault: OrgMembershipDefaultInput; -} -/** An input for mutations affecting `OrgMembershipDefault` */ -export interface OrgMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId: string; -} export interface CreateOrgClaimedInviteInput { clientMutationId?: string; /** The `OrgClaimedInvite` to be created by this mutation. */ @@ -2651,6 +2653,26 @@ export interface OrgClaimedInviteInput { updatedAt?: string; entityId: string; } +export interface CreateOrgGrantInput { + clientMutationId?: string; + /** The `OrgGrant` to be created by this mutation. */ + orgGrant: OrgGrantInput; +} +/** An input for mutations affecting `OrgGrant` */ +export interface OrgGrantInput { + id?: string; + /** Bitmask of permissions being granted or revoked */ + permissions?: string; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean; + /** The member receiving or losing the permission grant */ + actorId: string; + /** The entity (org or group) this permission grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateAppLimitEventInput { clientMutationId?: string; /** The `AppLimitEvent` to be created by this mutation. */ @@ -2658,6 +2680,9 @@ export interface CreateAppLimitEventInput { } /** An input for mutations affecting `AppLimitEvent` */ export interface AppLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; /** Limit name this event applies to */ name?: string; /** User who triggered this event; NULL for system/aggregate events */ @@ -2684,6 +2709,9 @@ export interface CreateOrgLimitEventInput { } /** An input for mutations affecting `OrgLimitEvent` */ export interface OrgLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; /** Limit name this event applies to */ name?: string; /** User who triggered this event; NULL for system/aggregate events */ @@ -2703,65 +2731,70 @@ export interface OrgLimitEventInput { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string; } -export interface CreateOrgGrantInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - /** The `OrgGrant` to be created by this mutation. */ - orgGrant: OrgGrantInput; + /** The `OrgMembershipSetting` to be created by this mutation. */ + orgMembershipSetting: OrgMembershipSettingInput; } -/** An input for mutations affecting `OrgGrant` */ -export interface OrgGrantInput { +/** An input for mutations affecting `OrgMembershipSetting` */ +export interface OrgMembershipSettingInput { id?: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean; - /** The member receiving or losing the permission grant */ - actorId: string; - /** The entity (org or group) this permission grant applies to */ - entityId: string; - grantorId?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; } -export interface CreateOrgChartEdgeInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - /** The `OrgChartEdge` to be created by this mutation. */ - orgChartEdge: OrgChartEdgeInput; + /** The `AppMembership` to be created by this mutation. */ + appMembership: AppMembershipInput; } -/** An input for mutations affecting `OrgChartEdge` */ -export interface OrgChartEdgeInput { +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { id?: string; createdAt?: string; updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface CreateUsageSnapshotInput { - clientMutationId?: string; - /** The `UsageSnapshot` to be created by this mutation. */ - usageSnapshot: UsageSnapshotInput; -} -/** An input for mutations affecting `UsageSnapshot` */ -export interface UsageSnapshotInput { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId: string; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName: string; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: unknown; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string; - id?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId: string; + profileId?: string; } export interface CreateAppLimitInput { clientMutationId?: string; @@ -2792,67 +2825,70 @@ export interface AppLimitInput { /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; } -export interface CreateAppInviteInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - /** The `AppInvite` to be created by this mutation. */ - appInvite: AppInviteInput; + /** The `OrgMembership` to be created by this mutation. */ + orgMembership: OrgMembershipInput; } -/** An input for mutations affecting `AppInvite` */ -export interface AppInviteInput { +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId: string; + /** References the entity (org or group) this membership belongs to */ + entityId: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; + profileId?: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - /** The `OrgMembershipSetting` to be created by this mutation. */ - orgMembershipSetting: OrgMembershipSettingInput; + /** The `OrgMemberProfile` to be created by this mutation. */ + orgMemberProfile: OrgMemberProfileInput; } -/** An input for mutations affecting `OrgMembershipSetting` */ -export interface OrgMembershipSettingInput { +/** An input for mutations affecting `OrgMemberProfile` */ +export interface OrgMemberProfileInput { id?: string; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ + /** References the membership this profile belongs to (1:1) */ + membershipId: string; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId: string; + /** Display name shown to other entity members */ + displayName?: string; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string; + /** Job title or role description visible to other entity members */ + title?: string; + /** Short biography visible to other entity members */ + bio?: string; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage; } export interface CreateOrgLimitAggregateInput { clientMutationId?: string; @@ -2915,81 +2951,18 @@ export interface OrgLimitInput { periodCredits?: string; entityId: string; } -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - /** The `OrgMemberProfile` to be created by this mutation. */ - orgMemberProfile: OrgMemberProfileInput; -} -/** An input for mutations affecting `OrgMemberProfile` */ -export interface OrgMemberProfileInput { - id?: string; - createdAt?: string; - updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId: string; - /** References the user who owns this profile (for self-edit RLS) */ - actorId: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - /** The `AppMembership` to be created by this mutation. */ - appMembership: AppMembershipInput; -} -/** An input for mutations affecting `AppMembership` */ -export interface AppMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId: string; - profileId?: string; -} -export interface CreateOrgInviteInput { +export interface CreateAppInviteInput { clientMutationId?: string; - /** The `OrgInvite` to be created by this mutation. */ - orgInvite: OrgInviteInput; + /** The `AppInvite` to be created by this mutation. */ + appInvite: AppInviteInput; } -/** An input for mutations affecting `OrgInvite` */ -export interface OrgInviteInput { +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { id?: string; /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; /** User ID of the member who sent this invitation */ senderId?: string; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string; /** Unique random hex token used to redeem this invitation */ inviteToken?: string; /** Whether this invitation is still valid and can be redeemed */ @@ -3004,51 +2977,46 @@ export interface OrgInviteInput { data?: unknown; /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ profileId?: string; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; - entityId: string; } -export interface CreateOrgMembershipInput { +export interface CreateOrgInviteInput { clientMutationId?: string; - /** The `OrgMembership` to be created by this mutation. */ - orgMembership: OrgMembershipInput; + /** The `OrgInvite` to be created by this mutation. */ + orgInvite: OrgInviteInput; } -/** An input for mutations affecting `OrgMembership` */ -export interface OrgMembershipInput { +/** An input for mutations affecting `OrgInvite` */ +export interface OrgInviteInput { id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId: string; - /** References the entity (org or group) this membership belongs to */ - entityId: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ profileId?: string; + /** Whether the resulting membership should be read-only when this invite is claimed */ + isReadOnly?: boolean; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; } export interface UpdateAppLimitCreditRedemptionInput { clientMutationId?: string; @@ -3092,23 +3060,39 @@ export interface AppPermissionDefaultPatch { /** Default permission bitmask applied to new members */ permissions?: string; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ - appLimitCreditCodePatch: AppLimitCreditCodePatch; + /** An object where the defined keys will be set on the `AppAdminGrant` being updated. */ + appAdminGrantPatch: AppAdminGrantPatch; } -/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ -export interface AppLimitCreditCodePatch { +/** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ +export interface AppAdminGrantPatch { id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppOwnerGrant` being updated. */ + appOwnerGrantPatch: AppOwnerGrantPatch; +} +/** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ +export interface AppOwnerGrantPatch { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; } export interface UpdateOrgPermissionDefaultInput { clientMutationId?: string; @@ -3124,72 +3108,76 @@ export interface OrgPermissionDefaultPatch { /** References the entity these default permissions apply to */ entityId?: string; } -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppPermission` being updated. */ - appPermissionPatch: AppPermissionPatch; -} -/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ -export interface AppPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface UpdateOrgPermissionInput { +export interface UpdateAppMembershipDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgPermission` being updated. */ - orgPermissionPatch: OrgPermissionPatch; + /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ + appMembershipDefaultPatch: AppMembershipDefaultPatch; } -/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ -export interface OrgPermissionPatch { +/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ +export interface AppMembershipDefaultPatch { id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; } -export interface UpdateAppAdminGrantInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppAdminGrant` being updated. */ - appAdminGrantPatch: AppAdminGrantPatch; + /** An object where the defined keys will be set on the `OrgAdminGrant` being updated. */ + orgAdminGrantPatch: OrgAdminGrantPatch; } -/** Represents an update to a `AppAdminGrant`. Fields that are set will be updated. */ -export interface AppAdminGrantPatch { +/** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ +export interface OrgAdminGrantPatch { id?: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean; /** The member receiving or losing the admin grant */ actorId?: string; + /** The entity (org or group) this admin grant applies to */ + entityId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface UpdateAppOwnerGrantInput { +export interface UpdateOrgMembershipDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppOwnerGrant` being updated. */ - appOwnerGrantPatch: AppOwnerGrantPatch; + /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; } -/** Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. */ -export interface AppOwnerGrantPatch { +/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ +export interface OrgMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId?: string; +} +export interface UpdateOrgOwnerGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgOwnerGrant` being updated. */ + orgOwnerGrantPatch: OrgOwnerGrantPatch; +} +/** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ +export interface OrgOwnerGrantPatch { id?: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; /** The member receiving or losing the ownership grant */ actorId?: string; + /** The entity (org or group) this ownership grant applies to */ + entityId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; @@ -3254,65 +3242,45 @@ export interface OrgLimitCapPatch { /** Override cap value for this entity */ max?: string; } -export interface UpdateOrgAdminGrantInput { +export interface UpdateOrgChartEdgeInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgAdminGrant` being updated. */ - orgAdminGrantPatch: OrgAdminGrantPatch; + /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ + orgChartEdgePatch: OrgChartEdgePatch; } -/** Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. */ -export interface OrgAdminGrantPatch { +/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ +export interface OrgChartEdgePatch { id?: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId?: string; - /** The entity (org or group) this admin grant applies to */ - entityId?: string; - grantorId?: string; createdAt?: string; updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId?: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateAppLimitCreditCodeItemInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgOwnerGrant` being updated. */ - orgOwnerGrantPatch: OrgOwnerGrantPatch; + /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; } -/** Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. */ -export interface OrgOwnerGrantPatch { +/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ +export interface AppLimitCreditCodeItemPatch { id?: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId?: string; - /** The entity (org or group) this ownership grant applies to */ - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** An object where the defined keys will be set on the `MembershipType` being updated. */ - membershipTypePatch: MembershipTypePatch; -} -/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ -export interface MembershipTypePatch { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id?: number; - /** Human-readable name of the membership type */ - name?: string; - /** Description of what this membership type represents */ - description?: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId?: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId?: string; + /** Number of credits this item grants per redemption */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; } export interface UpdateAppLimitDefaultInput { clientMutationId?: string; @@ -3346,23 +3314,59 @@ export interface OrgLimitDefaultPatch { /** Default soft limit threshold for warnings; NULL means no soft limit */ softMax?: string; } -export interface UpdateAppLimitCreditCodeItemInput { +export interface UpdateAppPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppPermission` being updated. */ + appPermissionPatch: AppPermissionPatch; +} +/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ +export interface AppPermissionPatch { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermission` being updated. */ + orgPermissionPatch: OrgPermissionPatch; +} +/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ +export interface OrgPermissionPatch { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface UpdateAppLimitCreditCodeInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; + /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ + appLimitCreditCodePatch: AppLimitCreditCodePatch; } -/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ -export interface AppLimitCreditCodeItemPatch { +/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ +export interface AppLimitCreditCodePatch { id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string; - /** Number of credits this item grants per redemption */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; } export interface UpdateAppLimitWarningInput { clientMutationId?: string; @@ -3382,6 +3386,32 @@ export interface AppLimitWarningPatch { /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string; } +export interface UpdateOrgChartEdgeGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. */ + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; +} +/** Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. */ +export interface OrgChartEdgeGrantPatch { + id?: string; + /** Organization this grant applies to */ + entityId?: string; + /** User ID of the subordinate being placed in the hierarchy */ + 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; 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 */ + positionTitle?: string; + /** Numeric seniority level being assigned in this grant */ + positionLevel?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} export interface UpdateAppLimitCreditInput { clientMutationId?: string; id: string; @@ -3402,26 +3432,6 @@ export interface AppLimitCreditPatch { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string; } -export interface UpdateOrgLimitWarningInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ - orgLimitWarningPatch: OrgLimitWarningPatch; -} -/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ -export interface OrgLimitWarningPatch { - id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; -} export interface UpdateOrgLimitCreditInput { clientMutationId?: string; id: string; @@ -3444,32 +3454,6 @@ export interface OrgLimitCreditPatch { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string; } -export interface UpdateOrgChartEdgeGrantInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. */ - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch; -} -/** Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. */ -export interface OrgChartEdgeGrantPatch { - id?: string; - /** Organization this grant applies to */ - entityId?: string; - /** User ID of the subordinate being placed in the hierarchy */ - 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; 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 */ - positionTitle?: string; - /** Numeric seniority level being assigned in this grant */ - positionLevel?: number; - /** Timestamp when this grant or revocation was recorded */ - createdAt?: string; -} export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; @@ -3488,6 +3472,48 @@ export interface AppClaimedInvitePatch { createdAt?: string; updatedAt?: string; } +export interface UpdateOrgLimitWarningInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ + orgLimitWarningPatch: OrgLimitWarningPatch; +} +/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ +export interface OrgLimitWarningPatch { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** An object where the defined keys will be set on the `MembershipType` being updated. */ + membershipTypePatch: MembershipTypePatch; +} +/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ +export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id?: number; + /** Human-readable name of the membership type */ + name?: string; + /** Description of what this membership type represents */ + description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; +} export interface UpdateAppGrantInput { clientMutationId?: string; id: string; @@ -3507,42 +3533,6 @@ export interface AppGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ -export interface OrgMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId?: string; -} export interface UpdateOrgClaimedInviteInput { clientMutationId?: string; id: string; @@ -3583,47 +3573,136 @@ export interface OrgGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateOrgChartEdgeInput { +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; + /** An object where the defined keys will be set on the `AppLimitEvent` being updated. */ + appLimitEventPatch: AppLimitEventPatch; +} +/** Represents an update to a `AppLimitEvent`. Fields that are set will be updated. */ +export interface AppLimitEventPatch { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; + /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */ + orgLimitEventPatch: OrgLimitEventPatch; +} +/** Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. */ +export interface OrgLimitEventPatch { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ +export interface OrgMembershipSettingPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId?: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ - orgChartEdgePatch: OrgChartEdgePatch; + /** An object where the defined keys will be set on the `AppMembership` being updated. */ + appMembershipPatch: AppMembershipPatch; } -/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ -export interface OrgChartEdgePatch { +/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ +export interface AppMembershipPatch { id?: string; createdAt?: string; updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId?: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface UpdateUsageSnapshotInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `UsageSnapshot` being updated. */ - usageSnapshotPatch: UsageSnapshotPatch; -} -/** Represents an update to a `UsageSnapshot`. Fields that are set will be updated. */ -export interface UsageSnapshotPatch { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: unknown; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string; - id?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId?: string; + profileId?: string; } export interface UpdateAppLimitInput { clientMutationId?: string; @@ -3655,69 +3734,74 @@ export interface AppLimitPatch { /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; } -export interface UpdateAppInviteInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppInvite` being updated. */ - appInvitePatch: AppInvitePatch; + /** An object where the defined keys will be set on the `OrgMembership` being updated. */ + orgMembershipPatch: OrgMembershipPatch; } -/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ -export interface AppInvitePatch { +/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ +export interface OrgMembershipPatch { id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId?: string; + /** References the entity (org or group) this membership belongs to */ + entityId?: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; + profileId?: string; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ - orgMembershipSettingPatch: OrgMembershipSettingPatch; + /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */ + orgMemberProfilePatch: OrgMemberProfilePatch; } -/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ -export interface OrgMembershipSettingPatch { +/** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */ +export interface OrgMemberProfilePatch { id?: string; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ + /** References the membership this profile belongs to (1:1) */ + membershipId?: string; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId?: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string; + /** Display name shown to other entity members */ + displayName?: string; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string; + /** Job title or role description visible to other entity members */ + title?: string; + /** Short biography visible to other entity members */ + bio?: string; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage; + /** Upload for Profile picture visible to other entity members */ + profilePictureUpload?: File; } export interface UpdateOrgLimitAggregateInput { clientMutationId?: string; @@ -3782,70 +3866,37 @@ export interface OrgLimitPatch { periodCredits?: string; entityId?: string; } -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */ - orgMemberProfilePatch: OrgMemberProfilePatch; -} -/** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */ -export interface OrgMemberProfilePatch { - id?: string; - createdAt?: string; - updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; - /** Upload for Profile picture visible to other entity members */ - profilePictureUpload?: File; -} -export interface UpdateAppMembershipInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppMembership` being updated. */ - appMembershipPatch: AppMembershipPatch; + /** An object where the defined keys will be set on the `AppInvite` being updated. */ + appInvitePatch: AppInvitePatch; } -/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ -export interface AppMembershipPatch { +/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ +export interface AppInvitePatch { id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId?: string; - profileId?: string; } export interface UpdateOrgInviteInput { clientMutationId?: string; @@ -3878,50 +3929,11 @@ export interface OrgInvitePatch { profileId?: string; /** Whether the resulting membership should be read-only when this invite is claimed */ isReadOnly?: boolean; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; - entityId?: string; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembership` being updated. */ - orgMembershipPatch: OrgMembershipPatch; -} -/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ -export interface OrgMembershipPatch { - id?: string; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId?: string; - /** References the entity (org or group) this membership belongs to */ entityId?: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; } export interface DeleteAppLimitCreditRedemptionInput { clientMutationId?: string; @@ -3935,7 +3947,11 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteAppAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3943,19 +3959,19 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgPermissionInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppAdminGrantInput { +export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppOwnerGrantInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3975,19 +3991,14 @@ export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteAppLimitCreditCodeItemInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; -} export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; @@ -3996,43 +4007,48 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditCodeItemInput { +export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitWarningInput { +export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditInput { +export interface DeleteAppLimitCreditCodeInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitCreditInput { +export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgChartEdgeGrantInput { +export interface DeleteAppLimitCreditInput { clientMutationId?: string; id: string; } -export interface DeleteAppClaimedInviteInput { +export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface DeleteAppGrantInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; +} +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } @@ -4044,47 +4060,51 @@ export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteAppLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; } -export interface DeleteUsageSnapshotInput { +export interface DeleteOrgLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; } -export interface DeleteAppLimitInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface DeleteAppInviteInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitAggregateInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMemberProfileInput { +export interface DeleteOrgLimitAggregateInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipInput { +export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } -export interface DeleteOrgInviteInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } @@ -4146,10 +4166,17 @@ export interface AppPermissionDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCode` values. */ -export interface AppLimitCreditCodeConnection { - nodes: AppLimitCreditCode[]; - edges: AppLimitCreditCodeEdge[]; +/** A connection to a list of `AppAdminGrant` values. */ +export interface AppAdminGrantConnection { + nodes: AppAdminGrant[]; + edges: AppAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppOwnerGrant` values. */ +export interface AppOwnerGrantConnection { + nodes: AppOwnerGrant[]; + edges: AppOwnerGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4160,17 +4187,31 @@ export interface OrgPermissionDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppAdminGrant` values. */ -export interface AppAdminGrantConnection { - nodes: AppAdminGrant[]; - edges: AppAdminGrantEdge[]; +/** A connection to a list of `AppMembershipDefault` values. */ +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppOwnerGrant` values. */ -export interface AppOwnerGrantConnection { - nodes: AppOwnerGrant[]; - edges: AppOwnerGrantEdge[]; +/** A connection to a list of `OrgAdminGrant` values. */ +export interface OrgAdminGrantConnection { + nodes: OrgAdminGrant[]; + edges: OrgAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMembershipDefault` values. */ +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgOwnerGrant` values. */ +export interface OrgOwnerGrantConnection { + nodes: OrgOwnerGrant[]; + edges: OrgOwnerGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4202,24 +4243,17 @@ export interface OrgLimitCapConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgAdminGrant` values. */ -export interface OrgAdminGrantConnection { - nodes: OrgAdminGrant[]; - edges: OrgAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgOwnerGrant` values. */ -export interface OrgOwnerGrantConnection { - nodes: OrgOwnerGrant[]; - edges: OrgOwnerGrantEdge[]; +/** A connection to a list of `OrgChartEdge` values. */ +export interface OrgChartEdgeConnection { + nodes: OrgChartEdge[]; + edges: OrgChartEdgeEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `MembershipType` values. */ -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; +/** A connection to a list of `AppLimitCreditCodeItem` values. */ +export interface AppLimitCreditCodeItemConnection { + nodes: AppLimitCreditCodeItem[]; + edges: AppLimitCreditCodeItemEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4237,10 +4271,10 @@ export interface OrgLimitDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCodeItem` values. */ -export interface AppLimitCreditCodeItemConnection { - nodes: AppLimitCreditCodeItem[]; - edges: AppLimitCreditCodeItemEdge[]; +/** A connection to a list of `AppLimitCreditCode` values. */ +export interface AppLimitCreditCodeConnection { + nodes: AppLimitCreditCode[]; + edges: AppLimitCreditCodeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4251,6 +4285,13 @@ export interface AppLimitWarningConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdgeGrant` values. */ +export interface OrgChartEdgeGrantConnection { + nodes: OrgChartEdgeGrant[]; + edges: OrgChartEdgeGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimitCredit` values. */ export interface AppLimitCreditConnection { nodes: AppLimitCredit[]; @@ -4258,13 +4299,6 @@ export interface AppLimitCreditConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitWarning` values. */ -export interface OrgLimitWarningConnection { - nodes: OrgLimitWarning[]; - edges: OrgLimitWarningEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgLimitCredit` values. */ export interface OrgLimitCreditConnection { nodes: OrgLimitCredit[]; @@ -4272,13 +4306,6 @@ export interface OrgLimitCreditConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgChartEdgeGrant` values. */ -export interface OrgChartEdgeGrantConnection { - nodes: OrgChartEdgeGrant[]; - edges: OrgChartEdgeGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppClaimedInvite` values. */ export interface AppClaimedInviteConnection { nodes: AppClaimedInvite[]; @@ -4286,24 +4313,24 @@ export interface AppClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppGrant` values. */ -export interface AppGrantConnection { - nodes: AppGrant[]; - edges: AppGrantEdge[]; +/** A connection to a list of `OrgLimitWarning` values. */ +export interface OrgLimitWarningConnection { + nodes: OrgLimitWarning[]; + edges: OrgLimitWarningEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppMembershipDefault` values. */ -export interface AppMembershipDefaultConnection { - nodes: AppMembershipDefault[]; - edges: AppMembershipDefaultEdge[]; +/** A connection to a list of `MembershipType` values. */ +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembershipDefault` values. */ -export interface OrgMembershipDefaultConnection { - nodes: OrgMembershipDefault[]; - edges: OrgMembershipDefaultEdge[]; +/** A connection to a list of `AppGrant` values. */ +export interface AppGrantConnection { + nodes: AppGrant[]; + edges: AppGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4314,6 +4341,13 @@ export interface OrgClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgGrant` values. */ +export interface OrgGrantConnection { + nodes: OrgGrant[]; + edges: OrgGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLimitEvent` values. */ export interface AppLimitEventConnection { nodes: AppLimitEvent[]; @@ -4328,24 +4362,17 @@ export interface OrgLimitEventConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgGrant` values. */ -export interface OrgGrantConnection { - nodes: OrgGrant[]; - edges: OrgGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgChartEdge` values. */ -export interface OrgChartEdgeConnection { - nodes: OrgChartEdge[]; - edges: OrgChartEdgeEdge[]; +/** A connection to a list of `OrgMembershipSetting` values. */ +export interface OrgMembershipSettingConnection { + nodes: OrgMembershipSetting[]; + edges: OrgMembershipSettingEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `UsageSnapshot` values. */ -export interface UsageSnapshotConnection { - nodes: UsageSnapshot[]; - edges: UsageSnapshotEdge[]; +/** A connection to a list of `AppMembership` values. */ +export interface AppMembershipConnection { + nodes: AppMembership[]; + edges: AppMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4356,17 +4383,17 @@ export interface AppLimitConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppInvite` values. */ -export interface AppInviteConnection { - nodes: AppInvite[]; - edges: AppInviteEdge[]; +/** A connection to a list of `OrgMembership` values. */ +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembershipSetting` values. */ -export interface OrgMembershipSettingConnection { - nodes: OrgMembershipSetting[]; - edges: OrgMembershipSettingEdge[]; + totalCount: number; +} +/** A connection to a list of `OrgMemberProfile` values. */ +export interface OrgMemberProfileConnection { + nodes: OrgMemberProfile[]; + edges: OrgMemberProfileEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4384,17 +4411,10 @@ export interface OrgLimitConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMemberProfile` values. */ -export interface OrgMemberProfileConnection { - nodes: OrgMemberProfile[]; - edges: OrgMemberProfileEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppMembership` values. */ -export interface AppMembershipConnection { - nodes: AppMembership[]; - edges: AppMembershipEdge[]; +/** A connection to a list of `AppInvite` values. */ +export interface AppInviteConnection { + nodes: AppInvite[]; + edges: AppInviteEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -4405,13 +4425,6 @@ export interface OrgInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembership` values. */ -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** Root meta schema type */ export interface MetaSchema { tables: MetaTable[]; @@ -4442,11 +4455,17 @@ export interface CreateAppPermissionDefaultPayload { appPermissionDefault?: AppPermissionDefault | null; appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface CreateAppLimitCreditCodePayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export interface CreateOrgPermissionDefaultPayload { clientMutationId?: string | null; @@ -4454,29 +4473,29 @@ export interface CreateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface CreateAppPermissionPayload { +export interface CreateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export interface CreateOrgPermissionPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface CreateAppAdminGrantPayload { +export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface CreateAppOwnerGrantPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export interface CreateAppLimitCapsDefaultPayload { clientMutationId?: string | null; @@ -4502,23 +4521,17 @@ export interface CreateOrgLimitCapPayload { orgLimitCap?: OrgLimitCap | null; orgLimitCapEdge?: OrgLimitCapEdge | null; } -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface CreateOrgOwnerGrantPayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface CreateMembershipTypePayload { +export interface CreateAppLimitCreditCodeItemPayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitCreditCodeItem` that was created by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; } export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; @@ -4532,11 +4545,23 @@ export interface CreateOrgLimitDefaultPayload { orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface CreateAppLimitCreditCodeItemPayload { +export interface CreateAppPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; } export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; @@ -4544,53 +4569,47 @@ export interface CreateAppLimitWarningPayload { appLimitWarning?: AppLimitWarning | null; appLimitWarningEdge?: AppLimitWarningEdge | null; } +export interface CreateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was created by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface CreateAppLimitCreditPayload { clientMutationId?: string | null; /** The `AppLimitCredit` that was created by this mutation. */ appLimitCredit?: AppLimitCredit | null; appLimitCreditEdge?: AppLimitCreditEdge | null; } -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface CreateOrgLimitCreditPayload { clientMutationId?: string | null; /** The `OrgLimitCredit` that was created by this mutation. */ orgLimitCredit?: OrgLimitCredit | null; orgLimitCreditEdge?: OrgLimitCreditEdge | null; } -export interface CreateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was created by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} export interface CreateAppClaimedInvitePayload { clientMutationId?: string | null; /** The `AppClaimedInvite` that was created by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface CreateAppGrantPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export interface CreateOrgMembershipDefaultPayload { +export interface CreateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } export interface CreateOrgClaimedInvitePayload { clientMutationId?: string | null; @@ -4598,33 +4617,35 @@ export interface CreateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + /** The `OrgGrant` that was created by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} export interface CreateAppLimitEventPayload { clientMutationId?: string | null; /** The `AppLimitEvent` that was created by this mutation. */ appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } export interface CreateOrgLimitEventPayload { clientMutationId?: string | null; /** The `OrgLimitEvent` that was created by this mutation. */ orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } -export interface CreateOrgGrantPayload { - clientMutationId?: string | null; - /** The `OrgGrant` that was created by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface CreateOrgChartEdgePayload { +export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export interface CreateUsageSnapshotPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was created by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } export interface CreateAppLimitPayload { clientMutationId?: string | null; @@ -4632,17 +4653,17 @@ export interface CreateAppLimitPayload { appLimit?: AppLimit | null; appLimitEdge?: AppLimitEdge | null; } -export interface CreateAppInvitePayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } export interface CreateOrgLimitAggregatePayload { clientMutationId?: string | null; @@ -4656,17 +4677,11 @@ export interface CreateOrgLimitPayload { orgLimit?: OrgLimit | null; orgLimitEdge?: OrgLimitEdge | null; } -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export interface CreateAppMembershipPayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface CreateOrgInvitePayload { clientMutationId?: string | null; @@ -4674,12 +4689,6 @@ export interface CreateOrgInvitePayload { orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface UpdateAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was updated by this mutation. */ @@ -4698,11 +4707,17 @@ export interface UpdateAppPermissionDefaultPayload { appPermissionDefault?: AppPermissionDefault | null; appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export interface UpdateOrgPermissionDefaultPayload { clientMutationId?: string | null; @@ -4710,29 +4725,29 @@ export interface UpdateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface UpdateAppPermissionPayload { +export interface UpdateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export interface UpdateOrgPermissionPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface UpdateAppAdminGrantPayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface UpdateAppOwnerGrantPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export interface UpdateAppLimitCapsDefaultPayload { clientMutationId?: string | null; @@ -4758,23 +4773,17 @@ export interface UpdateOrgLimitCapPayload { orgLimitCap?: OrgLimitCap | null; orgLimitCapEdge?: OrgLimitCapEdge | null; } -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface UpdateOrgOwnerGrantPayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface UpdateMembershipTypePayload { +export interface UpdateAppLimitCreditCodeItemPayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; } export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; @@ -4788,11 +4797,23 @@ export interface UpdateOrgLimitDefaultPayload { orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface UpdateAppLimitCreditCodeItemPayload { +export interface UpdateAppPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; } export interface UpdateAppLimitWarningPayload { clientMutationId?: string | null; @@ -4800,53 +4821,47 @@ export interface UpdateAppLimitWarningPayload { appLimitWarning?: AppLimitWarning | null; appLimitWarningEdge?: AppLimitWarningEdge | null; } +export interface UpdateOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was updated by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface UpdateAppLimitCreditPayload { clientMutationId?: string | null; /** The `AppLimitCredit` that was updated by this mutation. */ appLimitCredit?: AppLimitCredit | null; appLimitCreditEdge?: AppLimitCreditEdge | null; } -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface UpdateOrgLimitCreditPayload { clientMutationId?: string | null; /** The `OrgLimitCredit` that was updated by this mutation. */ orgLimitCredit?: OrgLimitCredit | null; orgLimitCreditEdge?: OrgLimitCreditEdge | null; } -export interface UpdateOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was updated by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; -} export interface UpdateAppClaimedInvitePayload { clientMutationId?: string | null; /** The `AppClaimedInvite` that was updated by this mutation. */ appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface UpdateAppGrantPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } export interface UpdateOrgClaimedInvitePayload { clientMutationId?: string | null; @@ -4860,17 +4875,29 @@ export interface UpdateOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } -export interface UpdateOrgChartEdgePayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export interface UpdateUsageSnapshotPayload { +export interface UpdateAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was updated by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } export interface UpdateAppLimitPayload { clientMutationId?: string | null; @@ -4878,17 +4905,17 @@ export interface UpdateAppLimitPayload { appLimit?: AppLimit | null; appLimitEdge?: AppLimitEdge | null; } -export interface UpdateAppInvitePayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } export interface UpdateOrgLimitAggregatePayload { clientMutationId?: string | null; @@ -4902,17 +4929,11 @@ export interface UpdateOrgLimitPayload { orgLimit?: OrgLimit | null; orgLimitEdge?: OrgLimitEdge | null; } -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export interface UpdateAppMembershipPayload { +export interface UpdateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface UpdateOrgInvitePayload { clientMutationId?: string | null; @@ -4920,12 +4941,6 @@ export interface UpdateOrgInvitePayload { orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface DeleteAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ @@ -4944,11 +4959,17 @@ export interface DeleteAppPermissionDefaultPayload { appPermissionDefault?: AppPermissionDefault | null; appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; } export interface DeleteOrgPermissionDefaultPayload { clientMutationId?: string | null; @@ -4956,29 +4977,29 @@ export interface DeleteOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface DeleteAppPermissionPayload { +export interface DeleteAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; } -export interface DeleteOrgPermissionPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export interface DeleteAppAdminGrantPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export interface DeleteAppOwnerGrantPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } export interface DeleteAppLimitCapsDefaultPayload { clientMutationId?: string | null; @@ -5004,23 +5025,17 @@ export interface DeleteOrgLimitCapPayload { orgLimitCap?: OrgLimitCap | null; orgLimitCapEdge?: OrgLimitCapEdge | null; } -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface DeleteOrgOwnerGrantPayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface DeleteMembershipTypePayload { +export interface DeleteAppLimitCreditCodeItemPayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; } export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; @@ -5034,11 +5049,23 @@ export interface DeleteOrgLimitDefaultPayload { orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface DeleteAppLimitCreditCodeItemPayload { +export interface DeleteAppPermissionPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; } export interface DeleteAppLimitWarningPayload { clientMutationId?: string | null; @@ -5046,29 +5073,23 @@ export interface DeleteAppLimitWarningPayload { appLimitWarning?: AppLimitWarning | null; appLimitWarningEdge?: AppLimitWarningEdge | null; } +export interface DeleteOrgChartEdgeGrantPayload { + clientMutationId?: string | null; + /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ + orgChartEdgeGrant?: OrgChartEdgeGrant | null; + orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; +} export interface DeleteAppLimitCreditPayload { clientMutationId?: string | null; /** The `AppLimitCredit` that was deleted by this mutation. */ appLimitCredit?: AppLimitCredit | null; appLimitCreditEdge?: AppLimitCreditEdge | null; } -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} export interface DeleteOrgLimitCreditPayload { - clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; -} -export interface DeleteOrgChartEdgeGrantPayload { - clientMutationId?: string | null; - /** The `OrgChartEdgeGrant` that was deleted by this mutation. */ - orgChartEdgeGrant?: OrgChartEdgeGrant | null; - orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; + clientMutationId?: string | null; + /** The `OrgLimitCredit` that was deleted by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; } export interface DeleteAppClaimedInvitePayload { clientMutationId?: string | null; @@ -5076,23 +5097,23 @@ export interface DeleteAppClaimedInvitePayload { appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface DeleteAppGrantPayload { +export interface DeleteOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } export interface DeleteOrgClaimedInvitePayload { clientMutationId?: string | null; @@ -5106,17 +5127,29 @@ export interface DeleteOrgGrantPayload { orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } -export interface DeleteOrgChartEdgePayload { +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export interface DeleteUsageSnapshotPayload { +export interface DeleteAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was deleted by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } export interface DeleteAppLimitPayload { clientMutationId?: string | null; @@ -5124,17 +5157,17 @@ export interface DeleteAppLimitPayload { appLimit?: AppLimit | null; appLimitEdge?: AppLimitEdge | null; } -export interface DeleteAppInvitePayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } export interface DeleteOrgLimitAggregatePayload { clientMutationId?: string | null; @@ -5148,17 +5181,11 @@ export interface DeleteOrgLimitPayload { orgLimit?: OrgLimit | null; orgLimitEdge?: OrgLimitEdge | null; } -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export interface DeleteAppMembershipPayload { +export interface DeleteAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface DeleteOrgInvitePayload { clientMutationId?: string | null; @@ -5166,12 +5193,6 @@ export interface DeleteOrgInvitePayload { orgInvite?: OrgInvite | null; orgInviteEdge?: OrgInviteEdge | null; } -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; @@ -5239,18 +5260,6 @@ export interface AppPermissionDefaultEdge { /** The `AppPermissionDefault` at the end of the edge. */ node?: AppPermissionDefault | null; } -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { - cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; -} -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -5263,6 +5272,36 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { + cursor?: string | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; +} +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} /** A `AppLimitCapsDefault` edge in the connection. */ export interface AppLimitCapsDefaultEdge { cursor?: string | null; @@ -5287,23 +5326,17 @@ export interface OrgLimitCapEdge { /** The `OrgLimitCap` at the end of the edge. */ node?: OrgLimitCap | null; } -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppLimitCreditCodeItem` edge in the connection. */ +export interface AppLimitCreditCodeItemEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppLimitCreditCodeItem` at the end of the edge. */ + node?: AppLimitCreditCodeItem | null; } /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { @@ -5317,11 +5350,11 @@ export interface OrgLimitDefaultEdge { /** The `OrgLimitDefault` at the end of the edge. */ node?: OrgLimitDefault | null; } -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; } /** A `AppLimitWarning` edge in the connection. */ export interface AppLimitWarningEdge { @@ -5329,53 +5362,47 @@ export interface AppLimitWarningEdge { /** The `AppLimitWarning` at the end of the edge. */ node?: AppLimitWarning | null; } +/** A `OrgChartEdgeGrant` edge in the connection. */ +export interface OrgChartEdgeGrantEdge { + cursor?: string | null; + /** The `OrgChartEdgeGrant` at the end of the edge. */ + node?: OrgChartEdgeGrant | null; +} /** A `AppLimitCredit` edge in the connection. */ export interface AppLimitCreditEdge { cursor?: string | null; /** The `AppLimitCredit` at the end of the edge. */ node?: AppLimitCredit | null; } -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { - cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; -} /** A `OrgLimitCredit` edge in the connection. */ export interface OrgLimitCreditEdge { cursor?: string | null; /** The `OrgLimitCredit` at the end of the edge. */ node?: OrgLimitCredit | null; } -/** A `OrgChartEdgeGrant` edge in the connection. */ -export interface OrgChartEdgeGrantEdge { - cursor?: string | null; - /** The `OrgChartEdgeGrant` at the end of the edge. */ - node?: OrgChartEdgeGrant | null; -} /** A `AppClaimedInvite` edge in the connection. */ export interface AppClaimedInviteEdge { cursor?: string | null; /** The `AppClaimedInvite` at the end of the edge. */ node?: AppClaimedInvite | null; } -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; } /** A `OrgClaimedInvite` edge in the connection. */ export interface OrgClaimedInviteEdge { @@ -5383,6 +5410,12 @@ export interface OrgClaimedInviteEdge { /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } +/** A `OrgGrant` edge in the connection. */ +export interface OrgGrantEdge { + cursor?: string | null; + /** The `OrgGrant` at the end of the edge. */ + node?: OrgGrant | null; +} /** A `AppLimitEvent` edge in the connection. */ export interface AppLimitEventEdge { cursor?: string | null; @@ -5395,23 +5428,17 @@ export interface OrgLimitEventEdge { /** The `OrgLimitEvent` at the end of the edge. */ node?: OrgLimitEvent | null; } -/** A `OrgGrant` edge in the connection. */ -export interface OrgGrantEdge { - cursor?: string | null; - /** The `OrgGrant` at the end of the edge. */ - node?: OrgGrant | null; -} -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; } -/** A `UsageSnapshot` edge in the connection. */ -export interface UsageSnapshotEdge { +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { cursor?: string | null; - /** The `UsageSnapshot` at the end of the edge. */ - node?: UsageSnapshot | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; } /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { @@ -5419,17 +5446,17 @@ export interface AppLimitEdge { /** The `AppLimit` at the end of the edge. */ node?: AppLimit | null; } -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; } /** A `OrgLimitAggregate` edge in the connection. */ export interface OrgLimitAggregateEdge { @@ -5443,17 +5470,11 @@ export interface OrgLimitEdge { /** The `OrgLimit` at the end of the edge. */ node?: OrgLimit | null; } -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; } /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { @@ -5461,12 +5482,6 @@ export interface OrgInviteEdge { /** The `OrgInvite` at the end of the edge. */ node?: OrgInvite | null; } -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} /** Information about a database table */ export interface MetaTable { name: string; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index ed241455fe..8fd3ceac17 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -57,30 +57,59 @@ export interface AppPermissionDefault { id: string | null; permissions: string | null; } -export interface AppLimitCreditCode { +export interface AppAdminGrant { id: string | null; - code: string | null; - maxRedemptions: number | null; - currentRedemptions: number | null; - expiresAt: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface AppOwnerGrant { + id: string | null; + isGrant: boolean | null; + actorId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; } export interface OrgPermissionDefault { id: string | null; permissions: string | null; entityId: string | null; } -export interface AppAdminGrant { +export interface AppMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isVerified: boolean | null; +} +export interface OrgAdminGrant { id: string | null; isGrant: boolean | null; actorId: string | null; + entityId: string | null; grantorId: string | null; createdAt: string | null; updatedAt: string | null; } -export interface AppOwnerGrant { +export interface OrgMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + entityId: string | null; +} +export interface OrgOwnerGrant { id: string | null; isGrant: boolean | null; actorId: string | null; + entityId: string | null; grantorId: string | null; createdAt: string | null; updatedAt: string | null; @@ -107,31 +136,15 @@ export interface OrgLimitCap { entityId: string | null; max: string | null; } -export interface OrgAdminGrant { +export interface OrgChartEdge { id: string | null; - isGrant: boolean | null; - actorId: string | null; - entityId: string | null; - grantorId: string | null; createdAt: string | null; updatedAt: string | null; -} -export interface OrgOwnerGrant { - id: string | null; - isGrant: boolean | null; - actorId: string | null; entityId: string | null; - grantorId: string | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface MembershipType { - id: number | null; - name: string | null; - description: string | null; - prefix: string | null; - parentMembershipType: number | null; - hasUsersTableEntry: boolean | null; + childId: string | null; + parentId: string | null; + positionTitle: string | null; + positionLevel: number | null; } export interface AppLimitDefault { id: string | null; @@ -154,20 +167,19 @@ export interface OrgLimitCredit { creditType: string | null; reason: string | null; } -export interface AppLimitWarning { +export interface AppLimitCreditCode { id: string | null; - name: string | null; - warningType: string | null; - thresholdValue: string | null; - taskIdentifier: string | null; + code: string | null; + maxRedemptions: number | null; + currentRedemptions: number | null; + expiresAt: string | null; } -export interface OrgLimitWarning { +export interface AppLimitWarning { id: string | null; name: string | null; warningType: string | null; thresholdValue: string | null; taskIdentifier: string | null; - entityId: string | null; } export interface OrgChartEdgeGrant { id: string | null; @@ -188,6 +200,22 @@ export interface AppClaimedInvite { createdAt: string | null; updatedAt: string | null; } +export interface OrgLimitWarning { + id: string | null; + name: string | null; + warningType: string | null; + thresholdValue: string | null; + taskIdentifier: string | null; + entityId: string | null; +} +export interface MembershipType { + id: number | null; + name: string | null; + description: string | null; + prefix: string | null; + parentMembershipType: number | null; + hasUsersTableEntry: boolean | null; +} export interface AppGrant { id: string | null; permissions: string | null; @@ -197,24 +225,6 @@ export interface AppGrant { createdAt: string | null; updatedAt: string | null; } -export interface AppMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isVerified: boolean | null; -} -export interface OrgMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - entityId: string | null; -} export interface OrgClaimedInvite { id: string | null; data: unknown | null; @@ -224,7 +234,19 @@ export interface OrgClaimedInvite { updatedAt: string | null; entityId: string | null; } +export interface OrgGrant { + id: string | null; + permissions: string | null; + isGrant: boolean | null; + actorId: string | null; + entityId: string | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} export interface AppLimitEvent { + createdAt: string | null; + id: string | null; name: string | null; actorId: string | null; entityId: string | null; @@ -236,6 +258,8 @@ export interface AppLimitEvent { reason: string | null; } export interface OrgLimitEvent { + createdAt: string | null; + id: string | null; name: string | null; actorId: string | null; entityId: string | null; @@ -246,33 +270,39 @@ export interface OrgLimitEvent { maxAtEvent: string | null; reason: string | null; } -export interface OrgGrant { +export interface OrgMembershipSetting { id: string | null; - permissions: string | null; - isGrant: boolean | null; - actorId: string | null; - entityId: string | null; - grantorId: string | null; createdAt: string | null; updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + entityId: string | null; + deleteMemberCascadeChildren: boolean | null; + createChildCascadeOwners: boolean | null; + createChildCascadeAdmins: boolean | null; + createChildCascadeMembers: boolean | null; + allowExternalMembers: boolean | null; + inviteProfileAssignmentMode: string | null; + populateMemberEmail: boolean | null; + limitAllocationMode: string | null; } -export interface OrgChartEdge { +export interface AppMembership { id: string | null; createdAt: string | null; updatedAt: string | null; - entityId: string | null; - childId: string | null; - parentId: string | null; - positionTitle: string | null; - positionLevel: number | null; -} -export interface UsageSnapshot { - databaseId: string | null; - metricName: string | null; - metricValue: string | null; - dimensions: unknown | null; - capturedAt: string | null; - id: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isVerified: boolean | null; + isActive: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + permissions: string | null; + granted: string | null; + actorId: string | null; + profileId: string | null; } export interface AppLimit { id: string | null; @@ -287,36 +317,38 @@ export interface AppLimit { purchasedCredits: string | null; periodCredits: string | null; } -export interface AppInvite { +export interface OrgMembership { id: string | null; - email: ConstructiveInternalTypeEmail | null; - senderId: string | null; - inviteToken: string | null; - inviteValid: boolean | null; - inviteLimit: number | null; - inviteCount: number | null; - multiple: boolean | null; - data: unknown | null; - profileId: string | null; - expiresAt: string | null; createdAt: string | null; updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isActive: boolean | null; + isExternal: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + permissions: string | null; + granted: string | null; + actorId: string | null; + entityId: string | null; + isReadOnly: boolean | null; + profileId: string | null; } -export interface OrgMembershipSetting { +export interface OrgMemberProfile { id: string | null; createdAt: string | null; updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; + membershipId: string | null; entityId: string | null; - deleteMemberCascadeChildren: boolean | null; - createChildCascadeOwners: boolean | null; - createChildCascadeAdmins: boolean | null; - createChildCascadeMembers: boolean | null; - allowExternalMembers: boolean | null; - inviteProfileAssignmentMode: string | null; - populateMemberEmail: boolean | null; - limitAllocationMode: string | null; + actorId: string | null; + displayName: string | null; + email: string | null; + title: string | null; + bio: string | null; + profilePicture: ConstructiveInternalTypeImage | null; } export interface OrgLimitAggregate { id: string | null; @@ -346,36 +378,20 @@ export interface OrgLimit { periodCredits: string | null; entityId: string | null; } -export interface OrgMemberProfile { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - membershipId: string | null; - entityId: string | null; - actorId: string | null; - displayName: string | null; - email: string | null; - title: string | null; - bio: string | null; - profilePicture: ConstructiveInternalTypeImage | null; -} -export interface AppMembership { +export interface AppInvite { id: string | null; + email: ConstructiveInternalTypeEmail | null; + senderId: string | null; + inviteToken: string | null; + inviteValid: boolean | null; + inviteLimit: number | null; + inviteCount: number | null; + multiple: boolean | null; + data: unknown | null; + profileId: string | null; + expiresAt: string | null; createdAt: string | null; updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isBanned: boolean | null; - isDisabled: boolean | null; - isVerified: boolean | null; - isActive: boolean | null; - isOwner: boolean | null; - isAdmin: boolean | null; - permissions: string | null; - granted: string | null; - actorId: string | null; - profileId: string | null; } export interface OrgInvite { id: string | null; @@ -395,26 +411,6 @@ export interface OrgInvite { updatedAt: string | null; entityId: string | null; } -export interface OrgMembership { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isBanned: boolean | null; - isDisabled: boolean | null; - isActive: boolean | null; - isExternal: boolean | null; - isOwner: boolean | null; - isAdmin: boolean | null; - permissions: string | null; - granted: string | null; - actorId: string | null; - entityId: string | null; - isReadOnly: boolean | null; - profileId: string | null; -} export interface StringFilter { isNull?: boolean; equalTo?: string; diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md index ff8e37604c..069cf4a163 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -52,11 +52,11 @@ function App() { | `useCreateWebauthnCredentialMutation` | Mutation | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | | `useUpdateWebauthnCredentialMutation` | Mutation | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | | `useDeleteWebauthnCredentialMutation` | Mutation | WebAuthn/passkey credentials owned by users. One row per registered authenticator (security key, device biometric, synced passkey). Schema mirrors SimpleWebAuthn's canonical Passkey object. | -| `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.) | +| `useAuditLogAuthsQuery` | Query | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useAuditLogAuthQuery` | Query | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useCreateAuditLogAuthMutation` | Mutation | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useUpdateAuditLogAuthMutation` | Mutation | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useDeleteAuditLogAuthMutation` | Mutation | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | | `useIdentityProvidersQuery` | Query | List all identityProviders | | `useCreateIdentityProviderMutation` | Mutation | Create a identityProvider | | `useRoleTypesQuery` | Query | List all roleTypes | @@ -94,10 +94,10 @@ function App() { | `useResetPasswordMutation` | Mutation | resetPassword | | `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | | `useSignUpMutation` | Mutation | signUp | -| `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | | `useSignInMutation` | Mutation | signIn | | `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | | `useCreateApiKeyMutation` | Mutation | createApiKey | +| `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | | `useForgotPasswordMutation` | Mutation | forgotPassword | | `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | | `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. @@ -191,22 +191,22 @@ const { mutate: create } = useCreateWebauthnCredentialMutation({ create({ ownerId: '', credentialId: '', publicKey: '', signCount: '', webauthnUserId: '', transports: '', credentialDeviceType: '', backupEligible: '', backupState: '', name: '', lastUsedAt: '' }); ``` -### AuditLog +### AuditLogAuth ```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 } }, +// List all auditLogAuths +const { data, isLoading } = useAuditLogAuthsQuery({ + selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }, }); -// Get one auditLog -const { data: item } = useAuditLogQuery({ +// Get one auditLogAuth +const { data: item } = useAuditLogAuthQuery({ id: '', - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, + selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }, }); -// Create a auditLog -const { mutate: create } = useCreateAuditLogMutation({ +// Create a auditLogAuth +const { mutate: create } = useCreateAuditLogAuthMutation({ selection: { fields: { id: true } }, }); create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); @@ -496,17 +496,6 @@ signUp |----------|------| | `input` | SignUpInput (required) | -### `useRequestCrossOriginTokenMutation` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | - ### `useSignInMutation` signIn @@ -540,6 +529,17 @@ createApiKey |----------|------| | `input` | CreateApiKeyInput (required) | +### `useRequestCrossOriginTokenMutation` + +requestCrossOriginToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestCrossOriginTokenInput (required) | + ### `useForgotPasswordMutation` forgotPassword diff --git a/sdk/constructive-react/src/auth/hooks/index.ts b/sdk/constructive-react/src/auth/hooks/index.ts index 23d6bf3a5c..4d4f35cad9 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: Email, PhoneNumber, CryptoAddress, WebauthnCredential, AuditLog, IdentityProvider, RoleType, UserConnectedAccount, User + * Tables: Email, PhoneNumber, CryptoAddress, WebauthnCredential, AuditLogAuth, IdentityProvider, RoleType, UserConnectedAccount, User * * Usage: * diff --git a/sdk/constructive-react/src/auth/hooks/invalidation.ts b/sdk/constructive-react/src/auth/hooks/invalidation.ts index 978f20bfb2..a741da131e 100644 --- a/sdk/constructive-react/src/auth/hooks/invalidation.ts +++ b/sdk/constructive-react/src/auth/hooks/invalidation.ts @@ -19,7 +19,7 @@ import { phoneNumberKeys, cryptoAddressKeys, webauthnCredentialKeys, - auditLogKeys, + auditLogAuthKeys, identityProviderKeys, roleTypeKeys, userConnectedAccountKeys, @@ -110,18 +110,21 @@ export const invalidate = { queryKey: webauthnCredentialKeys.detail(id), }), }, - /** Invalidate auditLog queries */ auditLog: { - /** Invalidate all auditLog queries */ all: (queryClient: QueryClient) => + /** Invalidate auditLogAuth queries */ auditLogAuth: { + /** Invalidate all auditLogAuth queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: auditLogKeys.all, + queryKey: auditLogAuthKeys.all, }), - /** Invalidate auditLog list queries */ lists: (queryClient: QueryClient) => + /** Invalidate auditLogAuth list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: auditLogKeys.lists(), + queryKey: auditLogAuthKeys.lists(), }), - /** Invalidate a specific auditLog */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific auditLogAuth */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: auditLogKeys.detail(id), + queryKey: auditLogAuthKeys.detail(id), }), }, /** Invalidate identityProvider queries */ identityProvider: { @@ -228,9 +231,12 @@ export const remove = { queryKey: webauthnCredentialKeys.detail(id), }); }, - /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { + /** Remove auditLogAuth from cache */ auditLogAuth: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: auditLogKeys.detail(id), + queryKey: auditLogAuthKeys.detail(id), }); }, /** Remove identityProvider from cache */ identityProvider: ( diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index 70f8824872..e41279fe22 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -53,13 +53,14 @@ export const webauthnCredentialMutationKeys = { /** Delete webauthnCredential mutation key */ delete: (id: string | number) => ['mutation', 'webauthncredential', '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, +export const auditLogAuthMutationKeys = { + /** All auditLogAuth mutation keys */ all: ['mutation', 'auditlogauth'] as const, + /** Create auditLogAuth mutation key */ create: () => + ['mutation', 'auditlogauth', 'create'] as const, + /** Update auditLogAuth mutation key */ update: (id: string | number) => + ['mutation', 'auditlogauth', 'update', id] as const, + /** Delete auditLogAuth mutation key */ delete: (id: string | number) => + ['mutation', 'auditlogauth', 'delete', id] as const, } as const; export const identityProviderMutationKeys = { /** All identityProvider mutation keys */ all: ['mutation', 'identityprovider'] as const, @@ -161,10 +162,6 @@ export const customMutationKeys = { : (['mutation', 'signInCrossOrigin'] as const), /** Mutation key for signUp */ signUp: (identifier?: string) => identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), - /** Mutation key for requestCrossOriginToken */ requestCrossOriginToken: (identifier?: string) => - identifier - ? (['mutation', 'requestCrossOriginToken', identifier] as const) - : (['mutation', 'requestCrossOriginToken'] as const), /** Mutation key for signIn */ signIn: (identifier?: string) => identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), /** Mutation key for extendTokenExpires */ extendTokenExpires: (identifier?: string) => @@ -175,6 +172,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'createApiKey', identifier] as const) : (['mutation', 'createApiKey'] as const), + /** Mutation key for requestCrossOriginToken */ requestCrossOriginToken: (identifier?: string) => + identifier + ? (['mutation', 'requestCrossOriginToken', identifier] as const) + : (['mutation', 'requestCrossOriginToken'] as const), /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => identifier ? (['mutation', 'forgotPassword', identifier] as const) @@ -215,7 +216,7 @@ export const mutationKeys = { phoneNumber: phoneNumberMutationKeys, cryptoAddress: cryptoAddressMutationKeys, webauthnCredential: webauthnCredentialMutationKeys, - auditLog: auditLogMutationKeys, + auditLogAuth: auditLogAuthMutationKeys, identityProvider: identityProviderMutationKeys, roleType: roleTypeMutationKeys, userConnectedAccount: userConnectedAccountMutationKeys, diff --git a/sdk/constructive-react/src/auth/hooks/mutations/index.ts b/sdk/constructive-react/src/auth/hooks/mutations/index.ts index 4df127df76..ab1860e3af 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -15,9 +15,9 @@ export * from './useDeleteCryptoAddressMutation'; export * from './useCreateWebauthnCredentialMutation'; export * from './useUpdateWebauthnCredentialMutation'; export * from './useDeleteWebauthnCredentialMutation'; -export * from './useCreateAuditLogMutation'; -export * from './useUpdateAuditLogMutation'; -export * from './useDeleteAuditLogMutation'; +export * from './useCreateAuditLogAuthMutation'; +export * from './useUpdateAuditLogAuthMutation'; +export * from './useDeleteAuditLogAuthMutation'; export * from './useCreateIdentityProviderMutation'; export * from './useCreateRoleTypeMutation'; export * from './useUpdateRoleTypeMutation'; @@ -41,10 +41,10 @@ export * from './useProvisionNewUserMutation'; export * from './useResetPasswordMutation'; export * from './useSignInCrossOriginMutation'; export * from './useSignUpMutation'; -export * from './useRequestCrossOriginTokenMutation'; export * from './useSignInMutation'; export * from './useExtendTokenExpiresMutation'; export * from './useCreateApiKeyMutation'; +export * from './useRequestCrossOriginTokenMutation'; export * from './useForgotPasswordMutation'; export * from './useSendVerificationEmailMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogAuthMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogAuthMutation.ts new file mode 100644 index 0000000000..c4243ed469 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogAuthMutation.ts @@ -0,0 +1,88 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import { auditLogAuthMutationKeys } from '../mutation-keys'; +import type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + CreateAuditLogAuthInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + CreateAuditLogAuthInput, +} from '../../orm/input-types'; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAuditLogAuthMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAuditLogAuthMutation( + params: { + selection: { + fields: S & AuditLogAuthSelect; + } & HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseMutationOptions< + { + createAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + CreateAuditLogAuthInput['auditLogAuth'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + CreateAuditLogAuthInput['auditLogAuth'] +>; +export function useCreateAuditLogAuthMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: auditLogAuthMutationKeys.create(), + mutationFn: (data: CreateAuditLogAuthInput['auditLogAuth']) => + getClient() + .auditLogAuth.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: auditLogAuthKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts deleted file mode 100644 index fdf4c7f212..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useCreateAuditLogMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @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 { auditLogKeys } from '../query-keys'; -import { auditLogMutationKeys } from '../mutation-keys'; -import type { - AuditLogSelect, - AuditLogWithRelations, - CreateAuditLogInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AuditLogSelect, - AuditLogWithRelations, - CreateAuditLogInput, -} from '../../orm/input-types'; -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAuditLogMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAuditLogMutation( - params: { - selection: { - fields: S & AuditLogSelect; - } & HookStrictSelect, AuditLogSelect>; - } & Omit< - UseMutationOptions< - { - createAuditLog: { - auditLog: InferSelectResult; - }; - }, - Error, - CreateAuditLogInput['auditLog'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAuditLog: { - auditLog: InferSelectResult; - }; - }, - Error, - CreateAuditLogInput['auditLog'] ->; -export function useCreateAuditLogMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: auditLogMutationKeys.create(), - mutationFn: (data: CreateAuditLogInput['auditLog']) => - getClient() - .auditLog.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: auditLogKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogAuthMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogAuthMutation.ts new file mode 100644 index 0000000000..6ccb6a99bf --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogAuthMutation.ts @@ -0,0 +1,98 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import { auditLogAuthMutationKeys } from '../mutation-keys'; +import type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAuditLogAuthMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAuditLogAuthMutation( + params: { + selection: { + fields: S & AuditLogAuthSelect; + } & HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseMutationOptions< + { + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAuditLogAuthMutation( + 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: auditLogAuthMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .auditLogAuth.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: auditLogAuthKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: auditLogAuthKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogAuthMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogAuthMutation.ts new file mode 100644 index 0000000000..5d807d05ad --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogAuthMutation.ts @@ -0,0 +1,110 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import { auditLogAuthMutationKeys } from '../mutation-keys'; +import type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + AuditLogAuthPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + AuditLogAuthPatch, +} from '../../orm/input-types'; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAuditLogAuthMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', auditLogAuthPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAuditLogAuthMutation( + params: { + selection: { + fields: S & AuditLogAuthSelect; + } & HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseMutationOptions< + { + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + { + id: string; + auditLogAuthPatch: AuditLogAuthPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + { + id: string; + auditLogAuthPatch: AuditLogAuthPatch; + } +>; +export function useUpdateAuditLogAuthMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + auditLogAuthPatch: AuditLogAuthPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: auditLogAuthMutationKeys.all, + mutationFn: ({ id, auditLogAuthPatch }: { id: string; auditLogAuthPatch: AuditLogAuthPatch }) => + getClient() + .auditLogAuth.update({ + where: { + id, + }, + data: auditLogAuthPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: auditLogAuthKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: auditLogAuthKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts deleted file mode 100644 index 94417ca87d..0000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @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 { auditLogKeys } from '../query-keys'; -import { auditLogMutationKeys } from '../mutation-keys'; -import type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAuditLogMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', auditLogPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAuditLogMutation( - params: { - selection: { - fields: S & AuditLogSelect; - } & HookStrictSelect, AuditLogSelect>; - } & Omit< - UseMutationOptions< - { - updateAuditLog: { - auditLog: InferSelectResult; - }; - }, - Error, - { - id: string; - auditLogPatch: AuditLogPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAuditLog: { - auditLog: InferSelectResult; - }; - }, - Error, - { - id: string; - auditLogPatch: AuditLogPatch; - } ->; -export function useUpdateAuditLogMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - auditLogPatch: AuditLogPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: auditLogMutationKeys.all, - mutationFn: ({ id, auditLogPatch }: { id: string; auditLogPatch: AuditLogPatch }) => - getClient() - .auditLog.update({ - where: { - id, - }, - data: auditLogPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: auditLogKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: auditLogKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/queries/index.ts b/sdk/constructive-react/src/auth/hooks/queries/index.ts index a67bc41f57..1360e7d8da 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/index.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/index.ts @@ -11,8 +11,8 @@ export * from './useCryptoAddressesQuery'; export * from './useCryptoAddressQuery'; export * from './useWebauthnCredentialsQuery'; export * from './useWebauthnCredentialQuery'; -export * from './useAuditLogsQuery'; -export * from './useAuditLogQuery'; +export * from './useAuditLogAuthsQuery'; +export * from './useAuditLogAuthQuery'; export * from './useIdentityProvidersQuery'; export * from './useRoleTypesQuery'; export * from './useRoleTypeQuery'; diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogAuthQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogAuthQuery.ts new file mode 100644 index 0000000000..e8f8622549 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogAuthQuery.ts @@ -0,0 +1,138 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const auditLogAuthQueryKey = auditLogAuthKeys.detail; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { data, isLoading } = useAuditLogAuthQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAuditLogAuthQuery< + S extends AuditLogAuthSelect, + TData = { + auditLogAuth: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseQueryOptions< + { + auditLogAuth: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAuditLogAuthQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: auditLogAuthKeys.detail(params.id), + queryFn: () => + getClient() + .auditLogAuth.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```ts + * const data = await fetchAuditLogAuthQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAuditLogAuthQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogAuthSelect>; +}): Promise<{ + auditLogAuth: InferSelectResult | null; +}>; +export async function fetchAuditLogAuthQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .auditLogAuth.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```ts + * await prefetchAuditLogAuthQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAuditLogAuthQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogAuthSelect>; + } +): Promise; +export async function prefetchAuditLogAuthQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: auditLogAuthKeys.detail(params.id), + queryFn: () => + getClient() + .auditLogAuth.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogAuthsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogAuthsQuery.ts new file mode 100644 index 0000000000..ecd351deba --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogAuthsQuery.ts @@ -0,0 +1,145 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + AuditLogAuthFilter, + AuditLogAuthOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + AuditLogAuthFilter, + AuditLogAuthOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const auditLogAuthsQueryKey = auditLogAuthKeys.list; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { data, isLoading } = useAuditLogAuthsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAuditLogAuthsQuery< + S extends AuditLogAuthSelect, + TData = { + auditLogAuths: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseQueryOptions< + { + auditLogAuths: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAuditLogAuthsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: auditLogAuthKeys.list(args), + queryFn: () => getClient().auditLogAuth.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```ts + * const data = await fetchAuditLogAuthsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAuditLogAuthsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogAuthSelect>; +}): Promise<{ + auditLogAuths: ConnectionResult>; +}>; +export async function fetchAuditLogAuthsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().auditLogAuth.findMany(args).unwrap(); +} +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```ts + * await prefetchAuditLogAuthsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAuditLogAuthsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogAuthSelect>; + } +): Promise; +export async function prefetchAuditLogAuthsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: auditLogAuthKeys.list(args), + queryFn: () => getClient().auditLogAuth.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts deleted file mode 100644 index 0fe8536594..0000000000 --- a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @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 { auditLogKeys } from '../query-keys'; -import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const auditLogQueryKey = auditLogKeys.detail; -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { data, isLoading } = useAuditLogQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAuditLogQuery< - S extends AuditLogSelect, - TData = { - auditLog: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AuditLogSelect>; - } & Omit< - UseQueryOptions< - { - auditLog: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAuditLogQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: auditLogKeys.detail(params.id), - queryFn: () => - getClient() - .auditLog.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * const data = await fetchAuditLogQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAuditLogQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AuditLogSelect>; -}): Promise<{ - auditLog: InferSelectResult | null; -}>; -export async function fetchAuditLogQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .auditLog.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * await prefetchAuditLogQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAuditLogQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AuditLogSelect>; - } -): Promise; -export async function prefetchAuditLogQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: auditLogKeys.detail(params.id), - queryFn: () => - getClient() - .auditLog.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts deleted file mode 100644 index aca271c1dd..0000000000 --- a/sdk/constructive-react/src/auth/hooks/queries/useAuditLogsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @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 { auditLogKeys } from '../query-keys'; -import type { - AuditLogSelect, - AuditLogWithRelations, - AuditLogFilter, - AuditLogOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AuditLogSelect, - AuditLogWithRelations, - AuditLogFilter, - AuditLogOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const auditLogsQueryKey = auditLogKeys.list; -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { data, isLoading } = useAuditLogsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAuditLogsQuery< - S extends AuditLogSelect, - TData = { - auditLogs: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AuditLogSelect>; - } & Omit< - UseQueryOptions< - { - auditLogs: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAuditLogsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: auditLogKeys.list(args), - queryFn: () => getClient().auditLog.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * const data = await fetchAuditLogsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAuditLogsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AuditLogSelect>; -}): Promise<{ - auditLogs: ConnectionResult>; -}>; -export async function fetchAuditLogsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().auditLog.findMany(args).unwrap(); -} -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * await prefetchAuditLogsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAuditLogsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AuditLogSelect>; - } -): Promise; -export async function prefetchAuditLogsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: auditLogKeys.list(args), - queryFn: () => getClient().auditLog.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/auth/hooks/query-keys.ts b/sdk/constructive-react/src/auth/hooks/query-keys.ts index bcf4d508a7..32d6a1591b 100644 --- a/sdk/constructive-react/src/auth/hooks/query-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/query-keys.ts @@ -55,14 +55,14 @@ export const webauthnCredentialKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...webauthnCredentialKeys.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, +export const auditLogAuthKeys = { + /** All auditLogAuth queries */ all: ['auditlogauth'] as const, + /** List query keys */ lists: () => [...auditLogAuthKeys.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, + [...auditLogAuthKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...auditLogAuthKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...auditLogKeys.details(), id] as const, + [...auditLogAuthKeys.details(), id] as const, } as const; export const identityProviderKeys = { /** All identityProvider queries */ all: ['identityprovider'] as const, @@ -140,7 +140,7 @@ export const queryKeys = { phoneNumber: phoneNumberKeys, cryptoAddress: cryptoAddressKeys, webauthnCredential: webauthnCredentialKeys, - auditLog: auditLogKeys, + auditLogAuth: auditLogAuthKeys, identityProvider: identityProviderKeys, roleType: roleTypeKeys, userConnectedAccount: userConnectedAccountKeys, diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index c7374c1092..4a4fbb5278 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -25,7 +25,7 @@ const db = createClient({ | `phoneNumber` | findMany, findOne, create, update, delete | | `cryptoAddress` | findMany, findOne, create, update, delete | | `webauthnCredential` | findMany, findOne, create, update, delete | -| `auditLog` | findMany, findOne, create, update, delete | +| `auditLogAuth` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | @@ -184,14 +184,15 @@ const updated = await db.webauthnCredential.update({ where: { id: '' }, da const deleted = await db.webauthnCredential.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.auditLogAuth` -CRUD operations for AuditLog records. +CRUD operations for AuditLogAuth records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | | `event` | String | Yes | | `actorId` | UUID | Yes | @@ -199,25 +200,24 @@ CRUD operations for AuditLog records. | `userAgent` | String | Yes | | `ipAddress` | InternetAddress | Yes | | `success` | Boolean | Yes | -| `createdAt` | Datetime | No | **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 } }).execute(); +// List all auditLogAuth records +const items = await db.auditLogAuth.findMany({ select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: 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 } }).execute(); +const item = await db.auditLogAuth.findOne({ id: '', select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.auditLogAuth.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.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLogAuth.delete({ where: { id: '' } }).execute(); ``` ### `db.identityProvider` @@ -647,21 +647,6 @@ signUp const result = await db.mutation.signUp({ input: '' }).execute(); ``` -### `db.mutation.requestCrossOriginToken` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | - -```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); -``` - ### `db.mutation.signIn` signIn @@ -707,6 +692,21 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` +### `db.mutation.requestCrossOriginToken` + +requestCrossOriginToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestCrossOriginTokenInput (required) | + +```typescript +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +``` + ### `db.mutation.forgotPassword` forgotPassword diff --git a/sdk/constructive-react/src/auth/orm/index.ts b/sdk/constructive-react/src/auth/orm/index.ts index d0d3034de3..35448d7362 100644 --- a/sdk/constructive-react/src/auth/orm/index.ts +++ b/sdk/constructive-react/src/auth/orm/index.ts @@ -9,7 +9,7 @@ import { EmailModel } from './models/email'; import { PhoneNumberModel } from './models/phoneNumber'; import { CryptoAddressModel } from './models/cryptoAddress'; import { WebauthnCredentialModel } from './models/webauthnCredential'; -import { AuditLogModel } from './models/auditLog'; +import { AuditLogAuthModel } from './models/auditLogAuth'; import { IdentityProviderModel } from './models/identityProvider'; import { RoleTypeModel } from './models/roleType'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; @@ -17,7 +17,7 @@ import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; @@ -53,7 +53,7 @@ export function createClient(config: OrmClientConfig) { phoneNumber: new PhoneNumberModel(client), cryptoAddress: new CryptoAddressModel(client), webauthnCredential: new WebauthnCredentialModel(client), - auditLog: new AuditLogModel(client), + auditLogAuth: new AuditLogAuthModel(client), identityProvider: new IdentityProviderModel(client), roleType: new RoleTypeModel(client), userConnectedAccount: new UserConnectedAccountModel(client), diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index 33b5f19ae8..d1926edee2 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -310,8 +310,10 @@ export interface WebauthnCredential { createdAt?: string | null; updatedAt?: string | null; } -/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ -export interface AuditLog { +/** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ +export interface AuditLogAuth { + createdAt?: string | null; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; @@ -325,8 +327,6 @@ export interface AuditLog { ipAddress?: string | null; /** Whether the authentication attempt succeeded */ success?: boolean | null; - /** Timestamp when the audit event was recorded */ - createdAt?: string | null; } export interface IdentityProvider { slug?: string | null; @@ -390,7 +390,7 @@ export interface CryptoAddressRelations { export interface WebauthnCredentialRelations { owner?: User | null; } -export interface AuditLogRelations { +export interface AuditLogAuthRelations { actor?: User | null; } export interface IdentityProviderRelations {} @@ -402,14 +402,14 @@ export interface UserRelations { ownedPhoneNumbers?: ConnectionResult; ownedCryptoAddresses?: ConnectionResult; ownedWebauthnCredentials?: ConnectionResult; - auditLogsByActorId?: ConnectionResult; + auditLogAuthsByActorId?: ConnectionResult; } // ============ Entity Types With Relations ============ export type EmailWithRelations = Email & EmailRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type WebauthnCredentialWithRelations = WebauthnCredential & WebauthnCredentialRelations; -export type AuditLogWithRelations = AuditLog & AuditLogRelations; +export type AuditLogAuthWithRelations = AuditLogAuth & AuditLogAuthRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & @@ -475,7 +475,8 @@ export type WebauthnCredentialSelect = { select: UserSelect; }; }; -export type AuditLogSelect = { +export type AuditLogAuthSelect = { + createdAt?: boolean; id?: boolean; event?: boolean; actorId?: boolean; @@ -483,7 +484,6 @@ export type AuditLogSelect = { userAgent?: boolean; ipAddress?: boolean; success?: boolean; - createdAt?: boolean; actor?: { select: UserSelect; }; @@ -548,11 +548,11 @@ export type UserSelect = { filter?: WebauthnCredentialFilter; orderBy?: WebauthnCredentialOrderBy[]; }; - auditLogsByActorId?: { - select: AuditLogSelect; + auditLogAuthsByActorId?: { + select: AuditLogAuthSelect; first?: number; - filter?: AuditLogFilter; - orderBy?: AuditLogOrderBy[]; + filter?: AuditLogAuthFilter; + orderBy?: AuditLogAuthOrderBy[]; }; }; // ============ Table Filter Types ============ @@ -674,7 +674,9 @@ export interface WebauthnCredentialFilter { /** Filter by the object’s `owner` relation. */ owner?: UserFilter; } -export interface AuditLogFilter { +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -689,14 +691,12 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ @@ -797,10 +797,10 @@ export interface UserFilter { ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; /** `ownedWebauthnCredentials` exist. */ ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -908,10 +908,12 @@ export type WebauthnCredentialOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AuditLogOrderBy = +export type AuditLogAuthOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' @@ -925,9 +927,7 @@ export type AuditLogOrderBy = | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; + | 'SUCCESS_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -1111,9 +1111,9 @@ export interface DeleteWebauthnCredentialInput { clientMutationId?: string; id: string; } -export interface CreateAuditLogInput { +export interface CreateAuditLogAuthInput { clientMutationId?: string; - auditLog: { + auditLogAuth: { event: string; actorId?: string; origin?: ConstructiveInternalTypeOrigin; @@ -1122,7 +1122,7 @@ export interface CreateAuditLogInput { success: boolean; }; } -export interface AuditLogPatch { +export interface AuditLogAuthPatch { event?: string | null; actorId?: string | null; origin?: ConstructiveInternalTypeOrigin | null; @@ -1130,12 +1130,12 @@ export interface AuditLogPatch { ipAddress?: string | null; success?: boolean | null; } -export interface UpdateAuditLogInput { +export interface UpdateAuditLogAuthInput { clientMutationId?: string; id: string; - auditLogPatch: AuditLogPatch; + auditLogAuthPatch: AuditLogAuthPatch; } -export interface DeleteAuditLogInput { +export interface DeleteAuditLogAuthInput { clientMutationId?: string; id: string; } @@ -1241,7 +1241,7 @@ export const connectionFieldsMap = { ownedPhoneNumbers: 'PhoneNumber', ownedCryptoAddresses: 'CryptoAddress', ownedWebauthnCredentials: 'WebauthnCredential', - auditLogsByActorId: 'AuditLog', + auditLogAuthsByActorId: 'AuditLogAuth', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -1315,13 +1315,6 @@ export interface SignUpInput { csrfToken?: string; deviceToken?: string; } -export interface RequestCrossOriginTokenInput { - clientMutationId?: string; - email?: string; - password?: string; - origin?: ConstructiveInternalTypeOrigin; - rememberMe?: boolean; -} export interface SignInInput { clientMutationId?: string; email?: string; @@ -1342,6 +1335,13 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } +export interface RequestCrossOriginTokenInput { + clientMutationId?: string; + email?: string; + password?: string; + origin?: ConstructiveInternalTypeOrigin; + rememberMe?: boolean; +} export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; @@ -1682,14 +1682,14 @@ export interface UserToManyWebauthnCredentialFilter { /** Filters to entities where no related entity matches. */ none?: WebauthnCredentialFilter; } -/** A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAuditLogFilter { +/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogAuthFilter { /** Filters to entities where at least one related entity matches. */ - some?: AuditLogFilter; + some?: AuditLogAuthFilter; /** Filters to entities where every related entity matches. */ - every?: AuditLogFilter; + every?: AuditLogAuthFilter; /** Filters to entities where no related entity matches. */ - none?: AuditLogFilter; + none?: AuditLogAuthFilter; } /** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ export interface TrgmSearchInput { @@ -1839,8 +1839,10 @@ export interface WebauthnCredentialFilter { /** Filter by the object’s `owner` relation. */ owner?: UserFilter; } -/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogFilter { +/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -1855,14 +1857,12 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ @@ -2062,10 +2062,10 @@ export interface UserFilter { ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; /** `ownedWebauthnCredentials` exist. */ ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -2355,14 +2355,6 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; -export interface RequestCrossOriginTokenPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type RequestCrossOriginTokenPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface SignInPayload { clientMutationId?: string | null; result?: SignInRecord | null; @@ -2393,6 +2385,14 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; +export interface RequestCrossOriginTokenPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type RequestCrossOriginTokenPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ForgotPasswordPayload { clientMutationId?: string | null; } @@ -2609,49 +2609,49 @@ export type DeleteWebauthnCredentialPayloadSelect = { select: WebauthnCredentialEdgeSelect; }; }; -export interface CreateAuditLogPayload { +export interface CreateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was created by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type CreateAuditLogPayloadSelect = { +export type CreateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface UpdateAuditLogPayload { +export interface UpdateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was updated by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type UpdateAuditLogPayloadSelect = { +export type UpdateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface DeleteAuditLogPayload { +export interface DeleteAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was deleted by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type DeleteAuditLogPayloadSelect = { +export type DeleteAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; export interface CreateIdentityProviderPayload { @@ -2886,16 +2886,16 @@ export type WebauthnCredentialEdgeSelect = { select: WebauthnCredentialSelect; }; }; -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { +/** A `AuditLogAuth` edge in the connection. */ +export interface AuditLogAuthEdge { cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; + /** The `AuditLogAuth` at the end of the edge. */ + node?: AuditLogAuth | null; } -export type AuditLogEdgeSelect = { +export type AuditLogAuthEdgeSelect = { cursor?: boolean; node?: { - select: AuditLogSelect; + select: AuditLogAuthSelect; }; }; /** A `RoleType` edge in the connection. */ diff --git a/sdk/constructive-react/src/auth/orm/models/auditLog.ts b/sdk/constructive-react/src/auth/orm/models/auditLog.ts deleted file mode 100644 index 8d8abc012f..0000000000 --- a/sdk/constructive-react/src/auth/orm/models/auditLog.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AuditLog 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 { - AuditLog, - AuditLogWithRelations, - AuditLogSelect, - AuditLogFilter, - AuditLogOrderBy, - CreateAuditLogInput, - UpdateAuditLogInput, - AuditLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AuditLogModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogs: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - 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, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLogs', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AuditLog', - 'createAuditLog', - 'auditLog', - args.select, - args.data, - 'CreateAuditLogInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'createAuditLog', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AuditLogPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AuditLog', - 'updateAuditLog', - 'auditLog', - args.select, - args.where.id, - args.data, - 'UpdateAuditLogInput', - 'id', - 'auditLogPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'updateAuditLog', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AuditLog', - 'deleteAuditLog', - 'auditLog', - { - id: args.where.id, - }, - 'DeleteAuditLogInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'deleteAuditLog', - document, - variables, - }); - } -} diff --git a/sdk/constructive-cli/src/public/orm/models/agentMessage.ts b/sdk/constructive-react/src/auth/orm/models/auditLogAuth.ts similarity index 53% rename from sdk/constructive-cli/src/public/orm/models/agentMessage.ts rename to sdk/constructive-react/src/auth/orm/models/auditLogAuth.ts index d128641c85..8a6665612c 100644 --- a/sdk/constructive-cli/src/public/orm/models/agentMessage.ts +++ b/sdk/constructive-react/src/auth/orm/models/auditLogAuth.ts @@ -1,5 +1,5 @@ /** - * AgentMessage model for ORM client + * AuditLogAuth 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 { - AgentMessage, - AgentMessageWithRelations, - AgentMessageSelect, - AgentMessageFilter, - AgentMessageOrderBy, - CreateAgentMessageInput, - UpdateAgentMessageInput, - AgentMessagePatch, + AuditLogAuth, + AuditLogAuthWithRelations, + AuditLogAuthSelect, + AuditLogAuthFilter, + AuditLogAuthOrderBy, + CreateAuditLogAuthInput, + UpdateAuditLogAuthInput, + AuditLogAuthPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class AgentMessageModel { +export class AuditLogAuthModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentMessages: ConnectionResult>; + auditLogAuths: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'AgentMessage', - 'agentMessages', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class AgentMessageModel { before: args?.before, offset: args?.offset, }, - 'AgentMessageFilter', - 'AgentMessageOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentMessage', - fieldName: 'agentMessages', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuths', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentMessage: InferSelectResult | null; + auditLogAuth: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'AgentMessage', - 'agentMessages', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'AgentMessageFilter', - 'AgentMessageOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentMessage', - fieldName: 'agentMessage', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', document, variables, transform: (data: { - agentMessages?: { - nodes?: InferSelectResult[]; + auditLogAuths?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentMessage: data.agentMessages?.nodes?.[0] ?? null, + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentMessage: InferSelectResult | null; + auditLogAuth: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'AgentMessage', - 'agentMessages', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: { @@ -124,90 +124,90 @@ export class AgentMessageModel { }, first: 1, }, - 'AgentMessageFilter', - 'AgentMessageOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentMessage', - fieldName: 'agentMessage', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', document, variables, transform: (data: { - agentMessages?: { - nodes?: InferSelectResult[]; + auditLogAuths?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentMessage: data.agentMessages?.nodes?.[0] ?? null, + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createAgentMessage: { - agentMessage: InferSelectResult; + createAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'AgentMessage', - 'createAgentMessage', - 'agentMessage', + 'AuditLogAuth', + 'createAuditLogAuth', + 'auditLogAuth', args.select, args.data, - 'CreateAgentMessageInput', + 'CreateAuditLogAuthInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentMessage', - fieldName: 'createAgentMessage', + operationName: 'AuditLogAuth', + fieldName: 'createAuditLogAuth', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - AgentMessagePatch + AuditLogAuthPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateAgentMessage: { - agentMessage: InferSelectResult; + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'AgentMessage', - 'updateAgentMessage', - 'agentMessage', + 'AuditLogAuth', + 'updateAuditLogAuth', + 'auditLogAuth', args.select, args.where.id, args.data, - 'UpdateAgentMessageInput', + 'UpdateAuditLogAuthInput', 'id', - 'agentMessagePatch', + 'auditLogAuthPatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentMessage', - fieldName: 'updateAgentMessage', + operationName: 'AuditLogAuth', + fieldName: 'updateAuditLogAuth', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -215,28 +215,28 @@ export class AgentMessageModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteAgentMessage: { - agentMessage: InferSelectResult; + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'AgentMessage', - 'deleteAgentMessage', - 'agentMessage', + 'AuditLogAuth', + 'deleteAuditLogAuth', + 'auditLogAuth', { id: args.where.id, }, - 'DeleteAgentMessageInput', + 'DeleteAuditLogAuthInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentMessage', - fieldName: 'deleteAgentMessage', + operationName: 'AuditLogAuth', + fieldName: 'deleteAuditLogAuth', document, variables, }); diff --git a/sdk/constructive-react/src/auth/orm/models/index.ts b/sdk/constructive-react/src/auth/orm/models/index.ts index 61627a92d0..f0ecad3b71 100644 --- a/sdk/constructive-react/src/auth/orm/models/index.ts +++ b/sdk/constructive-react/src/auth/orm/models/index.ts @@ -7,7 +7,7 @@ export { EmailModel } from './email'; export { PhoneNumberModel } from './phoneNumber'; export { CryptoAddressModel } from './cryptoAddress'; export { WebauthnCredentialModel } from './webauthnCredential'; -export { AuditLogModel } from './auditLog'; +export { AuditLogAuthModel } from './auditLogAuth'; export { IdentityProviderModel } from './identityProvider'; export { RoleTypeModel } from './roleType'; export { UserConnectedAccountModel } from './userConnectedAccount'; diff --git a/sdk/constructive-react/src/auth/orm/mutation/index.ts b/sdk/constructive-react/src/auth/orm/mutation/index.ts index 3681a0fb56..14c035b5d4 100644 --- a/sdk/constructive-react/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-react/src/auth/orm/mutation/index.ts @@ -22,10 +22,10 @@ import type { ResetPasswordInput, SignInCrossOriginInput, SignUpInput, - RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, + RequestCrossOriginTokenInput, ForgotPasswordInput, SendVerificationEmailInput, ProvisionBucketInput, @@ -44,10 +44,10 @@ import type { ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, - RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, + RequestCrossOriginTokenPayload, ForgotPasswordPayload, SendVerificationEmailPayload, ProvisionBucketPayload, @@ -66,10 +66,10 @@ import type { ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, - RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, + RequestCrossOriginTokenPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, ProvisionBucketPayloadSelect, @@ -120,9 +120,6 @@ export interface SignInCrossOriginVariables { export interface SignUpVariables { input: SignUpInput; } -export interface RequestCrossOriginTokenVariables { - input: RequestCrossOriginTokenInput; -} export interface SignInVariables { input: SignInInput; } @@ -132,6 +129,9 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } +export interface RequestCrossOriginTokenVariables { + input: RequestCrossOriginTokenInput; +} export interface ForgotPasswordVariables { input: ForgotPasswordInput; } @@ -585,35 +585,6 @@ export function createMutationOperations(client: OrmClient) { 'SignUpPayload' ), }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', - ...buildCustomDocument( - 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', - options.select, - args, - [ - { - name: 'input', - type: 'RequestCrossOriginTokenInput!', - }, - ], - connectionFieldsMap, - 'RequestCrossOriginTokenPayload' - ), - }), signIn: ( args: SignInVariables, options: { @@ -701,6 +672,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), + requestCrossOriginToken: ( + args: RequestCrossOriginTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + requestCrossOriginToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RequestCrossOriginToken', + fieldName: 'requestCrossOriginToken', + ...buildCustomDocument( + 'mutation', + 'RequestCrossOriginToken', + 'requestCrossOriginToken', + options.select, + args, + [ + { + name: 'input', + type: 'RequestCrossOriginTokenInput!', + }, + ], + connectionFieldsMap, + 'RequestCrossOriginTokenPayload' + ), + }), forgotPassword: ( args: ForgotPasswordVariables, options: { diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 109abed45c..7468920c6f 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -5,7 +5,7 @@ */ import type { - AuditLog, + AuditLogAuth, CryptoAddress, Email, IdentityProvider, @@ -134,11 +134,13 @@ export type WebauthnCredentialOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AuditLog`. */ -export type AuditLogOrderBy = +/** Methods to use when ordering `AuditLogAuth`. */ +export type AuditLogAuthOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' @@ -152,9 +154,7 @@ export type AuditLogOrderBy = | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; + | 'SUCCESS_DESC'; /** Methods to use when ordering `IdentityProvider`. */ export type IdentityProviderOrderBy = | 'NATURAL' @@ -369,10 +369,10 @@ export interface UserFilter { ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; /** `ownedWebauthnCredentials` exist. */ ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -669,17 +669,19 @@ export interface Base64EncodedBinaryFilter { /** Not included in the specified list. */ notIn?: Base64EncodedBinary[]; } -/** A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAuditLogFilter { +/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogAuthFilter { /** Filters to entities where at least one related entity matches. */ - some?: AuditLogFilter; + some?: AuditLogAuthFilter; /** Filters to entities where every related entity matches. */ - every?: AuditLogFilter; + every?: AuditLogAuthFilter; /** Filters to entities where no related entity matches. */ - none?: AuditLogFilter; + none?: AuditLogAuthFilter; } -/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogFilter { +/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -694,14 +696,12 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ @@ -898,13 +898,6 @@ export interface SignUpInput { csrfToken?: string; deviceToken?: string; } -export interface RequestCrossOriginTokenInput { - clientMutationId?: string; - email?: string; - password?: string; - origin?: ConstructiveInternalTypeOrigin; - rememberMe?: boolean; -} export interface SignInInput { clientMutationId?: string; email?: string; @@ -944,6 +937,13 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } +export interface RequestCrossOriginTokenInput { + clientMutationId?: string; + email?: string; + password?: string; + origin?: ConstructiveInternalTypeOrigin; + rememberMe?: boolean; +} export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; @@ -1017,29 +1017,15 @@ export interface PhoneNumberInput { createdAt?: string; updatedAt?: string; } -export interface CreateUserConnectedAccountInput { +export interface CreateAuditLogAuthInput { clientMutationId?: string; - /** The `UserConnectedAccount` to be created by this mutation. */ - userConnectedAccount: UserConnectedAccountInput; + /** The `AuditLogAuth` to be created by this mutation. */ + auditLogAuth: AuditLogAuthInput; } -/** An input for mutations affecting `UserConnectedAccount` */ -export interface UserConnectedAccountInput { - id?: string; - ownerId?: string; - service?: string; - identifier?: string; - details?: unknown; - isVerified?: boolean; +/** An input for mutations affecting `AuditLogAuth` */ +export interface AuditLogAuthInput { createdAt?: string; - updatedAt?: string; -} -export interface CreateAuditLogInput { - clientMutationId?: string; - /** The `AuditLog` to be created by this mutation. */ - auditLog: AuditLogInput; -} -/** An input for mutations affecting `AuditLog` */ -export interface AuditLogInput { + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id?: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; @@ -1053,8 +1039,22 @@ export interface AuditLogInput { ipAddress?: string; /** Whether the authentication attempt succeeded */ success: boolean; - /** Timestamp when the audit event was recorded */ +} +export interface CreateUserConnectedAccountInput { + clientMutationId?: string; + /** The `UserConnectedAccount` to be created by this mutation. */ + userConnectedAccount: UserConnectedAccountInput; +} +/** An input for mutations affecting `UserConnectedAccount` */ +export interface UserConnectedAccountInput { + id?: string; + ownerId?: string; + service?: string; + identifier?: string; + details?: unknown; + isVerified?: boolean; createdAt?: string; + updatedAt?: string; } export interface CreateEmailInput { clientMutationId?: string; @@ -1178,14 +1178,18 @@ export interface PhoneNumberPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAuditLogInput { +export interface UpdateAuditLogAuthInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; - /** An object where the defined keys will be set on the `AuditLog` being updated. */ - auditLogPatch: AuditLogPatch; + /** An object where the defined keys will be set on the `AuditLogAuth` being updated. */ + auditLogAuthPatch: AuditLogAuthPatch; } -/** Represents an update to a `AuditLog`. Fields that are set will be updated. */ -export interface AuditLogPatch { +/** Represents an update to a `AuditLogAuth`. Fields that are set will be updated. */ +export interface AuditLogAuthPatch { + createdAt?: string; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id?: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string; @@ -1199,8 +1203,6 @@ export interface AuditLogPatch { ipAddress?: string; /** Whether the authentication attempt succeeded */ success?: boolean; - /** Timestamp when the audit event was recorded */ - createdAt?: string; } export interface UpdateEmailInput { clientMutationId?: string; @@ -1286,8 +1288,10 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface DeleteAuditLogInput { +export interface DeleteAuditLogAuthInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; } export interface DeleteEmailInput { @@ -1339,6 +1343,13 @@ export interface PhoneNumberConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AuditLogAuth` values. */ +export interface AuditLogAuthConnection { + nodes: AuditLogAuth[]; + edges: AuditLogAuthEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `UserConnectedAccount` values. */ export interface UserConnectedAccountConnection { nodes: UserConnectedAccount[]; @@ -1346,13 +1357,6 @@ export interface UserConnectedAccountConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AuditLog` values. */ -export interface AuditLogConnection { - nodes: AuditLog[]; - edges: AuditLogEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Email` values. */ export interface EmailConnection { nodes: Email[]; @@ -1436,10 +1440,6 @@ export interface SignUpPayload { clientMutationId?: string | null; result?: SignUpRecord | null; } -export interface RequestCrossOriginTokenPayload { - clientMutationId?: string | null; - result?: string | null; -} export interface SignInPayload { clientMutationId?: string | null; result?: SignInRecord | null; @@ -1452,6 +1452,10 @@ export interface CreateApiKeyPayload { clientMutationId?: string | null; result?: CreateApiKeyRecord | null; } +export interface RequestCrossOriginTokenPayload { + clientMutationId?: string | null; + result?: string | null; +} export interface ForgotPasswordPayload { clientMutationId?: string | null; } @@ -1482,17 +1486,17 @@ export interface CreatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } +export interface CreateAuditLogAuthPayload { + clientMutationId?: string | null; + /** The `AuditLogAuth` that was created by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; +} export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; /** The `UserConnectedAccount` that was created by this mutation. */ userConnectedAccount?: UserConnectedAccount | null; } -export interface CreateAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} export interface CreateEmailPayload { clientMutationId?: string | null; /** The `Email` that was created by this mutation. */ @@ -1529,11 +1533,11 @@ export interface UpdatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } -export interface UpdateAuditLogPayload { +export interface UpdateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was updated by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } export interface UpdateEmailPayload { clientMutationId?: string | null; @@ -1571,11 +1575,11 @@ export interface DeletePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } -export interface DeleteAuditLogPayload { +export interface DeleteAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was deleted by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } export interface DeleteEmailPayload { clientMutationId?: string | null; @@ -1644,18 +1648,18 @@ export interface PhoneNumberEdge { /** The `PhoneNumber` at the end of the edge. */ node?: PhoneNumber | null; } +/** A `AuditLogAuth` edge in the connection. */ +export interface AuditLogAuthEdge { + cursor?: string | null; + /** The `AuditLogAuth` at the end of the edge. */ + node?: AuditLogAuth | null; +} /** A `UserConnectedAccount` edge in the connection. */ export interface UserConnectedAccountEdge { cursor?: string | null; /** The `UserConnectedAccount` at the end of the edge. */ node?: UserConnectedAccount | null; } -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { - cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; -} /** A `Email` edge in the connection. */ export interface EmailEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/auth/types.ts b/sdk/constructive-react/src/auth/types.ts index 4074e73b80..7edfa4a332 100644 --- a/sdk/constructive-react/src/auth/types.ts +++ b/sdk/constructive-react/src/auth/types.ts @@ -54,7 +54,8 @@ export interface WebauthnCredential { createdAt: string | null; updatedAt: string | null; } -export interface AuditLog { +export interface AuditLogAuth { + createdAt: string | null; id: string | null; event: string | null; actorId: string | null; @@ -62,7 +63,6 @@ export interface AuditLog { userAgent: string | null; ipAddress: string | null; success: boolean | null; - createdAt: string | null; } export interface IdentityProvider { slug: string | null; diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index 56cbbcb51c..c89dc37f9e 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -93,20 +93,20 @@ create({ path: '', data: '' }); ```typescript // List all objects const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); // Get one object const { data: item } = useObjectQuery({ id: '', - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); // Create a object const { mutate: create } = useCreateObjectMutation({ selection: { fields: { id: true } }, }); -create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +create({ hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }); ``` ### Ref @@ -114,20 +114,20 @@ create({ hashUuid: '', databaseId: '', kids: '', ktree: '', - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); // Create a ref const { mutate: create } = useCreateRefMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', storeId: '', commitId: '' }); +create({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` ### Store @@ -135,20 +135,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 } }, + selection: { fields: { id: true, name: true, scopeId: 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 } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); // Create a store const { mutate: create } = useCreateStoreMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', hash: '' }); +create({ name: '', scopeId: '', hash: '' }); ``` ### Commit @@ -156,20 +156,20 @@ create({ name: '', databaseId: '', hash: '' }); ```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 } }, + selection: { fields: { id: true, message: true, scopeId: 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 } }, + selection: { fields: { id: true, message: true, scopeId: 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: '' }); +create({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` ## Custom Operation Hooks @@ -183,7 +183,7 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | @@ -196,7 +196,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `first` | Int | | `offset` | Int | @@ -211,7 +211,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `path` | [String] | | `first` | Int | @@ -227,7 +227,7 @@ getObjectAtPath | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `path` | [String] | | `refname` | String | diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts index 250ee6c188..120545dba8 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts @@ -20,7 +20,7 @@ export const getAllObjectsFromRootQueryKey = customQueryKeys.getAllObjectsFromRo * * @example * ```tsx - * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { sId, id, first, offset, after } }); * * if (data?.getAllObjectsFromRoot) { * console.log(data.getAllObjectsFromRoot); @@ -77,7 +77,7 @@ export function useGetAllObjectsFromRootQuery< * * @example * ```ts - * const data = await fetchGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * const data = await fetchGetAllObjectsFromRootQuery({ variables: { sId, id, first, offset, after } }); * ``` */ export async function fetchGetAllObjectsFromRootQuery(params?: { @@ -91,7 +91,7 @@ export async function fetchGetAllObjectsFromRootQuery(params?: { * * @example * ```ts - * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { databaseId, id, first, offset, after } }); + * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { sId, id, first, offset, after } }); * ``` */ export async function prefetchGetAllObjectsFromRootQuery( diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts index f36831e832..8e441116b9 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetObjectAtPathQuery.ts @@ -22,7 +22,7 @@ export const getObjectAtPathQueryKey = customQueryKeys.getObjectAtPath; * * @example * ```tsx - * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * * if (data?.getObjectAtPath) { * console.log(data.getObjectAtPath); @@ -78,7 +78,7 @@ export function useGetObjectAtPathQuery( * * @example * ```ts - * const data = await fetchGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * const data = await fetchGetObjectAtPathQuery({ variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * ``` */ export async function fetchGetObjectAtPathQuery(params: { @@ -106,7 +106,7 @@ export async function fetchGetObjectAtPathQuery(params: { * * @example * ```ts - * await prefetchGetObjectAtPathQuery(queryClient, { variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * await prefetchGetObjectAtPathQuery(queryClient, { variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * ``` */ export async function prefetchGetObjectAtPathQuery( diff --git a/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts index 32bb021f83..47068094eb 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts @@ -20,7 +20,7 @@ export const getPathObjectsFromRootQueryKey = customQueryKeys.getPathObjectsFrom * * @example * ```tsx - * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { sId, id, path, first, offset, after } }); * * if (data?.getPathObjectsFromRoot) { * console.log(data.getPathObjectsFromRoot); @@ -77,7 +77,7 @@ export function useGetPathObjectsFromRootQuery< * * @example * ```ts - * const data = await fetchGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * const data = await fetchGetPathObjectsFromRootQuery({ variables: { sId, id, path, first, offset, after } }); * ``` */ export async function fetchGetPathObjectsFromRootQuery(params?: { @@ -91,7 +91,7 @@ export async function fetchGetPathObjectsFromRootQuery(params?: { * * @example * ```ts - * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { databaseId, id, path, first, offset, after } }); + * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { sId, id, path, first, offset, after } }); * ``` */ export async function prefetchGetPathObjectsFromRootQuery( diff --git a/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts b/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts index d8b6226fbc..675621528d 100644 --- a/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts +++ b/sdk/constructive-react/src/objects/hooks/queries/useRevParseQuery.ts @@ -19,7 +19,7 @@ export const revParseQueryKey = customQueryKeys.revParse; * * @example * ```tsx - * const { data, isLoading } = useRevParseQuery({ variables: { dbId, storeId, refname } }); + * const { data, isLoading } = useRevParseQuery({ variables: { sId, storeId, refname } }); * * if (data?.revParse) { * console.log(data.revParse); @@ -76,7 +76,7 @@ export function useRevParseQuery< * * @example * ```ts - * const data = await fetchRevParseQuery({ variables: { dbId, storeId, refname } }); + * const data = await fetchRevParseQuery({ variables: { sId, storeId, refname } }); * ``` */ export async function fetchRevParseQuery(params?: { variables?: RevParseVariables }) { @@ -88,7 +88,7 @@ export async function fetchRevParseQuery(params?: { variables?: RevParseVariable * * @example * ```ts - * await prefetchRevParseQuery(queryClient, { variables: { dbId, storeId, refname } }); + * await prefetchRevParseQuery(queryClient, { variables: { sId, storeId, refname } }); * ``` */ export async function prefetchRevParseQuery( diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md index 94b8dc0860..98224dbfa7 100644 --- a/sdk/constructive-react/src/objects/orm/README.md +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -69,7 +69,7 @@ CRUD operations for Object records. |-------|------|----------| | `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `kids` | UUID | Yes | | `ktree` | String | Yes | | `data` | JSON | Yes | @@ -80,13 +80,13 @@ CRUD operations for Object records. ```typescript // List all 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(); +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: 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, scopeId: 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: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); @@ -105,7 +105,7 @@ CRUD operations for Ref records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | @@ -113,13 +113,13 @@ CRUD operations for Ref records. ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: 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(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -138,7 +138,7 @@ CRUD operations for Store records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | @@ -146,13 +146,13 @@ CRUD operations for Store records. ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: 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 } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -171,7 +171,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -183,13 +183,13 @@ CRUD operations for Commit records. ```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 } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: 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 } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: 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: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', 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(); @@ -209,12 +209,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -226,14 +226,14 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -245,7 +245,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `path` | [String] | | `first` | Int | @@ -253,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({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -265,13 +265,13 @@ getObjectAtPath | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `path` | [String] | | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.mutation.freezeObjects` @@ -286,7 +286,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -301,7 +301,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.removeNodeAtPath` @@ -316,7 +316,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -331,7 +331,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -346,7 +346,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` diff --git a/sdk/constructive-react/src/objects/orm/index.ts b/sdk/constructive-react/src/objects/orm/index.ts index 231687e0db..f06a6d3b7a 100644 --- a/sdk/constructive-react/src/objects/orm/index.ts +++ b/sdk/constructive-react/src/objects/orm/index.ts @@ -13,7 +13,7 @@ import { CommitModel } from './models/commit'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts index 8fcc221ef8..fe16958d8e 100644 --- a/sdk/constructive-react/src/objects/orm/input-types.ts +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -238,7 +238,7 @@ export interface GetAllRecord { export interface Object { hashUuid?: string | null; id: string; - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -251,7 +251,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -261,8 +261,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -273,8 +273,8 @@ export interface Commit { id: string; /** The commit message */ message?: string | null; - /** The repository identifier */ - databaseId?: string | null; + /** The scope identifier */ + scopeId?: string | null; storeId?: string | null; /** Parent commits */ parentIds?: string[] | null; @@ -318,7 +318,7 @@ export type GetAllRecordSelect = { export type ObjectSelect = { hashUuid?: boolean; id?: boolean; - databaseId?: boolean; + scopeId?: boolean; kids?: boolean; ktree?: boolean; data?: boolean; @@ -328,21 +328,21 @@ export type ObjectSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -361,8 +361,8 @@ export interface GetAllRecordFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -385,8 +385,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -403,8 +403,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -421,8 +421,8 @@ export interface CommitFilter { 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 `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -457,8 +457,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -477,8 +477,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -491,8 +491,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -505,8 +505,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -543,7 +543,7 @@ export interface DeleteGetAllRecordInput { export interface CreateObjectInput { clientMutationId?: string; object: { - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: Record; @@ -551,7 +551,7 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -570,14 +570,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -594,13 +594,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -616,7 +616,7 @@ export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -627,7 +627,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -649,30 +649,30 @@ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -680,7 +680,7 @@ export interface SetPropsAndCommitInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -689,7 +689,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -698,7 +698,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; diff --git a/sdk/constructive-react/src/objects/orm/query/index.ts b/sdk/constructive-react/src/objects/orm/query/index.ts index ce1f8680dc..e132a1ab47 100644 --- a/sdk/constructive-react/src/objects/orm/query/index.ts +++ b/sdk/constructive-react/src/objects/orm/query/index.ts @@ -9,12 +9,12 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } export interface GetAllObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; /** Only read the first `n` values of the set. */ first?: number; @@ -27,7 +27,7 @@ export interface GetAllObjectsFromRootVariables { after?: string; } export interface GetPathObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; path?: string[]; /** Only read the first `n` values of the set. */ @@ -41,7 +41,7 @@ export interface GetPathObjectsFromRootVariables { after?: string; } export interface GetObjectAtPathVariables { - dbId?: string; + sId?: string; storeId?: string; path?: string[]; refname?: string; @@ -69,7 +69,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -106,7 +106,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -151,7 +151,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -200,7 +200,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { diff --git a/sdk/constructive-react/src/objects/schema-types.ts b/sdk/constructive-react/src/objects/schema-types.ts index d094a19a92..22b2281e87 100644 --- a/sdk/constructive-react/src/objects/schema-types.ts +++ b/sdk/constructive-react/src/objects/schema-types.ts @@ -37,8 +37,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -52,8 +52,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -67,8 +67,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -88,8 +88,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -106,8 +106,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -125,8 +125,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -144,8 +144,8 @@ export interface CommitFilter { 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 `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -169,8 +169,8 @@ export interface CommitFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -190,30 +190,30 @@ export interface ObjectFilter { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -221,7 +221,7 @@ export interface SetPropsAndCommitInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; @@ -230,7 +230,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; @@ -239,7 +239,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -258,7 +258,7 @@ export interface RefInput { id?: string; /** The name of the ref or branch */ name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; } @@ -273,8 +273,8 @@ export interface StoreInput { id?: string; /** The name of the store (e.g., metaschema, migrations). */ name: string; - /** The database this store belongs to. */ - databaseId: string; + /** The scope this store belongs to. */ + scopeId: string; /** The current head tree_id for this store. */ hash?: string; createdAt?: string; @@ -290,8 +290,8 @@ export interface CommitInput { id?: string; /** The commit message */ message?: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; storeId: string; /** Parent commits */ parentIds?: string[]; @@ -311,7 +311,7 @@ export interface CreateObjectInput { /** An input for mutations affecting `Object` */ export interface ObjectInput { id: string; - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: unknown; @@ -322,7 +322,7 @@ export interface UpdateRefInput { clientMutationId?: string; /** The primary unique identifier for the ref. */ id: string; - databaseId: string; + scopeId: string; /** An object where the defined keys will be set on the `Ref` being updated. */ refPatch: RefPatch; } @@ -332,7 +332,7 @@ export interface RefPatch { id?: string; /** The name of the ref or branch */ name?: string; - databaseId?: string; + scopeId?: string; storeId?: string; commitId?: string; } @@ -349,8 +349,8 @@ export interface StorePatch { id?: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string; - /** The database this store belongs to. */ - databaseId?: string; + /** The scope this store belongs to. */ + scopeId?: string; /** The current head tree_id for this store. */ hash?: string; createdAt?: string; @@ -359,8 +359,8 @@ export interface UpdateCommitInput { clientMutationId?: string; /** The primary unique identifier for the commit. */ id: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; /** An object where the defined keys will be set on the `Commit` being updated. */ commitPatch: CommitPatch; } @@ -370,8 +370,8 @@ export interface CommitPatch { id?: string; /** The commit message */ message?: string; - /** The repository identifier */ - databaseId?: string; + /** The scope identifier */ + scopeId?: string; storeId?: string; /** Parent commits */ parentIds?: string[]; @@ -386,14 +386,14 @@ export interface CommitPatch { export interface UpdateObjectInput { clientMutationId?: string; id: string; - databaseId: string; + scopeId: string; /** An object where the defined keys will be set on the `Object` being updated. */ objectPatch: ObjectPatch; } /** Represents an update to a `Object`. Fields that are set will be updated. */ export interface ObjectPatch { id?: string; - databaseId?: string; + scopeId?: string; kids?: string[]; ktree?: string[]; data?: unknown; @@ -404,7 +404,7 @@ export interface DeleteRefInput { clientMutationId?: string; /** The primary unique identifier for the ref. */ id: string; - databaseId: string; + scopeId: string; } export interface DeleteStoreInput { clientMutationId?: string; @@ -415,13 +415,13 @@ export interface DeleteCommitInput { clientMutationId?: string; /** The primary unique identifier for the commit. */ id: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; } export interface DeleteObjectInput { clientMutationId?: string; id: string; - databaseId: string; + scopeId: string; } export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ diff --git a/sdk/constructive-react/src/objects/types.ts b/sdk/constructive-react/src/objects/types.ts index 304a6206d1..95814fa3ec 100644 --- a/sdk/constructive-react/src/objects/types.ts +++ b/sdk/constructive-react/src/objects/types.ts @@ -10,7 +10,7 @@ export interface GetAllRecord { export interface Object { hashUuid: string | null; id: string | null; - databaseId: string | null; + scopeId: string | null; kids: string[] | null; ktree: string[] | null; data: unknown | null; @@ -20,21 +20,21 @@ export interface Object { export interface Ref { id: string | null; name: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; commitId: string | null; } export interface Store { id: string | null; name: string | null; - databaseId: string | null; + scopeId: string | null; hash: string | null; createdAt: string | null; } export interface Commit { id: string | null; message: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; parentIds: string[] | null; authorId: string | null; diff --git a/sdk/constructive-react/src/public/README.md b/sdk/constructive-react/src/public/README.md index e12b8f3ab3..1d43b4c7e0 100644 --- a/sdk/constructive-react/src/public/README.md +++ b/sdk/constructive-react/src/public/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 148 +- **Tables:** 151 - **Custom queries:** 20 - **Custom mutations:** 49 diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index 3bdb6edb3e..4f9d86dba2 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -38,6 +38,11 @@ function App() { | `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 | +| `useUpdateObjectMutation` | Mutation | Update a object | +| `useDeleteObjectMutation` | Mutation | Delete a object | | `useAppPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useAppPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useCreateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | @@ -48,11 +53,6 @@ function App() { | `useCreateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useUpdateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useDeleteOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | -| `useObjectsQuery` | Query | List all objects | -| `useObjectQuery` | Query | Get one object | -| `useCreateObjectMutation` | Mutation | Create a object | -| `useUpdateObjectMutation` | Mutation | Update a object | -| `useDeleteObjectMutation` | Mutation | Delete a object | | `useDatabasesQuery` | Query | List all databases | | `useDatabaseQuery` | Query | Get one database | | `useCreateDatabaseMutation` | Mutation | Create a database | @@ -208,6 +208,11 @@ function App() { | `useCreateRealtimeModuleMutation` | Mutation | Create a realtimeModule | | `useUpdateRealtimeModuleMutation` | Mutation | Update a realtimeModule | | `useDeleteRealtimeModuleMutation` | Mutation | Delete a realtimeModule | +| `useConfigSecretsOrgModulesQuery` | Query | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | +| `useConfigSecretsOrgModuleQuery` | Query | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | +| `useCreateConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | +| `useUpdateConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | +| `useDeleteConfigSecretsOrgModuleMutation` | Mutation | Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. | | `useSchemaGrantsQuery` | Query | List all schemaGrants | | `useSchemaGrantQuery` | Query | Get one schemaGrant | | `useCreateSchemaGrantMutation` | Mutation | Create a schemaGrant | @@ -328,11 +333,11 @@ function App() { | `useCreateEmailsModuleMutation` | Mutation | Create a emailsModule | | `useUpdateEmailsModuleMutation` | Mutation | Update a emailsModule | | `useDeleteEmailsModuleMutation` | Mutation | Delete a emailsModule | -| `useEncryptedSecretsModulesQuery` | Query | List all encryptedSecretsModules | -| `useEncryptedSecretsModuleQuery` | Query | Get one encryptedSecretsModule | -| `useCreateEncryptedSecretsModuleMutation` | Mutation | Create a encryptedSecretsModule | -| `useUpdateEncryptedSecretsModuleMutation` | Mutation | Update a encryptedSecretsModule | -| `useDeleteEncryptedSecretsModuleMutation` | Mutation | Delete a encryptedSecretsModule | +| `useConfigSecretsUserModulesQuery` | Query | List all configSecretsUserModules | +| `useConfigSecretsUserModuleQuery` | Query | Get one configSecretsUserModule | +| `useCreateConfigSecretsUserModuleMutation` | Mutation | Create a configSecretsUserModule | +| `useUpdateConfigSecretsUserModuleMutation` | Mutation | Update a configSecretsUserModule | +| `useDeleteConfigSecretsUserModuleMutation` | Mutation | Delete a configSecretsUserModule | | `useInvitesModulesQuery` | Query | List all invitesModules | | `useInvitesModuleQuery` | Query | Get one invitesModule | | `useCreateInvitesModuleMutation` | Mutation | Create a invitesModule | @@ -468,6 +473,31 @@ function App() { | `useCreateNotificationsModuleMutation` | Mutation | Create a notificationsModule | | `useUpdateNotificationsModuleMutation` | Mutation | Update a notificationsModule | | `useDeleteNotificationsModuleMutation` | Mutation | Delete a notificationsModule | +| `useInferenceLogModulesQuery` | Query | List all inferenceLogModules | +| `useInferenceLogModuleQuery` | Query | Get one inferenceLogModule | +| `useCreateInferenceLogModuleMutation` | Mutation | Create a inferenceLogModule | +| `useUpdateInferenceLogModuleMutation` | Mutation | Update a inferenceLogModule | +| `useDeleteInferenceLogModuleMutation` | Mutation | Delete a inferenceLogModule | +| `useComputeLogModulesQuery` | Query | List all computeLogModules | +| `useComputeLogModuleQuery` | Query | Get one computeLogModule | +| `useCreateComputeLogModuleMutation` | Mutation | Create a computeLogModule | +| `useUpdateComputeLogModuleMutation` | Mutation | Update a computeLogModule | +| `useDeleteComputeLogModuleMutation` | Mutation | Delete a computeLogModule | +| `useTransferLogModulesQuery` | Query | List all transferLogModules | +| `useTransferLogModuleQuery` | Query | Get one transferLogModule | +| `useCreateTransferLogModuleMutation` | Mutation | Create a transferLogModule | +| `useUpdateTransferLogModuleMutation` | Mutation | Update a transferLogModule | +| `useDeleteTransferLogModuleMutation` | Mutation | Delete a transferLogModule | +| `useStorageLogModulesQuery` | Query | List all storageLogModules | +| `useStorageLogModuleQuery` | Query | Get one storageLogModule | +| `useCreateStorageLogModuleMutation` | Mutation | Create a storageLogModule | +| `useUpdateStorageLogModuleMutation` | Mutation | Update a storageLogModule | +| `useDeleteStorageLogModuleMutation` | Mutation | Delete a storageLogModule | +| `useDbUsageModulesQuery` | Query | List all dbUsageModules | +| `useDbUsageModuleQuery` | Query | Get one dbUsageModule | +| `useCreateDbUsageModuleMutation` | Mutation | Create a dbUsageModule | +| `useUpdateDbUsageModuleMutation` | Mutation | Update a dbUsageModule | +| `useDeleteDbUsageModuleMutation` | Mutation | Delete a dbUsageModule | | `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. | @@ -613,31 +643,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.) | -| `useAgentThreadsQuery` | Query | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | -| `useAgentThreadQuery` | Query | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | -| `useCreateAgentThreadMutation` | Mutation | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | -| `useUpdateAgentThreadMutation` | Mutation | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | -| `useDeleteAgentThreadMutation` | Mutation | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | -| `useAgentMessagesQuery` | Query | A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. | -| `useAgentMessageQuery` | Query | A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. | -| `useCreateAgentMessageMutation` | Mutation | A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. | -| `useUpdateAgentMessageMutation` | Mutation | A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. | -| `useDeleteAgentMessageMutation` | Mutation | A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. | -| `useAgentTasksQuery` | Query | An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. | -| `useAgentTaskQuery` | Query | An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. | -| `useCreateAgentTaskMutation` | Mutation | An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. | -| `useUpdateAgentTaskMutation` | Mutation | An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. | -| `useDeleteAgentTaskMutation` | Mutation | An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. | -| `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 | +| `useAuditLogAuthsQuery` | Query | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useAuditLogAuthQuery` | Query | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useCreateAuditLogAuthMutation` | Mutation | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useUpdateAuditLogAuthMutation` | Mutation | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useDeleteAuditLogAuthMutation` | Mutation | Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | | `useIdentityProvidersQuery` | Query | List all identityProviders | | `useCreateIdentityProviderMutation` | Mutation | Create a identityProvider | | `useRefsQuery` | Query | A ref is a data structure for pointing to a commit. | @@ -655,11 +665,36 @@ 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 | -| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | -| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | -| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `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 | +| `useMigrateFilesQuery` | Query | List all migrateFiles | +| `useMigrateFileQuery` | Query | Get one migrateFile | +| `useCreateMigrateFileMutation` | Mutation | Create a migrateFile | +| `useUpdateMigrateFileMutation` | Mutation | Update a migrateFile | +| `useDeleteMigrateFileMutation` | Mutation | Delete a migrateFile | +| `useDevicesModulesQuery` | Query | List all devicesModules | +| `useDevicesModuleQuery` | Query | Get one devicesModule | +| `useCreateDevicesModuleMutation` | Mutation | Create a devicesModule | +| `useUpdateDevicesModuleMutation` | Mutation | Update a devicesModule | +| `useDeleteDevicesModuleMutation` | Mutation | Delete a devicesModule | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `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 | +| `useNodeTypeRegistriesQuery` | Query | List all nodeTypeRegistries | +| `useNodeTypeRegistryQuery` | Query | Get one nodeTypeRegistry | +| `useCreateNodeTypeRegistryMutation` | Mutation | Create a nodeTypeRegistry | +| `useUpdateNodeTypeRegistryMutation` | Mutation | Update a nodeTypeRegistry | +| `useDeleteNodeTypeRegistryMutation` | Mutation | Delete a nodeTypeRegistry | | `useAppLimitCapsDefaultsQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useAppLimitCapsDefaultQuery` | Query | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | | `useCreateAppLimitCapsDefaultMutation` | Mutation | Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. | @@ -680,26 +715,11 @@ function App() { | `useCreateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useUpdateOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | | `useDeleteOrgLimitCapMutation` | Mutation | Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. | -| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useMigrateFilesQuery` | Query | List all migrateFiles | -| `useMigrateFileQuery` | Query | Get one migrateFile | -| `useCreateMigrateFileMutation` | Mutation | Create a migrateFile | -| `useUpdateMigrateFileMutation` | Mutation | Update a migrateFile | -| `useDeleteMigrateFileMutation` | Mutation | Delete a migrateFile | -| `useDevicesModulesQuery` | Query | List all devicesModules | -| `useDevicesModuleQuery` | Query | Get one devicesModule | -| `useCreateDevicesModuleMutation` | Mutation | Create a devicesModule | -| `useUpdateDevicesModuleMutation` | Mutation | Update a devicesModule | -| `useDeleteDevicesModuleMutation` | Mutation | Delete a devicesModule | -| `useNodeTypeRegistriesQuery` | Query | List all nodeTypeRegistries | -| `useNodeTypeRegistryQuery` | Query | Get one nodeTypeRegistry | -| `useCreateNodeTypeRegistryMutation` | Mutation | Create a nodeTypeRegistry | -| `useUpdateNodeTypeRegistryMutation` | Mutation | Update a nodeTypeRegistry | -| `useDeleteNodeTypeRegistryMutation` | Mutation | Delete a nodeTypeRegistry | +| `useUserConnectedAccountsQuery` | Query | List all userConnectedAccounts | +| `useUserConnectedAccountQuery` | Query | Get one userConnectedAccount | +| `useCreateUserConnectedAccountMutation` | Mutation | Create a userConnectedAccount | +| `useUpdateUserConnectedAccountMutation` | Mutation | Update a userConnectedAccount | +| `useDeleteUserConnectedAccountMutation` | Mutation | Delete a userConnectedAccount | | `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 | @@ -710,16 +730,16 @@ 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 | +| `useAppLimitCreditCodesQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useAppLimitCreditCodeQuery` | Query | Redeemable credit codes managed by admins with the add_credits permission | +| `useCreateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useUpdateAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | +| `useDeleteAppLimitCreditCodeMutation` | Mutation | Redeemable credit codes managed by admins with the add_credits permission | | `useAppLimitWarningsQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useAppLimitWarningQuery` | Query | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useCreateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useUpdateAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | | `useDeleteAppLimitWarningMutation` | Mutation | Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. | -| `useUserConnectedAccountsQuery` | Query | List all userConnectedAccounts | -| `useUserConnectedAccountQuery` | Query | Get one userConnectedAccount | -| `useCreateUserConnectedAccountMutation` | Mutation | Create a userConnectedAccount | -| `useUpdateUserConnectedAccountMutation` | Mutation | Update a userConnectedAccount | -| `useDeleteUserConnectedAccountMutation` | Mutation | Delete a userConnectedAccount | | `useCommitsQuery` | Query | A commit records changes to the repository. | | `useCommitQuery` | Query | A commit records changes to the repository. | | `useCreateCommitMutation` | Mutation | A commit records changes to the repository. | @@ -735,35 +755,26 @@ function App() { | `useCreateRateLimitsModuleMutation` | Mutation | Create a rateLimitsModule | | `useUpdateRateLimitsModuleMutation` | Mutation | Update a rateLimitsModule | | `useDeleteRateLimitsModuleMutation` | Mutation | Delete a rateLimitsModule | -| `useUsageSnapshotsQuery` | Query | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useUsageSnapshotQuery` | Query | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useCreateUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useUpdateUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useDeleteUsageSnapshotMutation` | Mutation | Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. | -| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `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 | +| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useRlsSettingsQuery` | Query | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | | `useRlsSettingQuery` | Query | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | | `useCreateRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | | `useUpdateRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | | `useDeleteRlsSettingMutation` | Mutation | Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries | -| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | -| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | -| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useRlsModulesQuery` | Query | List all rlsModules | | `useRlsModuleQuery` | Query | Get one rlsModule | | `useCreateRlsModuleMutation` | Mutation | Create a rlsModule | | `useUpdateRlsModuleMutation` | Mutation | Update a rlsModule | | `useDeleteRlsModuleMutation` | Mutation | Delete a rlsModule | +| `useAgentChatModulesQuery` | Query | List all agentChatModules | +| `useAgentChatModuleQuery` | Query | Get one agentChatModule | +| `useCreateAgentChatModuleMutation` | Mutation | Create a agentChatModule | +| `useUpdateAgentChatModuleMutation` | Mutation | Update a agentChatModule | +| `useDeleteAgentChatModuleMutation` | Mutation | Delete a agentChatModule | | `useRateLimitMetersModulesQuery` | Query | List all rateLimitMetersModules | | `useRateLimitMetersModuleQuery` | Query | Get one rateLimitMetersModule | | `useCreateRateLimitMetersModuleMutation` | Mutation | Create a rateLimitMetersModule | @@ -779,41 +790,51 @@ function App() { | `useCreateSqlActionMutation` | Mutation | Create a sqlAction | | `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | | `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | +| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useAppLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useUpdateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useDeleteOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useDatabaseSettingsQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useDatabaseSettingQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useCreateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useUpdateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useDeleteDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useBillingModulesQuery` | Query | List all billingModules | -| `useBillingModuleQuery` | Query | Get one billingModule | -| `useCreateBillingModuleMutation` | Mutation | Create a billingModule | -| `useUpdateBillingModuleMutation` | Mutation | Update a billingModule | -| `useDeleteBillingModuleMutation` | Mutation | Delete a billingModule | -| `useAstMigrationsQuery` | Query | List all astMigrations | -| `useAstMigrationQuery` | Query | Get one astMigration | -| `useCreateAstMigrationMutation` | Mutation | Create a astMigration | -| `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | -| `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | -| `useUsersQuery` | Query | List all users | -| `useUserQuery` | Query | Get one user | -| `useCreateUserMutation` | Mutation | Create a user | -| `useUpdateUserMutation` | Mutation | Update a user | -| `useDeleteUserMutation` | Mutation | Delete a user | | `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | | `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | | `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useWebauthnSettingsQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useWebauthnSettingQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useCreateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useUpdateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | -| `useDeleteWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | | `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | +| `useUsersQuery` | Query | List all users | +| `useUserQuery` | Query | Get one user | +| `useCreateUserMutation` | Mutation | Create a user | +| `useUpdateUserMutation` | Mutation | Update a user | +| `useDeleteUserMutation` | Mutation | Delete a user | +| `useAstMigrationsQuery` | Query | List all astMigrations | +| `useAstMigrationQuery` | Query | Get one astMigration | +| `useCreateAstMigrationMutation` | Mutation | Create a astMigration | +| `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | +| `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | +| `useWebauthnSettingsQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | +| `useWebauthnSettingQuery` | Query | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | +| `useCreateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | +| `useUpdateWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | +| `useDeleteWebauthnSettingMutation` | Mutation | Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries | +| `useBillingModulesQuery` | Query | List all billingModules | +| `useBillingModuleQuery` | Query | Get one billingModule | +| `useCreateBillingModuleMutation` | Mutation | Create a billingModule | +| `useUpdateBillingModuleMutation` | Mutation | Update a billingModule | +| `useDeleteBillingModuleMutation` | Mutation | Delete a billingModule | | `useBillingProviderModulesQuery` | Query | List all billingProviderModules | | `useBillingProviderModuleQuery` | Query | Get one billingProviderModule | | `useCreateBillingProviderModuleMutation` | Mutation | Create a billingProviderModule | @@ -838,11 +859,11 @@ function App() { | `useResolveBlueprintTableQuery` | Query | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | | `useAppPermissionsGetMaskByNamesQuery` | Query | appPermissionsGetMaskByNames | | `useOrgPermissionsGetMaskByNamesQuery` | Query | orgPermissionsGetMaskByNames | -| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | -| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | | `useGetAllObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | | `useGetPathObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | | `useGetObjectAtPathQuery` | Query | getObjectAtPath | +| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | +| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | | `useCurrentUserQuery` | Query | currentUser | | `useSendAccountDeletionEmailMutation` | Mutation | sendAccountDeletionEmail | | `useSignOutMutation` | Mutation | signOut | @@ -862,13 +883,16 @@ function App() { | `useVerifyEmailMutation` | Mutation | verifyEmail | | `useFreezeObjectsMutation` | Mutation | freezeObjects | | `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | -| `useConstructBlueprintMutation` | Mutation | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | +| `useConstructBlueprintMutation` | Mutation | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | | `useProvisionNewUserMutation` | Mutation | provisionNewUser | | `useResetPasswordMutation` | Mutation | resetPassword | | `useRemoveNodeAtPathMutation` | Mutation | removeNodeAtPath | | `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. | | `useProvisionSpatialRelationMutation` | Mutation | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | +| `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | | `useBootstrapUserMutation` | Mutation | bootstrapUser | +| `useSignUpMutation` | Mutation | signUp | +| `useSignInMutation` | Mutation | signIn | | `useSetFieldOrderMutation` | Mutation | setFieldOrder | | `useProvisionCheckConstraintMutation` | Mutation | Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists. | | `useProvisionUniqueConstraintMutation` | Mutation | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | @@ -882,7 +906,6 @@ function App() { | `useSetAndCommitMutation` | Mutation | setAndCommit | | `useProvisionRelationMutation` | Mutation | Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id). | | `useApplyRlsMutation` | Mutation | applyRls | -| `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | | `useCreateUserDatabaseMutation` | Mutation | Creates a new user database with all required modules, permissions, and RLS policies. Parameters: @@ -902,12 +925,10 @@ Example usage: | | `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | | `useCreateApiKeyMutation` | Mutation | createApiKey | -| `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | -| `useForgotPasswordMutation` | Mutation | forgotPassword | -| `useSignUpMutation` | Mutation | signUp | | `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | -| `useSignInMutation` | Mutation | signIn | | `useProvisionTableMutation` | Mutation | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | +| `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | +| `useForgotPasswordMutation` | Mutation | forgotPassword | | `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -960,6 +981,27 @@ const { mutate: create } = useCreateGetAllRecordMutation({ create({ path: '', data: '' }); ``` +### Object + +```typescript +// List all objects +const { data, isLoading } = useObjectsQuery({ + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Get one object +const { data: item } = useObjectQuery({ + id: '', + selection: { fields: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Create a object +const { mutate: create } = useCreateObjectMutation({ + selection: { fields: { id: true } }, +}); +create({ hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }); +``` + ### AppPermission ```typescript @@ -1002,27 +1044,6 @@ const { mutate: create } = useCreateOrgPermissionMutation({ create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` -### Object - -```typescript -// List all objects -const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); - -// Get one object -const { data: item } = useObjectQuery({ - id: '', - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); - -// Create a object -const { mutate: create } = useCreateObjectMutation({ - selection: { fields: { id: true } }, -}); -create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); -``` - ### Database ```typescript @@ -1527,6 +1548,27 @@ const { mutate: create } = useCreateRealtimeModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', subscriptionsSchemaId: '', changeLogTableId: '', listenerNodeTableId: '', sourceRegistryTableId: '', retentionHours: '', premake: '', interval: '', notifyChannel: '' }); ``` +### ConfigSecretsOrgModule + +```typescript +// List all configSecretsOrgModules +const { data, isLoading } = useConfigSecretsOrgModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Get one configSecretsOrgModule +const { data: item } = useConfigSecretsOrgModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, +}); + +// Create a configSecretsOrgModule +const { mutate: create } = useCreateConfigSecretsOrgModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); +``` + ### SchemaGrant ```typescript @@ -1805,20 +1847,20 @@ create({ databaseId: '', targetOwnerId: '', sourceApproved: '', - selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }, }); // Create a partition const { mutate: create } = useCreatePartitionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }); +create({ databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }); ``` ### Api @@ -2031,22 +2073,22 @@ const { mutate: create } = useCreateEmailsModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); ``` -### EncryptedSecretsModule +### ConfigSecretsUserModule ```typescript -// List all encryptedSecretsModules -const { data, isLoading } = useEncryptedSecretsModulesQuery({ +// List all configSecretsUserModules +const { data, isLoading } = useConfigSecretsUserModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); -// Get one encryptedSecretsModule -const { data: item } = useEncryptedSecretsModuleQuery({ +// Get one configSecretsUserModule +const { data: item } = useConfigSecretsUserModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); -// Create a encryptedSecretsModule -const { mutate: create } = useCreateEncryptedSecretsModuleMutation({ +// Create a configSecretsUserModule +const { mutate: create } = useCreateConfigSecretsUserModuleMutation({ selection: { fields: { id: true } }, }); create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); @@ -2372,20 +2414,20 @@ create({ blueprintId: '', databaseId: '', schemaId: '', status ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }); ``` ### EntityTypeProvision @@ -2472,96 +2514,201 @@ const { mutate: create } = useCreateNotificationsModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '' }); ``` -### DatabaseProvisionModule +### InferenceLogModule ```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 } }, +// List all inferenceLogModules +const { data, isLoading } = useInferenceLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, }); -// Get one databaseProvisionModule -const { data: item } = useDatabaseProvisionModuleQuery({ +// Get one inferenceLogModule +const { data: item } = useInferenceLogModuleQuery({ 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 } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, }); -// Create a databaseProvisionModule -const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ +// Create a inferenceLogModule +const { mutate: create } = useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); ``` -### AppAdminGrant +### ComputeLogModule ```typescript -// List all appAdminGrants -const { data, isLoading } = useAppAdminGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all computeLogModules +const { data, isLoading } = useComputeLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, }); -// Get one appAdminGrant -const { data: item } = useAppAdminGrantQuery({ +// Get one computeLogModule +const { data: item } = useComputeLogModuleQuery({ id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, }); -// Create a appAdminGrant -const { mutate: create } = useCreateAppAdminGrantMutation({ +// Create a computeLogModule +const { mutate: create } = useCreateComputeLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', grantorId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); ``` -### AppOwnerGrant +### TransferLogModule ```typescript -// List all appOwnerGrants -const { data, isLoading } = useAppOwnerGrantsQuery({ - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all transferLogModules +const { data, isLoading } = useTransferLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, }); -// Get one appOwnerGrant -const { data: item } = useAppOwnerGrantQuery({ +// Get one transferLogModule +const { data: item } = useTransferLogModuleQuery({ id: '', - selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, }); -// Create a appOwnerGrant -const { mutate: create } = useCreateAppOwnerGrantMutation({ +// Create a transferLogModule +const { mutate: create } = useCreateTransferLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', grantorId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); ``` -### AppGrant +### StorageLogModule ```typescript -// List all appGrants -const { data, isLoading } = useAppGrantsQuery({ - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +// List all storageLogModules +const { data, isLoading } = useStorageLogModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, }); -// Get one appGrant -const { data: item } = useAppGrantQuery({ +// Get one storageLogModule +const { data: item } = useStorageLogModuleQuery({ id: '', - selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }, }); -// Create a appGrant -const { mutate: create } = useCreateAppGrantMutation({ +// Create a storageLogModule +const { mutate: create } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }); ``` -### OrgMembership +### DbUsageModule ```typescript -// List all orgMemberships -const { data, isLoading } = useOrgMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, +// List all dbUsageModules +const { data, isLoading } = useDbUsageModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }, +}); + +// Get one dbUsageModule +const { data: item } = useDbUsageModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }, +}); + +// Create a dbUsageModule +const { mutate: create } = useCreateDbUsageModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }); +``` + +### DatabaseProvisionModule + +```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 } }, +}); + +// 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 } }, +}); + +// Create a databaseProvisionModule +const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); +``` + +### AppAdminGrant + +```typescript +// List all appAdminGrants +const { data, isLoading } = useAppAdminGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appAdminGrant +const { data: item } = useAppAdminGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appAdminGrant +const { mutate: create } = useCreateAppAdminGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', grantorId: '' }); +``` + +### AppOwnerGrant + +```typescript +// List all appOwnerGrants +const { data, isLoading } = useAppOwnerGrantsQuery({ + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appOwnerGrant +const { data: item } = useAppOwnerGrantQuery({ + id: '', + selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appOwnerGrant +const { mutate: create } = useCreateAppOwnerGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ isGrant: '', actorId: '', grantorId: '' }); +``` + +### AppGrant + +```typescript +// List all appGrants +const { data, isLoading } = useAppGrantsQuery({ + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appGrant +const { data: item } = useAppGrantQuery({ + id: '', + selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appGrant +const { mutate: create } = useCreateAppGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); +``` + +### OrgMembership + +```typescript +// List all orgMemberships +const { data, isLoading } = useOrgMembershipsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }, }); // Get one orgMembership @@ -3081,88 +3228,103 @@ const { mutate: create } = useCreateOrgClaimedInviteMutation({ create({ data: '', senderId: '', receiverId: '', entityId: '' }); ``` -### AuditLog +### AuditLogAuth ```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 } }, +// List all auditLogAuths +const { data, isLoading } = useAuditLogAuthsQuery({ + selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }, }); -// Get one auditLog -const { data: item } = useAuditLogQuery({ +// Get one auditLogAuth +const { data: item } = useAuditLogAuthQuery({ id: '', - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, + selection: { fields: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }, }); -// Create a auditLog -const { mutate: create } = useCreateAuditLogMutation({ +// Create a auditLogAuth +const { mutate: create } = useCreateAuditLogAuthMutation({ selection: { fields: { id: true } }, }); create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); ``` -### AgentThread +### IdentityProvider ```typescript -// List all agentThreads -const { data, isLoading } = useAgentThreadsQuery({ - selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }, +// List all identityProviders +const { data, isLoading } = useIdentityProvidersQuery({ + selection: { fields: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }, }); -// Get one agentThread -const { data: item } = useAgentThreadQuery({ +// Create a identityProvider +const { mutate: create } = useCreateIdentityProviderMutation({ + selection: { fields: { id: true } }, +}); +create({ slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }); +``` + +### Ref + +```typescript +// List all refs +const { data, isLoading } = useRefsQuery({ + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, +}); + +// Get one ref +const { data: item } = useRefQuery({ id: '', - selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }, + selection: { fields: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }, }); -// Create a agentThread -const { mutate: create } = useCreateAgentThreadMutation({ +// Create a ref +const { mutate: create } = useCreateRefMutation({ selection: { fields: { id: true } }, }); -create({ title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }); +create({ name: '', scopeId: '', storeId: '', commitId: '' }); ``` -### AgentMessage +### Store ```typescript -// List all agentMessages -const { data, isLoading } = useAgentMessagesQuery({ - selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }, +// List all stores +const { data, isLoading } = useStoresQuery({ + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); -// Get one agentMessage -const { data: item } = useAgentMessageQuery({ +// Get one store +const { data: item } = useStoreQuery({ id: '', - selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }, + selection: { fields: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }, }); -// Create a agentMessage -const { mutate: create } = useCreateAgentMessageMutation({ +// Create a store +const { mutate: create } = useCreateStoreMutation({ selection: { fields: { id: true } }, }); -create({ threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }); +create({ name: '', scopeId: '', hash: '' }); ``` -### AgentTask +### AppPermissionDefault ```typescript -// List all agentTasks -const { data, isLoading } = useAgentTasksQuery({ - selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }, +// List all appPermissionDefaults +const { data, isLoading } = useAppPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true } }, }); -// Get one agentTask -const { data: item } = useAgentTaskQuery({ +// Get one appPermissionDefault +const { data: item } = useAppPermissionDefaultQuery({ id: '', - selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }, + selection: { fields: { id: true, permissions: true } }, }); -// Create a agentTask -const { mutate: create } = useCreateAgentTaskMutation({ +// Create a appPermissionDefault +const { mutate: create } = useCreateAppPermissionDefaultMutation({ selection: { fields: { id: true } }, }); -create({ threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }); +create({ permissions: '' }); ``` ### RoleType @@ -3186,103 +3348,109 @@ const { mutate: create } = useCreateRoleTypeMutation({ create({ name: '' }); ``` -### IdentityProvider +### MigrateFile ```typescript -// List all identityProviders -const { data, isLoading } = useIdentityProvidersQuery({ - selection: { fields: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }, +// List all migrateFiles +const { data, isLoading } = useMigrateFilesQuery({ + selection: { fields: { id: true, databaseId: true, upload: true } }, }); -// Create a identityProvider -const { mutate: create } = useCreateIdentityProviderMutation({ +// Get one migrateFile +const { data: item } = useMigrateFileQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, upload: true } }, +}); + +// Create a migrateFile +const { mutate: create } = useCreateMigrateFileMutation({ selection: { fields: { id: true } }, }); -create({ slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }); +create({ databaseId: '', upload: '' }); ``` -### Ref +### DevicesModule ```typescript -// List all refs -const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, +// List all devicesModules +const { data, isLoading } = useDevicesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, }); -// Get one ref -const { data: item } = useRefQuery({ +// Get one devicesModule +const { data: item } = useDevicesModuleQuery({ id: '', - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, }); -// Create a ref -const { mutate: create } = useCreateRefMutation({ +// Create a devicesModule +const { mutate: create } = useCreateDevicesModuleMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', storeId: '', commitId: '' }); +create({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); ``` -### Store +### AppMembershipDefault ```typescript -// List all stores -const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +// List all appMembershipDefaults +const { data, isLoading } = useAppMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); -// Get one store -const { data: item } = useStoreQuery({ +// Get one appMembershipDefault +const { data: item } = useAppMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); -// Create a store -const { mutate: create } = useCreateStoreMutation({ +// Create a appMembershipDefault +const { mutate: create } = useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', hash: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); ``` -### AppPermissionDefault +### OrgMembershipDefault ```typescript -// List all appPermissionDefaults -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, +// List all orgMembershipDefaults +const { data, isLoading } = useOrgMembershipDefaultsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, }); -// Get one appPermissionDefault -const { data: item } = useAppPermissionDefaultQuery({ +// Get one orgMembershipDefault +const { data: item } = useOrgMembershipDefaultQuery({ id: '', - selection: { fields: { id: true, permissions: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, }); -// Create a appPermissionDefault -const { mutate: create } = useCreateAppPermissionDefaultMutation({ +// Create a orgMembershipDefault +const { mutate: create } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); ``` -### AppLimitCreditCode +### NodeTypeRegistry ```typescript -// List all appLimitCreditCodes -const { data, isLoading } = useAppLimitCreditCodesQuery({ - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, +// List all nodeTypeRegistries +const { data, isLoading } = useNodeTypeRegistriesQuery({ + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, }); -// Get one appLimitCreditCode -const { data: item } = useAppLimitCreditCodeQuery({ - id: '', - selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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 } }, }); -// Create a appLimitCreditCode -const { mutate: create } = useCreateAppLimitCreditCodeMutation({ - selection: { fields: { id: true } }, +// Create a nodeTypeRegistry +const { mutate: create } = useCreateNodeTypeRegistryMutation({ + selection: { fields: { name: true } }, }); -create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); +create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); ``` ### AppLimitCapsDefault @@ -3369,88 +3537,25 @@ const { mutate: create } = useCreateOrgLimitCapMutation({ create({ name: '', entityId: '', max: '' }); ``` -### MembershipType - -```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, -}); - -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, -}); - -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); -``` - -### MigrateFile - -```typescript -// List all migrateFiles -const { data, isLoading } = useMigrateFilesQuery({ - selection: { fields: { id: true, databaseId: true, upload: true } }, -}); - -// Get one migrateFile -const { data: item } = useMigrateFileQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, upload: true } }, -}); - -// Create a migrateFile -const { mutate: create } = useCreateMigrateFileMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', upload: '' }); -``` - -### DevicesModule +### UserConnectedAccount ```typescript -// List all devicesModules -const { data, isLoading } = useDevicesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, +// List all userConnectedAccounts +const { data, isLoading } = useUserConnectedAccountsQuery({ + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, }); -// Get one devicesModule -const { data: item } = useDevicesModuleQuery({ +// Get one userConnectedAccount +const { data: item } = useUserConnectedAccountQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, }); -// Create a devicesModule -const { mutate: create } = useCreateDevicesModuleMutation({ +// Create a userConnectedAccount +const { mutate: create } = useCreateUserConnectedAccountMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); -``` - -### NodeTypeRegistry - -```typescript -// List all nodeTypeRegistries -const { data, isLoading } = useNodeTypeRegistriesQuery({ - selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: 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 } }, -}); - -// Create a nodeTypeRegistry -const { mutate: create } = useCreateNodeTypeRegistryMutation({ - selection: { fields: { name: true } }, -}); -create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); +create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); ``` ### AppLimitDefault @@ -3495,46 +3600,46 @@ const { mutate: create } = useCreateOrgLimitDefaultMutation({ create({ name: '', max: '', softMax: '' }); ``` -### AppLimitWarning +### AppLimitCreditCode ```typescript -// List all appLimitWarnings -const { data, isLoading } = useAppLimitWarningsQuery({ - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, +// List all appLimitCreditCodes +const { data, isLoading } = useAppLimitCreditCodesQuery({ + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, }); -// Get one appLimitWarning -const { data: item } = useAppLimitWarningQuery({ +// Get one appLimitCreditCode +const { data: item } = useAppLimitCreditCodeQuery({ id: '', - selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, + selection: { fields: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }, }); -// Create a appLimitWarning -const { mutate: create } = useCreateAppLimitWarningMutation({ +// Create a appLimitCreditCode +const { mutate: create } = useCreateAppLimitCreditCodeMutation({ selection: { fields: { id: true } }, }); -create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); +create({ code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }); ``` -### UserConnectedAccount +### AppLimitWarning ```typescript -// List all userConnectedAccounts -const { data, isLoading } = useUserConnectedAccountsQuery({ - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, +// List all appLimitWarnings +const { data, isLoading } = useAppLimitWarningsQuery({ + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, }); -// Get one userConnectedAccount -const { data: item } = useUserConnectedAccountQuery({ +// Get one appLimitWarning +const { data: item } = useAppLimitWarningQuery({ id: '', - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }, }); -// Create a userConnectedAccount -const { mutate: create } = useCreateUserConnectedAccountMutation({ +// Create a appLimitWarning +const { mutate: create } = useCreateAppLimitWarningMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); +create({ name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }); ``` ### Commit @@ -3542,20 +3647,20 @@ create({ ownerId: '', service: '', identifier: '', details ```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 } }, + selection: { fields: { id: true, message: true, scopeId: 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 } }, + selection: { fields: { id: true, message: true, scopeId: 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: '' }); +create({ message: '', scopeId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` ### PubkeySetting @@ -3600,67 +3705,25 @@ const { mutate: create } = useCreateRateLimitsModuleMutation({ create({ databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }); ``` -### UsageSnapshot - -```typescript -// List all usageSnapshots -const { data, isLoading } = useUsageSnapshotsQuery({ - selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, -}); - -// Get one usageSnapshot -const { data: item } = useUsageSnapshotQuery({ - id: '', - selection: { fields: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }, -}); - -// Create a usageSnapshot -const { mutate: create } = useCreateUsageSnapshotMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }); -``` - -### AppMembershipDefault - -```typescript -// List all appMembershipDefaults -const { data, isLoading } = useAppMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); - -// Get one appMembershipDefault -const { data: item } = useAppMembershipDefaultQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, -}); - -// Create a appMembershipDefault -const { mutate: create } = useCreateAppMembershipDefaultMutation({ - selection: { fields: { id: true } }, -}); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); -``` - -### OrgMembershipDefault +### MembershipType ```typescript -// List all orgMembershipDefaults -const { data, isLoading } = useOrgMembershipDefaultsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +// List all membershipTypes +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); -// Get one orgMembershipDefault -const { data: item } = useOrgMembershipDefaultQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }, +// Get one membershipType +const { data: item } = useMembershipTypeQuery({ + id: '', + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); -// Create a orgMembershipDefault -const { mutate: create } = useCreateOrgMembershipDefaultMutation({ +// Create a membershipType +const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); +create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); ``` ### RlsSetting @@ -3684,55 +3747,46 @@ const { mutate: create } = useCreateRlsSettingMutation({ create({ databaseId: '', authenticateSchemaId: '', roleSchemaId: '', authenticateFunctionId: '', authenticateStrictFunctionId: '', currentRoleFunctionId: '', currentRoleIdFunctionId: '', currentUserAgentFunctionId: '', currentIpAddressFunctionId: '' }); ``` -### AppLimitEvent +### RlsModule ```typescript -// List all appLimitEvents -const { data, isLoading } = useAppLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, -}); - -// Create a appLimitEvent -const { mutate: create } = useCreateAppLimitEventMutation({ - selection: { fields: { id: true } }, +// 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 } }, }); -create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); -``` - -### OrgLimitEvent -```typescript -// List all orgLimitEvents -const { data, isLoading } = useOrgLimitEventsQuery({ - selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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 } }, }); -// Create a orgLimitEvent -const { mutate: create } = useCreateOrgLimitEventMutation({ +// Create a rlsModule +const { mutate: create } = useCreateRlsModuleMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); ``` -### RlsModule +### AgentChatModule ```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 } }, +// List all agentChatModules +const { data, isLoading } = useAgentChatModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: true } }, }); -// Get one rlsModule -const { data: item } = useRlsModuleQuery({ +// Get one agentChatModule +const { data: item } = useAgentChatModuleQuery({ 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 } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: true } }, }); -// Create a rlsModule -const { mutate: create } = useCreateRlsModuleMutation({ +// Create a agentChatModule +const { mutate: create } = useCreateAgentChatModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', apiId: '', threadTableId: '', threadTableName: '', messageTableId: '', messageTableName: '', taskTableId: '', taskTableName: '', prefix: '' }); ``` ### RateLimitMetersModule @@ -3798,6 +3852,48 @@ const { mutate: create } = useCreateSqlActionMutation({ create({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` +### AppLimitEvent + +```typescript +// List all appLimitEvents +const { data, isLoading } = useAppLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Get one appLimitEvent +const { data: item } = useAppLimitEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Create a appLimitEvent +const { mutate: create } = useCreateAppLimitEventMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` + +### OrgLimitEvent + +```typescript +// List all orgLimitEvents +const { data, isLoading } = useOrgLimitEventsQuery({ + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Get one orgLimitEvent +const { data: item } = useOrgLimitEventQuery({ + id: '', + selection: { fields: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Create a orgLimitEvent +const { mutate: create } = useCreateOrgLimitEventMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` + ### DatabaseSetting ```typescript @@ -3819,46 +3915,46 @@ const { mutate: create } = useCreateDatabaseSettingMutation({ create({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); ``` -### BillingModule +### OrgMembershipSetting ```typescript -// List all billingModules -const { data, isLoading } = useBillingModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }, +// List all orgMembershipSettings +const { data, isLoading } = useOrgMembershipSettingsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Get one billingModule -const { data: item } = useBillingModuleQuery({ +// Get one orgMembershipSetting +const { data: item } = useOrgMembershipSettingQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Create a billingModule -const { mutate: create } = useCreateBillingModuleMutation({ +// Create a orgMembershipSetting +const { mutate: create } = useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }); +create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); ``` -### AstMigration +### AppMembership ```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 } }, +// List all appMemberships +const { data, isLoading } = useAppMembershipsQuery({ + 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 } }, }); -// 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 } }, +// Get one appMembership +const { data: item } = useAppMembershipQuery({ + 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 } }, }); -// Create a astMigration -const { mutate: create } = useCreateAstMigrationMutation({ +// Create a appMembership +const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### User @@ -3882,25 +3978,25 @@ const { mutate: create } = useCreateUserMutation({ create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }); ``` -### OrgMembershipSetting +### AstMigration ```typescript -// List all orgMembershipSettings -const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, +// 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 } }, }); -// Get one orgMembershipSetting -const { data: item } = useOrgMembershipSettingQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: 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 } }, }); -// Create a orgMembershipSetting -const { mutate: create } = useCreateOrgMembershipSettingMutation({ +// Create a astMigration +const { mutate: create } = useCreateAstMigrationMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); +create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` ### WebauthnSetting @@ -3924,25 +4020,25 @@ const { mutate: create } = useCreateWebauthnSettingMutation({ create({ databaseId: '', schemaId: '', credentialsSchemaId: '', sessionsSchemaId: '', sessionSecretsSchemaId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', userFieldId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpirySeconds: '' }); ``` -### AppMembership +### BillingModule ```typescript -// List all appMemberships -const { data, isLoading } = useAppMembershipsQuery({ - 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 } }, +// List all billingModules +const { data, isLoading } = useBillingModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }, }); -// Get one appMembership -const { data: item } = useAppMembershipQuery({ +// Get one billingModule +const { data: item } = useBillingModuleQuery({ 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 } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: true } }, }); -// Create a appMembership -const { mutate: create } = useCreateAppMembershipMutation({ +// Create a billingModule +const { mutate: create } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }); ``` ### BillingProviderModule @@ -4052,7 +4148,7 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | @@ -4142,78 +4238,78 @@ orgPermissionsGetMaskByNames |----------|------| | `names` | [String] | -### `useAppPermissionsGetByMaskQuery` +### `useGetAllObjectsFromRootQuery` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | -### `useOrgPermissionsGetByMaskQuery` +### `useGetPathObjectsFromRootQuery` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | -### `useGetAllObjectsFromRootQuery` +### `useGetObjectAtPathQuery` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `sId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | -### `useGetPathObjectsFromRootQuery` +### `useAppPermissionsGetByMaskQuery` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | -### `useGetObjectAtPathQuery` +### `useOrgPermissionsGetByMaskQuery` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ### `useCurrentUserQuery` @@ -4422,7 +4518,7 @@ initEmptyRepo ### `useConstructBlueprintMutation` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - **Type:** mutation - **Arguments:** @@ -4486,6 +4582,17 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec |----------|------| | `input` | ProvisionSpatialRelationInput (required) | +### `useSignInCrossOriginMutation` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInCrossOriginInput (required) | + ### `useBootstrapUserMutation` bootstrapUser @@ -4497,6 +4604,28 @@ bootstrapUser |----------|------| | `input` | BootstrapUserInput (required) | +### `useSignUpMutation` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +### `useSignInMutation` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + ### `useSetFieldOrderMutation` setFieldOrder @@ -4640,17 +4769,6 @@ applyRls |----------|------| | `input` | ApplyRlsInput (required) | -### `useSignInCrossOriginMutation` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - ### `useCreateUserDatabaseMutation` Creates a new user database with all required modules, permissions, and RLS policies. @@ -4700,71 +4818,49 @@ createApiKey |----------|------| | `input` | CreateApiKeyInput (required) | -### `useSendVerificationEmailMutation` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -### `useForgotPasswordMutation` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -### `useSignUpMutation` +### `useRequestCrossOriginTokenMutation` -signUp +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | -### `useRequestCrossOriginTokenMutation` +### `useProvisionTableMutation` -requestCrossOriginToken +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ProvisionTableInput (required) | -### `useSignInMutation` +### `useSendVerificationEmailMutation` -signIn +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SendVerificationEmailInput (required) | -### `useProvisionTableMutation` +### `useForgotPasswordMutation` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | ForgotPasswordInput (required) | ### `useProvisionBucketMutation` diff --git a/sdk/constructive-react/src/public/hooks/index.ts b/sdk/constructive-react/src/public/hooks/index.ts index cff418571a..a8ee439d10 100644 --- a/sdk/constructive-react/src/public/hooks/index.ts +++ b/sdk/constructive-react/src/public/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Partition, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, EventsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, UserStateModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, OrgLimitWarning, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, RoleType, IdentityProvider, Ref, Store, AppPermissionDefault, AppLimitCreditCode, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, MembershipType, MigrateFile, DevicesModule, NodeTypeRegistry, AppLimitDefault, OrgLimitDefault, AppLimitWarning, UserConnectedAccount, Commit, PubkeySetting, RateLimitsModule, UsageSnapshot, AppMembershipDefault, OrgMembershipDefault, RlsSetting, AppLimitEvent, OrgLimitEvent, RlsModule, RateLimitMetersModule, PlansModule, SqlAction, DatabaseSetting, BillingModule, AstMigration, User, OrgMembershipSetting, WebauthnSetting, AppMembership, BillingProviderModule, HierarchyModule + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, Object, AppPermission, OrgPermission, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, ConfigSecretsOrgModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Partition, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, ConfigSecretsUserModule, InvitesModule, EventsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, UserStateModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, InferenceLogModule, ComputeLogModule, TransferLogModule, StorageLogModule, DbUsageModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, OrgLimitWarning, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLogAuth, IdentityProvider, Ref, Store, AppPermissionDefault, RoleType, MigrateFile, DevicesModule, AppMembershipDefault, OrgMembershipDefault, NodeTypeRegistry, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, UserConnectedAccount, AppLimitDefault, OrgLimitDefault, AppLimitCreditCode, AppLimitWarning, Commit, PubkeySetting, RateLimitsModule, MembershipType, RlsSetting, RlsModule, AgentChatModule, RateLimitMetersModule, PlansModule, SqlAction, AppLimitEvent, OrgLimitEvent, DatabaseSetting, OrgMembershipSetting, AppMembership, User, AstMigration, WebauthnSetting, BillingModule, BillingProviderModule, HierarchyModule * * Usage: * diff --git a/sdk/constructive-react/src/public/hooks/invalidation.ts b/sdk/constructive-react/src/public/hooks/invalidation.ts index 1d04bc8e65..f7929d12a0 100644 --- a/sdk/constructive-react/src/public/hooks/invalidation.ts +++ b/sdk/constructive-react/src/public/hooks/invalidation.ts @@ -18,9 +18,9 @@ import { orgGetManagersRecordKeys, orgGetSubordinatesRecordKeys, getAllRecordKeys, + objectKeys, appPermissionKeys, orgPermissionKeys, - objectKeys, databaseKeys, schemaKeys, tableKeys, @@ -45,6 +45,7 @@ import { sessionSecretsModuleKeys, identityProvidersModuleKeys, realtimeModuleKeys, + configSecretsOrgModuleKeys, schemaGrantKeys, defaultPrivilegeKeys, enumKeys, @@ -69,7 +70,7 @@ import { defaultIdsModuleKeys, denormalizedTableFieldKeys, emailsModuleKeys, - encryptedSecretsModuleKeys, + configSecretsUserModuleKeys, invitesModuleKeys, eventsModuleKeys, limitsModuleKeys, @@ -90,6 +91,11 @@ import { webauthnCredentialsModuleKeys, webauthnAuthModuleKeys, notificationsModuleKeys, + inferenceLogModuleKeys, + computeLogModuleKeys, + transferLogModuleKeys, + storageLogModuleKeys, + dbUsageModuleKeys, databaseProvisionModuleKeys, appAdminGrantKeys, appOwnerGrantKeys, @@ -119,48 +125,45 @@ import { appClaimedInviteKeys, orgInviteKeys, orgClaimedInviteKeys, - auditLogKeys, - agentThreadKeys, - agentMessageKeys, - agentTaskKeys, - roleTypeKeys, + auditLogAuthKeys, identityProviderKeys, refKeys, storeKeys, appPermissionDefaultKeys, - appLimitCreditCodeKeys, + roleTypeKeys, + migrateFileKeys, + devicesModuleKeys, + appMembershipDefaultKeys, + orgMembershipDefaultKeys, + nodeTypeRegistryKeys, appLimitCapsDefaultKeys, orgLimitCapsDefaultKeys, appLimitCapKeys, orgLimitCapKeys, - membershipTypeKeys, - migrateFileKeys, - devicesModuleKeys, - nodeTypeRegistryKeys, + userConnectedAccountKeys, appLimitDefaultKeys, orgLimitDefaultKeys, + appLimitCreditCodeKeys, appLimitWarningKeys, - userConnectedAccountKeys, commitKeys, pubkeySettingKeys, rateLimitsModuleKeys, - usageSnapshotKeys, - appMembershipDefaultKeys, - orgMembershipDefaultKeys, + membershipTypeKeys, rlsSettingKeys, - appLimitEventKeys, - orgLimitEventKeys, rlsModuleKeys, + agentChatModuleKeys, rateLimitMetersModuleKeys, plansModuleKeys, sqlActionKeys, + appLimitEventKeys, + orgLimitEventKeys, databaseSettingKeys, - billingModuleKeys, - astMigrationKeys, - userKeys, orgMembershipSettingKeys, - webauthnSettingKeys, appMembershipKeys, + userKeys, + astMigrationKeys, + webauthnSettingKeys, + billingModuleKeys, billingProviderModuleKeys, hierarchyModuleKeys, } from './query-keys'; @@ -235,6 +238,20 @@ export const invalidate = { queryKey: getAllRecordKeys.detail(id), }), }, + /** Invalidate object queries */ object: { + /** Invalidate all object queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.all, + }), + /** Invalidate object list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }), + /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: objectKeys.detail(id), + }), + }, /** Invalidate appPermission queries */ appPermission: { /** Invalidate all appPermission queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -269,20 +286,6 @@ export const invalidate = { queryKey: orgPermissionKeys.detail(id), }), }, - /** Invalidate object queries */ object: { - /** Invalidate all object queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: objectKeys.all, - }), - /** Invalidate object list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: objectKeys.lists(), - }), - /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: objectKeys.detail(id), - }), - }, /** Invalidate database queries */ database: { /** Invalidate all database queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -664,6 +667,23 @@ export const invalidate = { queryKey: realtimeModuleKeys.detail(id), }), }, + /** Invalidate configSecretsOrgModule queries */ configSecretsOrgModule: { + /** Invalidate all configSecretsOrgModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.all, + }), + /** Invalidate configSecretsOrgModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.lists(), + }), + /** Invalidate a specific configSecretsOrgModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.detail(id), + }), + }, /** Invalidate schemaGrant queries */ schemaGrant: { /** Invalidate all schemaGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1054,21 +1074,21 @@ export const invalidate = { queryKey: emailsModuleKeys.detail(id), }), }, - /** Invalidate encryptedSecretsModule queries */ encryptedSecretsModule: { - /** Invalidate all encryptedSecretsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate configSecretsUserModule queries */ configSecretsUserModule: { + /** Invalidate all configSecretsUserModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.all, + queryKey: configSecretsUserModuleKeys.all, }), - /** Invalidate encryptedSecretsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate configSecretsUserModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.lists(), + queryKey: configSecretsUserModuleKeys.lists(), }), - /** Invalidate a specific encryptedSecretsModule */ detail: ( + /** Invalidate a specific configSecretsUserModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.detail(id), + queryKey: configSecretsUserModuleKeys.detail(id), }), }, /** Invalidate invitesModule queries */ invitesModule: { @@ -1411,6 +1431,91 @@ export const invalidate = { queryKey: notificationsModuleKeys.detail(id), }), }, + /** Invalidate inferenceLogModule queries */ inferenceLogModule: { + /** Invalidate all inferenceLogModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.all, + }), + /** Invalidate inferenceLogModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.lists(), + }), + /** Invalidate a specific inferenceLogModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.detail(id), + }), + }, + /** Invalidate computeLogModule queries */ computeLogModule: { + /** Invalidate all computeLogModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.all, + }), + /** Invalidate computeLogModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.lists(), + }), + /** Invalidate a specific computeLogModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.detail(id), + }), + }, + /** Invalidate transferLogModule queries */ transferLogModule: { + /** Invalidate all transferLogModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.all, + }), + /** Invalidate transferLogModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.lists(), + }), + /** Invalidate a specific transferLogModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.detail(id), + }), + }, + /** Invalidate storageLogModule queries */ storageLogModule: { + /** Invalidate all storageLogModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.all, + }), + /** Invalidate storageLogModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.lists(), + }), + /** Invalidate a specific storageLogModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.detail(id), + }), + }, + /** Invalidate dbUsageModule queries */ dbUsageModule: { + /** Invalidate all dbUsageModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbUsageModuleKeys.all, + }), + /** Invalidate dbUsageModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: dbUsageModuleKeys.lists(), + }), + /** Invalidate a specific dbUsageModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: dbUsageModuleKeys.detail(id), + }), + }, /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { /** Invalidate all databaseProvisionModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1889,69 +1994,83 @@ export const invalidate = { queryKey: orgClaimedInviteKeys.detail(id), }), }, - /** Invalidate auditLog queries */ auditLog: { - /** Invalidate all auditLog queries */ all: (queryClient: QueryClient) => + /** Invalidate auditLogAuth queries */ auditLogAuth: { + /** Invalidate all auditLogAuth queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: auditLogKeys.all, + queryKey: auditLogAuthKeys.all, }), - /** Invalidate auditLog list queries */ lists: (queryClient: QueryClient) => + /** Invalidate auditLogAuth list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: auditLogKeys.lists(), + queryKey: auditLogAuthKeys.lists(), }), - /** Invalidate a specific auditLog */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific auditLogAuth */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: auditLogKeys.detail(id), + queryKey: auditLogAuthKeys.detail(id), }), }, - /** Invalidate agentThread queries */ agentThread: { - /** Invalidate all agentThread queries */ all: (queryClient: QueryClient) => + /** Invalidate identityProvider queries */ identityProvider: { + /** Invalidate all identityProvider queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: agentThreadKeys.all, + queryKey: identityProviderKeys.all, }), - /** Invalidate agentThread list queries */ lists: (queryClient: QueryClient) => + /** Invalidate identityProvider list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: agentThreadKeys.lists(), + queryKey: identityProviderKeys.lists(), }), - /** Invalidate a specific agentThread */ detail: ( + /** Invalidate a specific identityProvider */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: agentThreadKeys.detail(id), + queryKey: identityProviderKeys.detail(id), }), }, - /** Invalidate agentMessage queries */ agentMessage: { - /** Invalidate all agentMessage queries */ all: (queryClient: QueryClient) => + /** Invalidate ref queries */ ref: { + /** Invalidate all ref queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: agentMessageKeys.all, + queryKey: refKeys.all, }), - /** Invalidate agentMessage list queries */ lists: (queryClient: QueryClient) => + /** Invalidate ref list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: agentMessageKeys.lists(), + queryKey: refKeys.lists(), }), - /** Invalidate a specific agentMessage */ detail: ( - queryClient: QueryClient, - id: string | number - ) => + /** Invalidate a specific ref */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: refKeys.detail(id), + }), + }, + /** Invalidate store queries */ store: { + /** Invalidate all store queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storeKeys.all, + }), + /** Invalidate store list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: storeKeys.lists(), + }), + /** Invalidate a specific store */ detail: (queryClient: QueryClient, id: string | number) => queryClient.invalidateQueries({ - queryKey: agentMessageKeys.detail(id), + queryKey: storeKeys.detail(id), }), }, - /** Invalidate agentTask queries */ agentTask: { - /** Invalidate all agentTask queries */ all: (queryClient: QueryClient) => + /** Invalidate appPermissionDefault queries */ appPermissionDefault: { + /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: agentTaskKeys.all, + queryKey: appPermissionDefaultKeys.all, }), - /** Invalidate agentTask list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: agentTaskKeys.lists(), + queryKey: appPermissionDefaultKeys.lists(), }), - /** Invalidate a specific agentTask */ detail: ( + /** Invalidate a specific appPermissionDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: agentTaskKeys.detail(id), + queryKey: appPermissionDefaultKeys.detail(id), }), }, /** Invalidate roleType queries */ roleType: { @@ -1968,83 +2087,89 @@ export const invalidate = { queryKey: roleTypeKeys.detail(id), }), }, - /** Invalidate identityProvider queries */ identityProvider: { - /** Invalidate all identityProvider queries */ all: (queryClient: QueryClient) => + /** Invalidate migrateFile queries */ migrateFile: { + /** Invalidate all migrateFile queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: identityProviderKeys.all, + queryKey: migrateFileKeys.all, }), - /** Invalidate identityProvider list queries */ lists: (queryClient: QueryClient) => + /** Invalidate migrateFile list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: identityProviderKeys.lists(), + queryKey: migrateFileKeys.lists(), }), - /** Invalidate a specific identityProvider */ detail: ( + /** Invalidate a specific migrateFile */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: identityProviderKeys.detail(id), + queryKey: migrateFileKeys.detail(id), }), }, - /** Invalidate ref queries */ ref: { - /** Invalidate all ref queries */ all: (queryClient: QueryClient) => + /** Invalidate devicesModule queries */ devicesModule: { + /** Invalidate all devicesModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: refKeys.all, + queryKey: devicesModuleKeys.all, }), - /** Invalidate ref list queries */ lists: (queryClient: QueryClient) => + /** Invalidate devicesModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: refKeys.lists(), + queryKey: devicesModuleKeys.lists(), }), - /** Invalidate a specific ref */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific devicesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: refKeys.detail(id), + queryKey: devicesModuleKeys.detail(id), }), }, - /** Invalidate store queries */ store: { - /** Invalidate all store queries */ all: (queryClient: QueryClient) => + /** Invalidate appMembershipDefault queries */ appMembershipDefault: { + /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: storeKeys.all, + queryKey: appMembershipDefaultKeys.all, }), - /** Invalidate store list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: storeKeys.lists(), + queryKey: appMembershipDefaultKeys.lists(), }), - /** Invalidate a specific store */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific appMembershipDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: storeKeys.detail(id), + queryKey: appMembershipDefaultKeys.detail(id), }), }, - /** Invalidate appPermissionDefault queries */ appPermissionDefault: { - /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { + /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.all, + queryKey: orgMembershipDefaultKeys.all, }), - /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), + queryKey: orgMembershipDefaultKeys.lists(), }), - /** Invalidate a specific appPermissionDefault */ detail: ( + /** Invalidate a specific orgMembershipDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }), }, - /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { - /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => + /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { + /** Invalidate all nodeTypeRegistry queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.all, + queryKey: nodeTypeRegistryKeys.all, }), - /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => + /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.lists(), + queryKey: nodeTypeRegistryKeys.lists(), }), - /** Invalidate a specific appLimitCreditCode */ detail: ( + /** Invalidate a specific nodeTypeRegistry */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), + queryKey: nodeTypeRegistryKeys.detail(id), }), }, /** Invalidate appLimitCapsDefault queries */ appLimitCapsDefault: { @@ -2115,76 +2240,25 @@ export const invalidate = { queryKey: orgLimitCapKeys.detail(id), }), }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => + /** Invalidate userConnectedAccount queries */ userConnectedAccount: { + /** Invalidate all userConnectedAccount queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, + queryKey: userConnectedAccountKeys.all, }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => + /** Invalidate userConnectedAccount list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), + queryKey: userConnectedAccountKeys.lists(), }), - /** Invalidate a specific membershipType */ detail: ( + /** Invalidate a specific userConnectedAccount */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: userConnectedAccountKeys.detail(id), }), }, - /** Invalidate migrateFile queries */ migrateFile: { - /** Invalidate all migrateFile queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: migrateFileKeys.all, - }), - /** Invalidate migrateFile list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: migrateFileKeys.lists(), - }), - /** Invalidate a specific migrateFile */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: migrateFileKeys.detail(id), - }), - }, - /** Invalidate devicesModule queries */ devicesModule: { - /** Invalidate all devicesModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.all, - }), - /** Invalidate devicesModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.lists(), - }), - /** Invalidate a specific devicesModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.detail(id), - }), - }, - /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { - /** Invalidate all nodeTypeRegistry queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: nodeTypeRegistryKeys.all, - }), - /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: nodeTypeRegistryKeys.lists(), - }), - /** Invalidate a specific nodeTypeRegistry */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: nodeTypeRegistryKeys.detail(id), - }), - }, - /** Invalidate appLimitDefault queries */ appLimitDefault: { - /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitDefault queries */ appLimitDefault: { + /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ queryKey: appLimitDefaultKeys.all, }), @@ -2217,38 +2291,38 @@ export const invalidate = { queryKey: orgLimitDefaultKeys.detail(id), }), }, - /** Invalidate appLimitWarning queries */ appLimitWarning: { - /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: { + /** Invalidate all appLimitCreditCode queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.all, + queryKey: appLimitCreditCodeKeys.all, }), - /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitCreditCode list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.lists(), + queryKey: appLimitCreditCodeKeys.lists(), }), - /** Invalidate a specific appLimitWarning */ detail: ( + /** Invalidate a specific appLimitCreditCode */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitWarningKeys.detail(id), + queryKey: appLimitCreditCodeKeys.detail(id), }), }, - /** Invalidate userConnectedAccount queries */ userConnectedAccount: { - /** Invalidate all userConnectedAccount queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitWarning queries */ appLimitWarning: { + /** Invalidate all appLimitWarning queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.all, + queryKey: appLimitWarningKeys.all, }), - /** Invalidate userConnectedAccount list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitWarning list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.lists(), + queryKey: appLimitWarningKeys.lists(), }), - /** Invalidate a specific userConnectedAccount */ detail: ( + /** Invalidate a specific appLimitWarning */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.detail(id), + queryKey: appLimitWarningKeys.detail(id), }), }, /** Invalidate commit queries */ commit: { @@ -2299,55 +2373,21 @@ export const invalidate = { queryKey: rateLimitsModuleKeys.detail(id), }), }, - /** Invalidate usageSnapshot queries */ usageSnapshot: { - /** Invalidate all usageSnapshot queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.all, - }), - /** Invalidate usageSnapshot list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.lists(), - }), - /** Invalidate a specific usageSnapshot */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.detail(id), - }), - }, - /** Invalidate appMembershipDefault queries */ appMembershipDefault: { - /** Invalidate all appMembershipDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.all, - }), - /** Invalidate appMembershipDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.lists(), - }), - /** Invalidate a specific appMembershipDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appMembershipDefaultKeys.detail(id), - }), - }, - /** Invalidate orgMembershipDefault queries */ orgMembershipDefault: { - /** Invalidate all orgMembershipDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate membershipType queries */ membershipType: { + /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.all, + queryKey: membershipTypeKeys.all, }), - /** Invalidate orgMembershipDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.lists(), + queryKey: membershipTypeKeys.lists(), }), - /** Invalidate a specific orgMembershipDefault */ detail: ( + /** Invalidate a specific membershipType */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }), }, /** Invalidate rlsSetting queries */ rlsSetting: { @@ -2367,55 +2407,38 @@ export const invalidate = { queryKey: rlsSettingKeys.detail(id), }), }, - /** Invalidate appLimitEvent queries */ appLimitEvent: { - /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.all, - }), - /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.lists(), - }), - /** Invalidate a specific appLimitEvent */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appLimitEventKeys.detail(id), - }), - }, - /** Invalidate orgLimitEvent queries */ orgLimitEvent: { - /** Invalidate all orgLimitEvent queries */ all: (queryClient: QueryClient) => + /** Invalidate rlsModule queries */ rlsModule: { + /** Invalidate all rlsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.all, + queryKey: rlsModuleKeys.all, }), - /** Invalidate orgLimitEvent list queries */ lists: (queryClient: QueryClient) => + /** Invalidate rlsModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.lists(), + queryKey: rlsModuleKeys.lists(), }), - /** Invalidate a specific orgLimitEvent */ detail: ( + /** Invalidate a specific rlsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgLimitEventKeys.detail(id), + queryKey: rlsModuleKeys.detail(id), }), }, - /** Invalidate rlsModule queries */ rlsModule: { - /** Invalidate all rlsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate agentChatModule queries */ agentChatModule: { + /** Invalidate all agentChatModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: rlsModuleKeys.all, + queryKey: agentChatModuleKeys.all, }), - /** Invalidate rlsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate agentChatModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: rlsModuleKeys.lists(), + queryKey: agentChatModuleKeys.lists(), }), - /** Invalidate a specific rlsModule */ detail: ( + /** Invalidate a specific agentChatModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: rlsModuleKeys.detail(id), + queryKey: agentChatModuleKeys.detail(id), }), }, /** Invalidate rateLimitMetersModule queries */ rateLimitMetersModule: { @@ -2469,6 +2492,40 @@ export const invalidate = { queryKey: sqlActionKeys.detail(id), }), }, + /** Invalidate appLimitEvent queries */ appLimitEvent: { + /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.all, + }), + /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }), + /** Invalidate a specific appLimitEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.detail(id), + }), + }, + /** Invalidate orgLimitEvent queries */ orgLimitEvent: { + /** Invalidate all orgLimitEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.all, + }), + /** Invalidate orgLimitEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }), + /** Invalidate a specific orgLimitEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.detail(id), + }), + }, /** Invalidate databaseSetting queries */ databaseSetting: { /** Invalidate all databaseSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2486,38 +2543,38 @@ export const invalidate = { queryKey: databaseSettingKeys.detail(id), }), }, - /** Invalidate billingModule queries */ billingModule: { - /** Invalidate all billingModule queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { + /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: billingModuleKeys.all, + queryKey: orgMembershipSettingKeys.all, }), - /** Invalidate billingModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: billingModuleKeys.lists(), + queryKey: orgMembershipSettingKeys.lists(), }), - /** Invalidate a specific billingModule */ detail: ( + /** Invalidate a specific orgMembershipSetting */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: billingModuleKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }), }, - /** Invalidate astMigration queries */ astMigration: { - /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => + /** Invalidate appMembership queries */ appMembership: { + /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.all, + queryKey: appMembershipKeys.all, }), - /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.lists(), + queryKey: appMembershipKeys.lists(), }), - /** Invalidate a specific astMigration */ detail: ( + /** Invalidate a specific appMembership */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }), }, /** Invalidate user queries */ user: { @@ -2534,21 +2591,21 @@ export const invalidate = { queryKey: userKeys.detail(id), }), }, - /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { - /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => + /** Invalidate astMigration queries */ astMigration: { + /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.all, + queryKey: astMigrationKeys.all, }), - /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => + /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), + queryKey: astMigrationKeys.lists(), }), - /** Invalidate a specific orgMembershipSetting */ detail: ( + /** Invalidate a specific astMigration */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: astMigrationKeys.detail(id), }), }, /** Invalidate webauthnSetting queries */ webauthnSetting: { @@ -2568,21 +2625,21 @@ export const invalidate = { queryKey: webauthnSettingKeys.detail(id), }), }, - /** Invalidate appMembership queries */ appMembership: { - /** Invalidate all appMembership queries */ all: (queryClient: QueryClient) => + /** Invalidate billingModule queries */ billingModule: { + /** Invalidate all billingModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.all, + queryKey: billingModuleKeys.all, }), - /** Invalidate appMembership list queries */ lists: (queryClient: QueryClient) => + /** Invalidate billingModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.lists(), + queryKey: billingModuleKeys.lists(), }), - /** Invalidate a specific appMembership */ detail: ( + /** Invalidate a specific billingModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appMembershipKeys.detail(id), + queryKey: billingModuleKeys.detail(id), }), }, /** Invalidate billingProviderModule queries */ billingProviderModule: { @@ -2656,6 +2713,11 @@ export const remove = { queryKey: getAllRecordKeys.detail(id), }); }, + /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: objectKeys.detail(id), + }); + }, /** Remove appPermission from cache */ appPermission: ( queryClient: QueryClient, id: string | number @@ -2672,11 +2734,6 @@ export const remove = { queryKey: orgPermissionKeys.detail(id), }); }, - /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: objectKeys.detail(id), - }); - }, /** Remove database from cache */ database: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: databaseKeys.detail(id), @@ -2836,6 +2893,14 @@ export const remove = { queryKey: realtimeModuleKeys.detail(id), }); }, + /** Remove configSecretsOrgModule from cache */ configSecretsOrgModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: configSecretsOrgModuleKeys.detail(id), + }); + }, /** Remove schemaGrant from cache */ schemaGrant: ( queryClient: QueryClient, id: string | number @@ -2998,12 +3063,12 @@ export const remove = { queryKey: emailsModuleKeys.detail(id), }); }, - /** Remove encryptedSecretsModule from cache */ encryptedSecretsModule: ( + /** Remove configSecretsUserModule from cache */ configSecretsUserModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: encryptedSecretsModuleKeys.detail(id), + queryKey: configSecretsUserModuleKeys.detail(id), }); }, /** Remove invitesModule from cache */ invitesModule: ( @@ -3163,6 +3228,46 @@ export const remove = { queryKey: notificationsModuleKeys.detail(id), }); }, + /** Remove inferenceLogModule from cache */ inferenceLogModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: inferenceLogModuleKeys.detail(id), + }); + }, + /** Remove computeLogModule from cache */ computeLogModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: computeLogModuleKeys.detail(id), + }); + }, + /** Remove transferLogModule from cache */ transferLogModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: transferLogModuleKeys.detail(id), + }); + }, + /** Remove storageLogModule from cache */ storageLogModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: storageLogModuleKeys.detail(id), + }); + }, + /** Remove dbUsageModule from cache */ dbUsageModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: dbUsageModuleKeys.detail(id), + }); + }, /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( queryClient: QueryClient, id: string | number @@ -3371,133 +3476,123 @@ export const remove = { queryKey: orgClaimedInviteKeys.detail(id), }); }, - /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: auditLogKeys.detail(id), - }); - }, - /** Remove agentThread from cache */ agentThread: ( + /** Remove auditLogAuth from cache */ auditLogAuth: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: agentThreadKeys.detail(id), + queryKey: auditLogAuthKeys.detail(id), }); }, - /** Remove agentMessage from cache */ agentMessage: ( + /** Remove identityProvider from cache */ identityProvider: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: agentMessageKeys.detail(id), + queryKey: identityProviderKeys.detail(id), }); }, - /** Remove agentTask from cache */ agentTask: (queryClient: QueryClient, id: string | number) => { + /** Remove ref from cache */ ref: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: agentTaskKeys.detail(id), + queryKey: refKeys.detail(id), }); }, - /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { + /** Remove store from cache */ store: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: roleTypeKeys.detail(id), + queryKey: storeKeys.detail(id), }); }, - /** Remove identityProvider from cache */ identityProvider: ( + /** Remove appPermissionDefault from cache */ appPermissionDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: identityProviderKeys.detail(id), - }); - }, - /** Remove ref from cache */ ref: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: refKeys.detail(id), + queryKey: appPermissionDefaultKeys.detail(id), }); }, - /** Remove store from cache */ store: (queryClient: QueryClient, id: string | number) => { + /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: storeKeys.detail(id), + queryKey: roleTypeKeys.detail(id), }); }, - /** Remove appPermissionDefault from cache */ appPermissionDefault: ( + /** Remove migrateFile from cache */ migrateFile: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appPermissionDefaultKeys.detail(id), + queryKey: migrateFileKeys.detail(id), }); }, - /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( + /** Remove devicesModule from cache */ devicesModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCreditCodeKeys.detail(id), + queryKey: devicesModuleKeys.detail(id), }); }, - /** Remove appLimitCapsDefault from cache */ appLimitCapsDefault: ( + /** Remove appMembershipDefault from cache */ appMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCapsDefaultKeys.detail(id), + queryKey: appMembershipDefaultKeys.detail(id), }); }, - /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: ( + /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitCapsDefaultKeys.detail(id), + queryKey: orgMembershipDefaultKeys.detail(id), }); }, - /** Remove appLimitCap from cache */ appLimitCap: ( + /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitCapKeys.detail(id), + queryKey: nodeTypeRegistryKeys.detail(id), }); }, - /** Remove orgLimitCap from cache */ orgLimitCap: ( + /** Remove appLimitCapsDefault from cache */ appLimitCapsDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitCapKeys.detail(id), + queryKey: appLimitCapsDefaultKeys.detail(id), }); }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: orgLimitCapsDefaultKeys.detail(id), }); }, - /** Remove migrateFile from cache */ migrateFile: ( + /** Remove appLimitCap from cache */ appLimitCap: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: migrateFileKeys.detail(id), + queryKey: appLimitCapKeys.detail(id), }); }, - /** Remove devicesModule from cache */ devicesModule: ( + /** Remove orgLimitCap from cache */ orgLimitCap: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: devicesModuleKeys.detail(id), + queryKey: orgLimitCapKeys.detail(id), }); }, - /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( + /** Remove userConnectedAccount from cache */ userConnectedAccount: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: nodeTypeRegistryKeys.detail(id), + queryKey: userConnectedAccountKeys.detail(id), }); }, /** Remove appLimitDefault from cache */ appLimitDefault: ( @@ -3516,20 +3611,20 @@ export const remove = { queryKey: orgLimitDefaultKeys.detail(id), }); }, - /** Remove appLimitWarning from cache */ appLimitWarning: ( + /** Remove appLimitCreditCode from cache */ appLimitCreditCode: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitWarningKeys.detail(id), + queryKey: appLimitCreditCodeKeys.detail(id), }); }, - /** Remove userConnectedAccount from cache */ userConnectedAccount: ( + /** Remove appLimitWarning from cache */ appLimitWarning: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: userConnectedAccountKeys.detail(id), + queryKey: appLimitWarningKeys.detail(id), }); }, /** Remove commit from cache */ commit: (queryClient: QueryClient, id: string | number) => { @@ -3553,78 +3648,70 @@ export const remove = { queryKey: rateLimitsModuleKeys.detail(id), }); }, - /** Remove usageSnapshot from cache */ usageSnapshot: ( + /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: usageSnapshotKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }); }, - /** Remove appMembershipDefault from cache */ appMembershipDefault: ( + /** Remove rlsSetting from cache */ rlsSetting: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appMembershipDefaultKeys.detail(id), + queryKey: rlsSettingKeys.detail(id), }); }, - /** Remove orgMembershipDefault from cache */ orgMembershipDefault: ( - queryClient: QueryClient, - id: string | number - ) => { + /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: orgMembershipDefaultKeys.detail(id), + queryKey: rlsModuleKeys.detail(id), }); }, - /** Remove rlsSetting from cache */ rlsSetting: ( + /** Remove agentChatModule from cache */ agentChatModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: rlsSettingKeys.detail(id), + queryKey: agentChatModuleKeys.detail(id), }); }, - /** Remove appLimitEvent from cache */ appLimitEvent: ( + /** Remove rateLimitMetersModule from cache */ rateLimitMetersModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitEventKeys.detail(id), + queryKey: rateLimitMetersModuleKeys.detail(id), }); }, - /** Remove orgLimitEvent from cache */ orgLimitEvent: ( + /** Remove plansModule from cache */ plansModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgLimitEventKeys.detail(id), + queryKey: plansModuleKeys.detail(id), }); }, - /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { + /** Remove sqlAction from cache */ sqlAction: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: rlsModuleKeys.detail(id), + queryKey: sqlActionKeys.detail(id), }); }, - /** Remove rateLimitMetersModule from cache */ rateLimitMetersModule: ( + /** Remove appLimitEvent from cache */ appLimitEvent: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: rateLimitMetersModuleKeys.detail(id), + queryKey: appLimitEventKeys.detail(id), }); }, - /** Remove plansModule from cache */ plansModule: ( + /** Remove orgLimitEvent from cache */ orgLimitEvent: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: plansModuleKeys.detail(id), - }); - }, - /** Remove sqlAction from cache */ sqlAction: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: sqlActionKeys.detail(id), + queryKey: orgLimitEventKeys.detail(id), }); }, /** Remove databaseSetting from cache */ databaseSetting: ( @@ -3635,20 +3722,20 @@ export const remove = { queryKey: databaseSettingKeys.detail(id), }); }, - /** Remove billingModule from cache */ billingModule: ( + /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: billingModuleKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }); }, - /** Remove astMigration from cache */ astMigration: ( + /** Remove appMembership from cache */ appMembership: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: astMigrationKeys.detail(id), + queryKey: appMembershipKeys.detail(id), }); }, /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { @@ -3656,12 +3743,12 @@ export const remove = { queryKey: userKeys.detail(id), }); }, - /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( + /** Remove astMigration from cache */ astMigration: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: astMigrationKeys.detail(id), }); }, /** Remove webauthnSetting from cache */ webauthnSetting: ( @@ -3672,12 +3759,12 @@ export const remove = { queryKey: webauthnSettingKeys.detail(id), }); }, - /** Remove appMembership from cache */ appMembership: ( + /** Remove billingModule from cache */ billingModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appMembershipKeys.detail(id), + queryKey: billingModuleKeys.detail(id), }); }, /** Remove billingProviderModule from cache */ billingProviderModule: ( diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts index 7b625f19d0..f16c6a7363 100644 --- a/sdk/constructive-react/src/public/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/public/hooks/mutation-keys.ts @@ -48,6 +48,14 @@ export const getAllRecordMutationKeys = { /** 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, + /** Update object mutation key */ update: (id: string | number) => + ['mutation', 'object', 'update', id] as const, + /** Delete object mutation key */ delete: (id: string | number) => + ['mutation', 'object', 'delete', id] as const, +} as const; export const appPermissionMutationKeys = { /** All appPermission mutation keys */ all: ['mutation', 'apppermission'] as const, /** Create appPermission mutation key */ create: () => @@ -66,14 +74,6 @@ export const orgPermissionMutationKeys = { /** Delete orgPermission mutation key */ delete: (id: string | number) => ['mutation', 'orgpermission', '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, - /** Update object mutation key */ update: (id: string | number) => - ['mutation', 'object', 'update', id] as const, - /** Delete object mutation key */ delete: (id: string | number) => - ['mutation', 'object', 'delete', id] as const, -} as const; export const databaseMutationKeys = { /** All database mutation keys */ all: ['mutation', 'database'] as const, /** Create database mutation key */ create: () => ['mutation', 'database', 'create'] as const, @@ -281,6 +281,18 @@ export const realtimeModuleMutationKeys = { /** Delete realtimeModule mutation key */ delete: (id: string | number) => ['mutation', 'realtimemodule', 'delete', id] as const, } as const; +export const configSecretsOrgModuleMutationKeys = { + /** All configSecretsOrgModule mutation keys */ all: [ + 'mutation', + 'configsecretsorgmodule', + ] as const, + /** Create configSecretsOrgModule mutation key */ create: () => + ['mutation', 'configsecretsorgmodule', 'create'] as const, + /** Update configSecretsOrgModule mutation key */ update: (id: string | number) => + ['mutation', 'configsecretsorgmodule', 'update', id] as const, + /** Delete configSecretsOrgModule mutation key */ delete: (id: string | number) => + ['mutation', 'configsecretsorgmodule', 'delete', id] as const, +} as const; export const schemaGrantMutationKeys = { /** All schemaGrant mutation keys */ all: ['mutation', 'schemagrant'] as const, /** Create schemaGrant mutation key */ create: () => @@ -494,17 +506,17 @@ export const emailsModuleMutationKeys = { /** Delete emailsModule mutation key */ delete: (id: string | number) => ['mutation', 'emailsmodule', 'delete', id] as const, } as const; -export const encryptedSecretsModuleMutationKeys = { - /** All encryptedSecretsModule mutation keys */ all: [ +export const configSecretsUserModuleMutationKeys = { + /** All configSecretsUserModule mutation keys */ all: [ 'mutation', - 'encryptedsecretsmodule', + 'configsecretsusermodule', ] as const, - /** Create encryptedSecretsModule mutation key */ create: () => - ['mutation', 'encryptedsecretsmodule', 'create'] as const, - /** Update encryptedSecretsModule mutation key */ update: (id: string | number) => - ['mutation', 'encryptedsecretsmodule', 'update', id] as const, - /** Delete encryptedSecretsModule mutation key */ delete: (id: string | number) => - ['mutation', 'encryptedsecretsmodule', 'delete', id] as const, + /** Create configSecretsUserModule mutation key */ create: () => + ['mutation', 'configsecretsusermodule', 'create'] as const, + /** Update configSecretsUserModule mutation key */ update: (id: string | number) => + ['mutation', 'configsecretsusermodule', 'update', id] as const, + /** Delete configSecretsUserModule mutation key */ delete: (id: string | number) => + ['mutation', 'configsecretsusermodule', 'delete', id] as const, } as const; export const invitesModuleMutationKeys = { /** All invitesModule mutation keys */ all: ['mutation', 'invitesmodule'] as const, @@ -694,6 +706,51 @@ export const notificationsModuleMutationKeys = { /** Delete notificationsModule mutation key */ delete: (id: string | number) => ['mutation', 'notificationsmodule', 'delete', id] as const, } as const; +export const inferenceLogModuleMutationKeys = { + /** All inferenceLogModule mutation keys */ all: ['mutation', 'inferencelogmodule'] as const, + /** Create inferenceLogModule mutation key */ create: () => + ['mutation', 'inferencelogmodule', 'create'] as const, + /** Update inferenceLogModule mutation key */ update: (id: string | number) => + ['mutation', 'inferencelogmodule', 'update', id] as const, + /** Delete inferenceLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'inferencelogmodule', 'delete', id] as const, +} as const; +export const computeLogModuleMutationKeys = { + /** All computeLogModule mutation keys */ all: ['mutation', 'computelogmodule'] as const, + /** Create computeLogModule mutation key */ create: () => + ['mutation', 'computelogmodule', 'create'] as const, + /** Update computeLogModule mutation key */ update: (id: string | number) => + ['mutation', 'computelogmodule', 'update', id] as const, + /** Delete computeLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'computelogmodule', 'delete', id] as const, +} as const; +export const transferLogModuleMutationKeys = { + /** All transferLogModule mutation keys */ all: ['mutation', 'transferlogmodule'] as const, + /** Create transferLogModule mutation key */ create: () => + ['mutation', 'transferlogmodule', 'create'] as const, + /** Update transferLogModule mutation key */ update: (id: string | number) => + ['mutation', 'transferlogmodule', 'update', id] as const, + /** Delete transferLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'transferlogmodule', 'delete', id] as const, +} as const; +export const storageLogModuleMutationKeys = { + /** All storageLogModule mutation keys */ all: ['mutation', 'storagelogmodule'] as const, + /** Create storageLogModule mutation key */ create: () => + ['mutation', 'storagelogmodule', 'create'] as const, + /** Update storageLogModule mutation key */ update: (id: string | number) => + ['mutation', 'storagelogmodule', 'update', id] as const, + /** Delete storageLogModule mutation key */ delete: (id: string | number) => + ['mutation', 'storagelogmodule', 'delete', id] as const, +} as const; +export const dbUsageModuleMutationKeys = { + /** All dbUsageModule mutation keys */ all: ['mutation', 'dbusagemodule'] as const, + /** Create dbUsageModule mutation key */ create: () => + ['mutation', 'dbusagemodule', 'create'] as const, + /** Update dbUsageModule mutation key */ update: (id: string | number) => + ['mutation', 'dbusagemodule', 'update', id] as const, + /** Delete dbUsageModule mutation key */ delete: (id: string | number) => + ['mutation', 'dbusagemodule', 'delete', id] as const, +} as const; export const databaseProvisionModuleMutationKeys = { /** All databaseProvisionModule mutation keys */ all: [ 'mutation', @@ -956,47 +1013,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 agentThreadMutationKeys = { - /** All agentThread mutation keys */ all: ['mutation', 'agentthread'] as const, - /** Create agentThread mutation key */ create: () => - ['mutation', 'agentthread', 'create'] as const, - /** Update agentThread mutation key */ update: (id: string | number) => - ['mutation', 'agentthread', 'update', id] as const, - /** Delete agentThread mutation key */ delete: (id: string | number) => - ['mutation', 'agentthread', 'delete', id] as const, -} as const; -export const agentMessageMutationKeys = { - /** All agentMessage mutation keys */ all: ['mutation', 'agentmessage'] as const, - /** Create agentMessage mutation key */ create: () => - ['mutation', 'agentmessage', 'create'] as const, - /** Update agentMessage mutation key */ update: (id: string | number) => - ['mutation', 'agentmessage', 'update', id] as const, - /** Delete agentMessage mutation key */ delete: (id: string | number) => - ['mutation', 'agentmessage', 'delete', id] as const, -} as const; -export const agentTaskMutationKeys = { - /** All agentTask mutation keys */ all: ['mutation', 'agenttask'] as const, - /** Create agentTask mutation key */ create: () => ['mutation', 'agenttask', 'create'] as const, - /** Update agentTask mutation key */ update: (id: string | number) => - ['mutation', 'agenttask', 'update', id] as const, - /** Delete agentTask mutation key */ delete: (id: string | number) => - ['mutation', 'agenttask', '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 auditLogAuthMutationKeys = { + /** All auditLogAuth mutation keys */ all: ['mutation', 'auditlogauth'] as const, + /** Create auditLogAuth mutation key */ create: () => + ['mutation', 'auditlogauth', 'create'] as const, + /** Update auditLogAuth mutation key */ update: (id: string | number) => + ['mutation', 'auditlogauth', 'update', id] as const, + /** Delete auditLogAuth mutation key */ delete: (id: string | number) => + ['mutation', 'auditlogauth', 'delete', id] as const, } as const; export const identityProviderMutationKeys = { /** All identityProvider mutation keys */ all: ['mutation', 'identityprovider'] as const, @@ -1032,14 +1056,58 @@ export const appPermissionDefaultMutationKeys = { /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => ['mutation', 'apppermissiondefault', 'delete', id] as const, } as const; -export const appLimitCreditCodeMutationKeys = { - /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, - /** Create appLimitCreditCode mutation key */ create: () => - ['mutation', 'applimitcreditcode', 'create'] as const, - /** Update appLimitCreditCode mutation key */ update: (id: string | number) => - ['mutation', 'applimitcreditcode', 'update', id] as const, - /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => - ['mutation', 'applimitcreditcode', '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 migrateFileMutationKeys = { + /** All migrateFile mutation keys */ all: ['mutation', 'migratefile'] as const, + /** Create migrateFile mutation key */ create: () => + ['mutation', 'migratefile', 'create'] as const, + /** Update migrateFile mutation key */ update: (id: string | number) => + ['mutation', 'migratefile', 'update', id] as const, + /** Delete migrateFile mutation key */ delete: (id: string | number) => + ['mutation', 'migratefile', 'delete', id] as const, +} as const; +export const devicesModuleMutationKeys = { + /** All devicesModule mutation keys */ all: ['mutation', 'devicesmodule'] as const, + /** Create devicesModule mutation key */ create: () => + ['mutation', 'devicesmodule', 'create'] as const, + /** Update devicesModule mutation key */ update: (id: string | number) => + ['mutation', 'devicesmodule', 'update', id] as const, + /** Delete devicesModule mutation key */ delete: (id: string | number) => + ['mutation', 'devicesmodule', 'delete', id] as const, +} as const; +export const appMembershipDefaultMutationKeys = { + /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, + /** Create appMembershipDefault mutation key */ create: () => + ['mutation', 'appmembershipdefault', 'create'] as const, + /** Update appMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'appmembershipdefault', 'update', id] as const, + /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'appmembershipdefault', 'delete', id] as const, +} as const; +export const orgMembershipDefaultMutationKeys = { + /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, + /** Create orgMembershipDefault mutation key */ create: () => + ['mutation', 'orgmembershipdefault', 'create'] as const, + /** Update orgMembershipDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'update', id] as const, + /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipdefault', 'delete', id] as const, +} as const; +export const nodeTypeRegistryMutationKeys = { + /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, + /** Create nodeTypeRegistry mutation key */ create: () => + ['mutation', 'nodetyperegistry', 'create'] as const, + /** Update nodeTypeRegistry mutation key */ update: (id: string | number) => + ['mutation', 'nodetyperegistry', 'update', id] as const, + /** Delete nodeTypeRegistry mutation key */ delete: (id: string | number) => + ['mutation', 'nodetyperegistry', 'delete', id] as const, } as const; export const appLimitCapsDefaultMutationKeys = { /** All appLimitCapsDefault mutation keys */ all: ['mutation', 'applimitcapsdefault'] as const, @@ -1077,41 +1145,14 @@ export const orgLimitCapMutationKeys = { /** Delete orgLimitCap mutation key */ delete: (id: string | number) => ['mutation', 'orglimitcap', 'delete', id] as const, } as const; -export const membershipTypeMutationKeys = { - /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, - /** Create membershipType mutation key */ create: () => - ['mutation', 'membershiptype', 'create'] as const, - /** Update membershipType mutation key */ update: (id: string | number) => - ['mutation', 'membershiptype', 'update', id] as const, - /** Delete membershipType mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptype', 'delete', id] as const, -} as const; -export const migrateFileMutationKeys = { - /** All migrateFile mutation keys */ all: ['mutation', 'migratefile'] as const, - /** Create migrateFile mutation key */ create: () => - ['mutation', 'migratefile', 'create'] as const, - /** Update migrateFile mutation key */ update: (id: string | number) => - ['mutation', 'migratefile', 'update', id] as const, - /** Delete migrateFile mutation key */ delete: (id: string | number) => - ['mutation', 'migratefile', 'delete', id] as const, -} as const; -export const devicesModuleMutationKeys = { - /** All devicesModule mutation keys */ all: ['mutation', 'devicesmodule'] as const, - /** Create devicesModule mutation key */ create: () => - ['mutation', 'devicesmodule', 'create'] as const, - /** Update devicesModule mutation key */ update: (id: string | number) => - ['mutation', 'devicesmodule', 'update', id] as const, - /** Delete devicesModule mutation key */ delete: (id: string | number) => - ['mutation', 'devicesmodule', 'delete', id] as const, -} as const; -export const nodeTypeRegistryMutationKeys = { - /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, - /** Create nodeTypeRegistry mutation key */ create: () => - ['mutation', 'nodetyperegistry', 'create'] as const, - /** Update nodeTypeRegistry mutation key */ update: (id: string | number) => - ['mutation', 'nodetyperegistry', 'update', id] as const, - /** Delete nodeTypeRegistry mutation key */ delete: (id: string | number) => - ['mutation', 'nodetyperegistry', 'delete', id] as const, +export const userConnectedAccountMutationKeys = { + /** All userConnectedAccount mutation keys */ all: ['mutation', 'userconnectedaccount'] as const, + /** Create userConnectedAccount mutation key */ create: () => + ['mutation', 'userconnectedaccount', 'create'] as const, + /** Update userConnectedAccount mutation key */ update: (id: string | number) => + ['mutation', 'userconnectedaccount', 'update', id] as const, + /** Delete userConnectedAccount mutation key */ delete: (id: string | number) => + ['mutation', 'userconnectedaccount', 'delete', id] as const, } as const; export const appLimitDefaultMutationKeys = { /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, @@ -1131,6 +1172,15 @@ export const orgLimitDefaultMutationKeys = { /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => ['mutation', 'orglimitdefault', 'delete', id] as const, } as const; +export const appLimitCreditCodeMutationKeys = { + /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'] as const, + /** Create appLimitCreditCode mutation key */ create: () => + ['mutation', 'applimitcreditcode', 'create'] as const, + /** Update appLimitCreditCode mutation key */ update: (id: string | number) => + ['mutation', 'applimitcreditcode', 'update', id] as const, + /** Delete appLimitCreditCode mutation key */ delete: (id: string | number) => + ['mutation', 'applimitcreditcode', 'delete', id] as const, +} as const; export const appLimitWarningMutationKeys = { /** All appLimitWarning mutation keys */ all: ['mutation', 'applimitwarning'] as const, /** Create appLimitWarning mutation key */ create: () => @@ -1140,15 +1190,6 @@ export const appLimitWarningMutationKeys = { /** Delete appLimitWarning mutation key */ delete: (id: string | number) => ['mutation', 'applimitwarning', 'delete', id] as const, } as const; -export const userConnectedAccountMutationKeys = { - /** All userConnectedAccount mutation keys */ all: ['mutation', 'userconnectedaccount'] as const, - /** Create userConnectedAccount mutation key */ create: () => - ['mutation', 'userconnectedaccount', 'create'] as const, - /** Update userConnectedAccount mutation key */ update: (id: string | number) => - ['mutation', 'userconnectedaccount', 'update', id] as const, - /** Delete userConnectedAccount mutation key */ delete: (id: string | number) => - ['mutation', 'userconnectedaccount', 'delete', id] as const, -} as const; export const commitMutationKeys = { /** All commit mutation keys */ all: ['mutation', 'commit'] as const, /** Create commit mutation key */ create: () => ['mutation', 'commit', 'create'] as const, @@ -1175,32 +1216,14 @@ export const rateLimitsModuleMutationKeys = { /** Delete rateLimitsModule mutation key */ delete: (id: string | number) => ['mutation', 'ratelimitsmodule', 'delete', id] as const, } as const; -export const usageSnapshotMutationKeys = { - /** All usageSnapshot mutation keys */ all: ['mutation', 'usagesnapshot'] as const, - /** Create usageSnapshot mutation key */ create: () => - ['mutation', 'usagesnapshot', 'create'] as const, - /** Update usageSnapshot mutation key */ update: (id: string | number) => - ['mutation', 'usagesnapshot', 'update', id] as const, - /** Delete usageSnapshot mutation key */ delete: (id: string | number) => - ['mutation', 'usagesnapshot', 'delete', id] as const, -} as const; -export const appMembershipDefaultMutationKeys = { - /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, - /** Create appMembershipDefault mutation key */ create: () => - ['mutation', 'appmembershipdefault', 'create'] as const, - /** Update appMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'appmembershipdefault', 'update', id] as const, - /** Delete appMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'appmembershipdefault', 'delete', id] as const, -} as const; -export const orgMembershipDefaultMutationKeys = { - /** All orgMembershipDefault mutation keys */ all: ['mutation', 'orgmembershipdefault'] as const, - /** Create orgMembershipDefault mutation key */ create: () => - ['mutation', 'orgmembershipdefault', 'create'] as const, - /** Update orgMembershipDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'update', id] as const, - /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipdefault', 'delete', id] as const, +export const membershipTypeMutationKeys = { + /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, + /** Create membershipType mutation key */ create: () => + ['mutation', 'membershiptype', 'create'] as const, + /** Update membershipType mutation key */ update: (id: string | number) => + ['mutation', 'membershiptype', 'update', id] as const, + /** Delete membershipType mutation key */ delete: (id: string | number) => + ['mutation', 'membershiptype', 'delete', id] as const, } as const; export const rlsSettingMutationKeys = { /** All rlsSetting mutation keys */ all: ['mutation', 'rlssetting'] as const, @@ -1210,24 +1233,6 @@ export const rlsSettingMutationKeys = { /** Delete rlsSetting mutation key */ delete: (id: string | number) => ['mutation', 'rlssetting', 'delete', id] as const, } as const; -export const appLimitEventMutationKeys = { - /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, - /** Create appLimitEvent mutation key */ create: () => - ['mutation', 'applimitevent', 'create'] as const, - /** Update appLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'applimitevent', 'update', id] as const, - /** Delete appLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'applimitevent', 'delete', id] as const, -} as const; -export const orgLimitEventMutationKeys = { - /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, - /** Create orgLimitEvent mutation key */ create: () => - ['mutation', 'orglimitevent', 'create'] as const, - /** Update orgLimitEvent mutation key */ update: (id: string | number) => - ['mutation', 'orglimitevent', 'update', id] as const, - /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitevent', 'delete', id] as const, -} as const; export const rlsModuleMutationKeys = { /** All rlsModule mutation keys */ all: ['mutation', 'rlsmodule'] as const, /** Create rlsModule mutation key */ create: () => ['mutation', 'rlsmodule', 'create'] as const, @@ -1236,6 +1241,15 @@ export const rlsModuleMutationKeys = { /** Delete rlsModule mutation key */ delete: (id: string | number) => ['mutation', 'rlsmodule', 'delete', id] as const, } as const; +export const agentChatModuleMutationKeys = { + /** All agentChatModule mutation keys */ all: ['mutation', 'agentchatmodule'] as const, + /** Create agentChatModule mutation key */ create: () => + ['mutation', 'agentchatmodule', 'create'] as const, + /** Update agentChatModule mutation key */ update: (id: string | number) => + ['mutation', 'agentchatmodule', 'update', id] as const, + /** Delete agentChatModule mutation key */ delete: (id: string | number) => + ['mutation', 'agentchatmodule', 'delete', id] as const, +} as const; export const rateLimitMetersModuleMutationKeys = { /** All rateLimitMetersModule mutation keys */ all: [ 'mutation', @@ -1265,6 +1279,24 @@ export const sqlActionMutationKeys = { /** Delete sqlAction mutation key */ delete: (id: string | number) => ['mutation', 'sqlaction', 'delete', id] as const, } as const; +export const appLimitEventMutationKeys = { + /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, + /** Create appLimitEvent mutation key */ create: () => + ['mutation', 'applimitevent', 'create'] as const, + /** Update appLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'applimitevent', 'update', id] as const, + /** Delete appLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'applimitevent', 'delete', id] as const, +} as const; +export const orgLimitEventMutationKeys = { + /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, + /** Create orgLimitEvent mutation key */ create: () => + ['mutation', 'orglimitevent', 'create'] as const, + /** Update orgLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'orglimitevent', 'update', id] as const, + /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitevent', 'delete', id] as const, +} as const; export const databaseSettingMutationKeys = { /** All databaseSetting mutation keys */ all: ['mutation', 'databasesetting'] as const, /** Create databaseSetting mutation key */ create: () => @@ -1274,23 +1306,23 @@ export const databaseSettingMutationKeys = { /** Delete databaseSetting mutation key */ delete: (id: string | number) => ['mutation', 'databasesetting', 'delete', id] as const, } as const; -export const billingModuleMutationKeys = { - /** All billingModule mutation keys */ all: ['mutation', 'billingmodule'] as const, - /** Create billingModule mutation key */ create: () => - ['mutation', 'billingmodule', 'create'] as const, - /** Update billingModule mutation key */ update: (id: string | number) => - ['mutation', 'billingmodule', 'update', id] as const, - /** Delete billingModule mutation key */ delete: (id: string | number) => - ['mutation', 'billingmodule', 'delete', id] as const, +export const orgMembershipSettingMutationKeys = { + /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, + /** Create orgMembershipSetting mutation key */ create: () => + ['mutation', 'orgmembershipsetting', 'create'] as const, + /** Update orgMembershipSetting mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'update', id] as const, + /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'delete', id] as const, } as const; -export const astMigrationMutationKeys = { - /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, - /** Create astMigration mutation key */ create: () => - ['mutation', 'astmigration', 'create'] as const, - /** Update astMigration mutation key */ update: (id: string | number) => - ['mutation', 'astmigration', 'update', id] as const, - /** Delete astMigration mutation key */ delete: (id: string | number) => - ['mutation', 'astmigration', 'delete', id] as const, +export const appMembershipMutationKeys = { + /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, + /** Create appMembership mutation key */ create: () => + ['mutation', 'appmembership', 'create'] as const, + /** Update appMembership mutation key */ update: (id: string | number) => + ['mutation', 'appmembership', 'update', id] as const, + /** Delete appMembership mutation key */ delete: (id: string | number) => + ['mutation', 'appmembership', 'delete', id] as const, } as const; export const userMutationKeys = { /** All user mutation keys */ all: ['mutation', 'user'] as const, @@ -1300,14 +1332,14 @@ export const userMutationKeys = { /** Delete user mutation key */ delete: (id: string | number) => ['mutation', 'user', 'delete', id] as const, } as const; -export const orgMembershipSettingMutationKeys = { - /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, - /** Create orgMembershipSetting mutation key */ create: () => - ['mutation', 'orgmembershipsetting', 'create'] as const, - /** Update orgMembershipSetting mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'update', id] as const, - /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'delete', id] as const, +export const astMigrationMutationKeys = { + /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, + /** Create astMigration mutation key */ create: () => + ['mutation', 'astmigration', 'create'] as const, + /** Update astMigration mutation key */ update: (id: string | number) => + ['mutation', 'astmigration', 'update', id] as const, + /** Delete astMigration mutation key */ delete: (id: string | number) => + ['mutation', 'astmigration', 'delete', id] as const, } as const; export const webauthnSettingMutationKeys = { /** All webauthnSetting mutation keys */ all: ['mutation', 'webauthnsetting'] as const, @@ -1318,14 +1350,14 @@ export const webauthnSettingMutationKeys = { /** Delete webauthnSetting mutation key */ delete: (id: string | number) => ['mutation', 'webauthnsetting', 'delete', id] as const, } as const; -export const appMembershipMutationKeys = { - /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, - /** Create appMembership mutation key */ create: () => - ['mutation', 'appmembership', 'create'] as const, - /** Update appMembership mutation key */ update: (id: string | number) => - ['mutation', 'appmembership', 'update', id] as const, - /** Delete appMembership mutation key */ delete: (id: string | number) => - ['mutation', 'appmembership', 'delete', id] as const, +export const billingModuleMutationKeys = { + /** All billingModule mutation keys */ all: ['mutation', 'billingmodule'] as const, + /** Create billingModule mutation key */ create: () => + ['mutation', 'billingmodule', 'create'] as const, + /** Update billingModule mutation key */ update: (id: string | number) => + ['mutation', 'billingmodule', 'update', id] as const, + /** Delete billingModule mutation key */ delete: (id: string | number) => + ['mutation', 'billingmodule', 'delete', id] as const, } as const; export const billingProviderModuleMutationKeys = { /** All billingProviderModule mutation keys */ all: [ @@ -1454,10 +1486,18 @@ export const customMutationKeys = { identifier ? (['mutation', 'provisionSpatialRelation', identifier] as const) : (['mutation', 'provisionSpatialRelation'] as const), + /** Mutation key for signInCrossOrigin */ signInCrossOrigin: (identifier?: string) => + identifier + ? (['mutation', 'signInCrossOrigin', identifier] as const) + : (['mutation', 'signInCrossOrigin'] as const), /** Mutation key for bootstrapUser */ bootstrapUser: (identifier?: string) => identifier ? (['mutation', 'bootstrapUser', identifier] as const) : (['mutation', 'bootstrapUser'] as const), + /** Mutation key for signUp */ signUp: (identifier?: string) => + identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), + /** Mutation key for signIn */ signIn: (identifier?: string) => + identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), /** Mutation key for setFieldOrder */ setFieldOrder: (identifier?: string) => identifier ? (['mutation', 'setFieldOrder', identifier] as const) @@ -1516,10 +1556,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'applyRls', identifier] as const) : (['mutation', 'applyRls'] as const), - /** Mutation key for signInCrossOrigin */ signInCrossOrigin: (identifier?: string) => - identifier - ? (['mutation', 'signInCrossOrigin', identifier] as const) - : (['mutation', 'signInCrossOrigin'] as const), /** Mutation key for createUserDatabase */ createUserDatabase: (identifier?: string) => identifier ? (['mutation', 'createUserDatabase', identifier] as const) @@ -1532,26 +1568,22 @@ export const customMutationKeys = { identifier ? (['mutation', 'createApiKey', identifier] as const) : (['mutation', 'createApiKey'] 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 signUp */ signUp: (identifier?: string) => - identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), /** Mutation key for requestCrossOriginToken */ requestCrossOriginToken: (identifier?: string) => identifier ? (['mutation', 'requestCrossOriginToken', identifier] as const) : (['mutation', 'requestCrossOriginToken'] as const), - /** Mutation key for signIn */ signIn: (identifier?: string) => - identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), /** Mutation key for provisionTable */ provisionTable: (identifier?: string) => identifier ? (['mutation', 'provisionTable', identifier] as const) : (['mutation', 'provisionTable'] 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 provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -1583,9 +1615,9 @@ export const mutationKeys = { orgGetManagersRecord: orgGetManagersRecordMutationKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, getAllRecord: getAllRecordMutationKeys, + object: objectMutationKeys, appPermission: appPermissionMutationKeys, orgPermission: orgPermissionMutationKeys, - object: objectMutationKeys, database: databaseMutationKeys, schema: schemaMutationKeys, table: tableMutationKeys, @@ -1610,6 +1642,7 @@ export const mutationKeys = { sessionSecretsModule: sessionSecretsModuleMutationKeys, identityProvidersModule: identityProvidersModuleMutationKeys, realtimeModule: realtimeModuleMutationKeys, + configSecretsOrgModule: configSecretsOrgModuleMutationKeys, schemaGrant: schemaGrantMutationKeys, defaultPrivilege: defaultPrivilegeMutationKeys, enum: enumMutationKeys, @@ -1634,7 +1667,7 @@ export const mutationKeys = { defaultIdsModule: defaultIdsModuleMutationKeys, denormalizedTableField: denormalizedTableFieldMutationKeys, emailsModule: emailsModuleMutationKeys, - encryptedSecretsModule: encryptedSecretsModuleMutationKeys, + configSecretsUserModule: configSecretsUserModuleMutationKeys, invitesModule: invitesModuleMutationKeys, eventsModule: eventsModuleMutationKeys, limitsModule: limitsModuleMutationKeys, @@ -1655,6 +1688,11 @@ export const mutationKeys = { webauthnCredentialsModule: webauthnCredentialsModuleMutationKeys, webauthnAuthModule: webauthnAuthModuleMutationKeys, notificationsModule: notificationsModuleMutationKeys, + inferenceLogModule: inferenceLogModuleMutationKeys, + computeLogModule: computeLogModuleMutationKeys, + transferLogModule: transferLogModuleMutationKeys, + storageLogModule: storageLogModuleMutationKeys, + dbUsageModule: dbUsageModuleMutationKeys, databaseProvisionModule: databaseProvisionModuleMutationKeys, appAdminGrant: appAdminGrantMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, @@ -1684,48 +1722,45 @@ export const mutationKeys = { appClaimedInvite: appClaimedInviteMutationKeys, orgInvite: orgInviteMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, - auditLog: auditLogMutationKeys, - agentThread: agentThreadMutationKeys, - agentMessage: agentMessageMutationKeys, - agentTask: agentTaskMutationKeys, - roleType: roleTypeMutationKeys, + auditLogAuth: auditLogAuthMutationKeys, identityProvider: identityProviderMutationKeys, ref: refMutationKeys, store: storeMutationKeys, appPermissionDefault: appPermissionDefaultMutationKeys, - appLimitCreditCode: appLimitCreditCodeMutationKeys, + roleType: roleTypeMutationKeys, + migrateFile: migrateFileMutationKeys, + devicesModule: devicesModuleMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, + orgMembershipDefault: orgMembershipDefaultMutationKeys, + nodeTypeRegistry: nodeTypeRegistryMutationKeys, appLimitCapsDefault: appLimitCapsDefaultMutationKeys, orgLimitCapsDefault: orgLimitCapsDefaultMutationKeys, appLimitCap: appLimitCapMutationKeys, orgLimitCap: orgLimitCapMutationKeys, - membershipType: membershipTypeMutationKeys, - migrateFile: migrateFileMutationKeys, - devicesModule: devicesModuleMutationKeys, - nodeTypeRegistry: nodeTypeRegistryMutationKeys, + userConnectedAccount: userConnectedAccountMutationKeys, appLimitDefault: appLimitDefaultMutationKeys, orgLimitDefault: orgLimitDefaultMutationKeys, + appLimitCreditCode: appLimitCreditCodeMutationKeys, appLimitWarning: appLimitWarningMutationKeys, - userConnectedAccount: userConnectedAccountMutationKeys, commit: commitMutationKeys, pubkeySetting: pubkeySettingMutationKeys, rateLimitsModule: rateLimitsModuleMutationKeys, - usageSnapshot: usageSnapshotMutationKeys, - appMembershipDefault: appMembershipDefaultMutationKeys, - orgMembershipDefault: orgMembershipDefaultMutationKeys, + membershipType: membershipTypeMutationKeys, rlsSetting: rlsSettingMutationKeys, - appLimitEvent: appLimitEventMutationKeys, - orgLimitEvent: orgLimitEventMutationKeys, rlsModule: rlsModuleMutationKeys, + agentChatModule: agentChatModuleMutationKeys, rateLimitMetersModule: rateLimitMetersModuleMutationKeys, plansModule: plansModuleMutationKeys, sqlAction: sqlActionMutationKeys, + appLimitEvent: appLimitEventMutationKeys, + orgLimitEvent: orgLimitEventMutationKeys, databaseSetting: databaseSettingMutationKeys, - billingModule: billingModuleMutationKeys, - astMigration: astMigrationMutationKeys, - user: userMutationKeys, orgMembershipSetting: orgMembershipSettingMutationKeys, - webauthnSetting: webauthnSettingMutationKeys, appMembership: appMembershipMutationKeys, + user: userMutationKeys, + astMigration: astMigrationMutationKeys, + webauthnSetting: webauthnSettingMutationKeys, + billingModule: billingModuleMutationKeys, billingProviderModule: billingProviderModuleMutationKeys, hierarchyModule: hierarchyModuleMutationKeys, custom: customMutationKeys, diff --git a/sdk/constructive-react/src/public/hooks/mutations/index.ts b/sdk/constructive-react/src/public/hooks/mutations/index.ts index 850ea95670..bd07a19e2b 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/index.ts @@ -6,15 +6,15 @@ export * from './useCreateOrgGetManagersRecordMutation'; export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateGetAllRecordMutation'; +export * from './useCreateObjectMutation'; +export * from './useUpdateObjectMutation'; +export * from './useDeleteObjectMutation'; export * from './useCreateAppPermissionMutation'; export * from './useUpdateAppPermissionMutation'; export * from './useDeleteAppPermissionMutation'; export * from './useCreateOrgPermissionMutation'; export * from './useUpdateOrgPermissionMutation'; export * from './useDeleteOrgPermissionMutation'; -export * from './useCreateObjectMutation'; -export * from './useUpdateObjectMutation'; -export * from './useDeleteObjectMutation'; export * from './useCreateDatabaseMutation'; export * from './useUpdateDatabaseMutation'; export * from './useDeleteDatabaseMutation'; @@ -87,6 +87,9 @@ export * from './useDeleteIdentityProvidersModuleMutation'; export * from './useCreateRealtimeModuleMutation'; export * from './useUpdateRealtimeModuleMutation'; export * from './useDeleteRealtimeModuleMutation'; +export * from './useCreateConfigSecretsOrgModuleMutation'; +export * from './useUpdateConfigSecretsOrgModuleMutation'; +export * from './useDeleteConfigSecretsOrgModuleMutation'; export * from './useCreateSchemaGrantMutation'; export * from './useUpdateSchemaGrantMutation'; export * from './useDeleteSchemaGrantMutation'; @@ -159,9 +162,9 @@ export * from './useDeleteDenormalizedTableFieldMutation'; export * from './useCreateEmailsModuleMutation'; export * from './useUpdateEmailsModuleMutation'; export * from './useDeleteEmailsModuleMutation'; -export * from './useCreateEncryptedSecretsModuleMutation'; -export * from './useUpdateEncryptedSecretsModuleMutation'; -export * from './useDeleteEncryptedSecretsModuleMutation'; +export * from './useCreateConfigSecretsUserModuleMutation'; +export * from './useUpdateConfigSecretsUserModuleMutation'; +export * from './useDeleteConfigSecretsUserModuleMutation'; export * from './useCreateInvitesModuleMutation'; export * from './useUpdateInvitesModuleMutation'; export * from './useDeleteInvitesModuleMutation'; @@ -222,6 +225,21 @@ export * from './useDeleteWebauthnAuthModuleMutation'; export * from './useCreateNotificationsModuleMutation'; export * from './useUpdateNotificationsModuleMutation'; export * from './useDeleteNotificationsModuleMutation'; +export * from './useCreateInferenceLogModuleMutation'; +export * from './useUpdateInferenceLogModuleMutation'; +export * from './useDeleteInferenceLogModuleMutation'; +export * from './useCreateComputeLogModuleMutation'; +export * from './useUpdateComputeLogModuleMutation'; +export * from './useDeleteComputeLogModuleMutation'; +export * from './useCreateTransferLogModuleMutation'; +export * from './useUpdateTransferLogModuleMutation'; +export * from './useDeleteTransferLogModuleMutation'; +export * from './useCreateStorageLogModuleMutation'; +export * from './useUpdateStorageLogModuleMutation'; +export * from './useDeleteStorageLogModuleMutation'; +export * from './useCreateDbUsageModuleMutation'; +export * from './useUpdateDbUsageModuleMutation'; +export * from './useDeleteDbUsageModuleMutation'; export * from './useCreateDatabaseProvisionModuleMutation'; export * from './useUpdateDatabaseProvisionModuleMutation'; export * from './useDeleteDatabaseProvisionModuleMutation'; @@ -309,21 +327,9 @@ export * from './useDeleteOrgInviteMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; -export * from './useCreateAuditLogMutation'; -export * from './useUpdateAuditLogMutation'; -export * from './useDeleteAuditLogMutation'; -export * from './useCreateAgentThreadMutation'; -export * from './useUpdateAgentThreadMutation'; -export * from './useDeleteAgentThreadMutation'; -export * from './useCreateAgentMessageMutation'; -export * from './useUpdateAgentMessageMutation'; -export * from './useDeleteAgentMessageMutation'; -export * from './useCreateAgentTaskMutation'; -export * from './useUpdateAgentTaskMutation'; -export * from './useDeleteAgentTaskMutation'; -export * from './useCreateRoleTypeMutation'; -export * from './useUpdateRoleTypeMutation'; -export * from './useDeleteRoleTypeMutation'; +export * from './useCreateAuditLogAuthMutation'; +export * from './useUpdateAuditLogAuthMutation'; +export * from './useDeleteAuditLogAuthMutation'; export * from './useCreateIdentityProviderMutation'; export * from './useCreateRefMutation'; export * from './useUpdateRefMutation'; @@ -334,9 +340,22 @@ export * from './useDeleteStoreMutation'; export * from './useCreateAppPermissionDefaultMutation'; export * from './useUpdateAppPermissionDefaultMutation'; export * from './useDeleteAppPermissionDefaultMutation'; -export * from './useCreateAppLimitCreditCodeMutation'; -export * from './useUpdateAppLimitCreditCodeMutation'; -export * from './useDeleteAppLimitCreditCodeMutation'; +export * from './useCreateRoleTypeMutation'; +export * from './useUpdateRoleTypeMutation'; +export * from './useDeleteRoleTypeMutation'; +export * from './useCreateMigrateFileMutation'; +export * from './useCreateDevicesModuleMutation'; +export * from './useUpdateDevicesModuleMutation'; +export * from './useDeleteDevicesModuleMutation'; +export * from './useCreateAppMembershipDefaultMutation'; +export * from './useUpdateAppMembershipDefaultMutation'; +export * from './useDeleteAppMembershipDefaultMutation'; +export * from './useCreateOrgMembershipDefaultMutation'; +export * from './useUpdateOrgMembershipDefaultMutation'; +export * from './useDeleteOrgMembershipDefaultMutation'; +export * from './useCreateNodeTypeRegistryMutation'; +export * from './useUpdateNodeTypeRegistryMutation'; +export * from './useDeleteNodeTypeRegistryMutation'; export * from './useCreateAppLimitCapsDefaultMutation'; export * from './useUpdateAppLimitCapsDefaultMutation'; export * from './useDeleteAppLimitCapsDefaultMutation'; @@ -349,26 +368,19 @@ export * from './useDeleteAppLimitCapMutation'; export * from './useCreateOrgLimitCapMutation'; export * from './useUpdateOrgLimitCapMutation'; export * from './useDeleteOrgLimitCapMutation'; -export * from './useCreateMembershipTypeMutation'; -export * from './useUpdateMembershipTypeMutation'; -export * from './useDeleteMembershipTypeMutation'; -export * from './useCreateMigrateFileMutation'; -export * from './useCreateDevicesModuleMutation'; -export * from './useUpdateDevicesModuleMutation'; -export * from './useDeleteDevicesModuleMutation'; -export * from './useCreateNodeTypeRegistryMutation'; -export * from './useUpdateNodeTypeRegistryMutation'; -export * from './useDeleteNodeTypeRegistryMutation'; +export * from './useCreateUserConnectedAccountMutation'; export * from './useCreateAppLimitDefaultMutation'; export * from './useUpdateAppLimitDefaultMutation'; export * from './useDeleteAppLimitDefaultMutation'; export * from './useCreateOrgLimitDefaultMutation'; export * from './useUpdateOrgLimitDefaultMutation'; export * from './useDeleteOrgLimitDefaultMutation'; +export * from './useCreateAppLimitCreditCodeMutation'; +export * from './useUpdateAppLimitCreditCodeMutation'; +export * from './useDeleteAppLimitCreditCodeMutation'; export * from './useCreateAppLimitWarningMutation'; export * from './useUpdateAppLimitWarningMutation'; export * from './useDeleteAppLimitWarningMutation'; -export * from './useCreateUserConnectedAccountMutation'; export * from './useCreateCommitMutation'; export * from './useUpdateCommitMutation'; export * from './useDeleteCommitMutation'; @@ -378,23 +390,18 @@ export * from './useDeletePubkeySettingMutation'; export * from './useCreateRateLimitsModuleMutation'; export * from './useUpdateRateLimitsModuleMutation'; export * from './useDeleteRateLimitsModuleMutation'; -export * from './useCreateUsageSnapshotMutation'; -export * from './useUpdateUsageSnapshotMutation'; -export * from './useDeleteUsageSnapshotMutation'; -export * from './useCreateAppMembershipDefaultMutation'; -export * from './useUpdateAppMembershipDefaultMutation'; -export * from './useDeleteAppMembershipDefaultMutation'; -export * from './useCreateOrgMembershipDefaultMutation'; -export * from './useUpdateOrgMembershipDefaultMutation'; -export * from './useDeleteOrgMembershipDefaultMutation'; +export * from './useCreateMembershipTypeMutation'; +export * from './useUpdateMembershipTypeMutation'; +export * from './useDeleteMembershipTypeMutation'; export * from './useCreateRlsSettingMutation'; export * from './useUpdateRlsSettingMutation'; export * from './useDeleteRlsSettingMutation'; -export * from './useCreateAppLimitEventMutation'; -export * from './useCreateOrgLimitEventMutation'; export * from './useCreateRlsModuleMutation'; export * from './useUpdateRlsModuleMutation'; export * from './useDeleteRlsModuleMutation'; +export * from './useCreateAgentChatModuleMutation'; +export * from './useUpdateAgentChatModuleMutation'; +export * from './useDeleteAgentChatModuleMutation'; export * from './useCreateRateLimitMetersModuleMutation'; export * from './useUpdateRateLimitMetersModuleMutation'; export * from './useDeleteRateLimitMetersModuleMutation'; @@ -402,25 +409,31 @@ export * from './useCreatePlansModuleMutation'; export * from './useUpdatePlansModuleMutation'; export * from './useDeletePlansModuleMutation'; export * from './useCreateSqlActionMutation'; +export * from './useCreateAppLimitEventMutation'; +export * from './useUpdateAppLimitEventMutation'; +export * from './useDeleteAppLimitEventMutation'; +export * from './useCreateOrgLimitEventMutation'; +export * from './useUpdateOrgLimitEventMutation'; +export * from './useDeleteOrgLimitEventMutation'; export * from './useCreateDatabaseSettingMutation'; export * from './useUpdateDatabaseSettingMutation'; export * from './useDeleteDatabaseSettingMutation'; -export * from './useCreateBillingModuleMutation'; -export * from './useUpdateBillingModuleMutation'; -export * from './useDeleteBillingModuleMutation'; -export * from './useCreateAstMigrationMutation'; -export * from './useCreateUserMutation'; -export * from './useUpdateUserMutation'; -export * from './useDeleteUserMutation'; export * from './useCreateOrgMembershipSettingMutation'; export * from './useUpdateOrgMembershipSettingMutation'; export * from './useDeleteOrgMembershipSettingMutation'; -export * from './useCreateWebauthnSettingMutation'; -export * from './useUpdateWebauthnSettingMutation'; -export * from './useDeleteWebauthnSettingMutation'; export * from './useCreateAppMembershipMutation'; export * from './useUpdateAppMembershipMutation'; export * from './useDeleteAppMembershipMutation'; +export * from './useCreateUserMutation'; +export * from './useUpdateUserMutation'; +export * from './useDeleteUserMutation'; +export * from './useCreateAstMigrationMutation'; +export * from './useCreateWebauthnSettingMutation'; +export * from './useUpdateWebauthnSettingMutation'; +export * from './useDeleteWebauthnSettingMutation'; +export * from './useCreateBillingModuleMutation'; +export * from './useUpdateBillingModuleMutation'; +export * from './useDeleteBillingModuleMutation'; export * from './useCreateBillingProviderModuleMutation'; export * from './useUpdateBillingProviderModuleMutation'; export * from './useDeleteBillingProviderModuleMutation'; @@ -451,7 +464,10 @@ export * from './useResetPasswordMutation'; export * from './useRemoveNodeAtPathMutation'; export * from './useCopyTemplateToBlueprintMutation'; export * from './useProvisionSpatialRelationMutation'; +export * from './useSignInCrossOriginMutation'; export * from './useBootstrapUserMutation'; +export * from './useSignUpMutation'; +export * from './useSignInMutation'; export * from './useSetFieldOrderMutation'; export * from './useProvisionCheckConstraintMutation'; export * from './useProvisionUniqueConstraintMutation'; @@ -465,14 +481,11 @@ export * from './useUpdateNodeAtPathMutation'; export * from './useSetAndCommitMutation'; export * from './useProvisionRelationMutation'; export * from './useApplyRlsMutation'; -export * from './useSignInCrossOriginMutation'; export * from './useCreateUserDatabaseMutation'; export * from './useExtendTokenExpiresMutation'; export * from './useCreateApiKeyMutation'; -export * from './useSendVerificationEmailMutation'; -export * from './useForgotPasswordMutation'; -export * from './useSignUpMutation'; export * from './useRequestCrossOriginTokenMutation'; -export * from './useSignInMutation'; export * from './useProvisionTableMutation'; +export * from './useSendVerificationEmailMutation'; +export * from './useForgotPasswordMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentChatModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentChatModuleMutation.ts new file mode 100644 index 0000000000..f81134fee9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentChatModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for AgentChatModule + * @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 { agentChatModuleKeys } from '../query-keys'; +import { agentChatModuleMutationKeys } from '../mutation-keys'; +import type { + AgentChatModuleSelect, + AgentChatModuleWithRelations, + CreateAgentChatModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentChatModuleSelect, + AgentChatModuleWithRelations, + CreateAgentChatModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a AgentChatModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentChatModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentChatModuleMutation( + params: { + selection: { + fields: S & AgentChatModuleSelect; + } & HookStrictSelect, AgentChatModuleSelect>; + } & Omit< + UseMutationOptions< + { + createAgentChatModule: { + agentChatModule: InferSelectResult; + }; + }, + Error, + CreateAgentChatModuleInput['agentChatModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentChatModule: { + agentChatModule: InferSelectResult; + }; + }, + Error, + CreateAgentChatModuleInput['agentChatModule'] +>; +export function useCreateAgentChatModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentChatModuleMutationKeys.create(), + mutationFn: (data: CreateAgentChatModuleInput['agentChatModule']) => + getClient() + .agentChatModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentChatModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentMessageMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentMessageMutation.ts deleted file mode 100644 index e18f3054bc..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentMessageMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentMessageKeys } from '../query-keys'; -import { agentMessageMutationKeys } from '../mutation-keys'; -import type { - AgentMessageSelect, - AgentMessageWithRelations, - CreateAgentMessageInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AgentMessageSelect, - AgentMessageWithRelations, - CreateAgentMessageInput, -} from '../../orm/input-types'; -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAgentMessageMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAgentMessageMutation( - params: { - selection: { - fields: S & AgentMessageSelect; - } & HookStrictSelect, AgentMessageSelect>; - } & Omit< - UseMutationOptions< - { - createAgentMessage: { - agentMessage: InferSelectResult; - }; - }, - Error, - CreateAgentMessageInput['agentMessage'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAgentMessage: { - agentMessage: InferSelectResult; - }; - }, - Error, - CreateAgentMessageInput['agentMessage'] ->; -export function useCreateAgentMessageMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: agentMessageMutationKeys.create(), - mutationFn: (data: CreateAgentMessageInput['agentMessage']) => - getClient() - .agentMessage.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: agentMessageKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentTaskMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentTaskMutation.ts deleted file mode 100644 index e685c639fe..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentTaskMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentTaskKeys } from '../query-keys'; -import { agentTaskMutationKeys } from '../mutation-keys'; -import type { - AgentTaskSelect, - AgentTaskWithRelations, - CreateAgentTaskInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AgentTaskSelect, - AgentTaskWithRelations, - CreateAgentTaskInput, -} from '../../orm/input-types'; -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAgentTaskMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAgentTaskMutation( - params: { - selection: { - fields: S & AgentTaskSelect; - } & HookStrictSelect, AgentTaskSelect>; - } & Omit< - UseMutationOptions< - { - createAgentTask: { - agentTask: InferSelectResult; - }; - }, - Error, - CreateAgentTaskInput['agentTask'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAgentTask: { - agentTask: InferSelectResult; - }; - }, - Error, - CreateAgentTaskInput['agentTask'] ->; -export function useCreateAgentTaskMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: agentTaskMutationKeys.create(), - mutationFn: (data: CreateAgentTaskInput['agentTask']) => - getClient() - .agentTask.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: agentTaskKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentThreadMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentThreadMutation.ts deleted file mode 100644 index ca9a0d115a..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentThreadMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * @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 { agentThreadKeys } from '../query-keys'; -import { agentThreadMutationKeys } from '../mutation-keys'; -import type { - AgentThreadSelect, - AgentThreadWithRelations, - CreateAgentThreadInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AgentThreadSelect, - AgentThreadWithRelations, - CreateAgentThreadInput, -} from '../../orm/input-types'; -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAgentThreadMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAgentThreadMutation( - params: { - selection: { - fields: S & AgentThreadSelect; - } & HookStrictSelect, AgentThreadSelect>; - } & Omit< - UseMutationOptions< - { - createAgentThread: { - agentThread: InferSelectResult; - }; - }, - Error, - CreateAgentThreadInput['agentThread'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAgentThread: { - agentThread: InferSelectResult; - }; - }, - Error, - CreateAgentThreadInput['agentThread'] ->; -export function useCreateAgentThreadMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: agentThreadMutationKeys.create(), - mutationFn: (data: CreateAgentThreadInput['agentThread']) => - getClient() - .agentThread.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: agentThreadKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogAuthMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogAuthMutation.ts new file mode 100644 index 0000000000..c4243ed469 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogAuthMutation.ts @@ -0,0 +1,88 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import { auditLogAuthMutationKeys } from '../mutation-keys'; +import type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + CreateAuditLogAuthInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + CreateAuditLogAuthInput, +} from '../../orm/input-types'; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAuditLogAuthMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAuditLogAuthMutation( + params: { + selection: { + fields: S & AuditLogAuthSelect; + } & HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseMutationOptions< + { + createAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + CreateAuditLogAuthInput['auditLogAuth'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + CreateAuditLogAuthInput['auditLogAuth'] +>; +export function useCreateAuditLogAuthMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: auditLogAuthMutationKeys.create(), + mutationFn: (data: CreateAuditLogAuthInput['auditLogAuth']) => + getClient() + .auditLogAuth.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: auditLogAuthKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts deleted file mode 100644 index fdf4c7f212..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateAuditLogMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @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 { auditLogKeys } from '../query-keys'; -import { auditLogMutationKeys } from '../mutation-keys'; -import type { - AuditLogSelect, - AuditLogWithRelations, - CreateAuditLogInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AuditLogSelect, - AuditLogWithRelations, - CreateAuditLogInput, -} from '../../orm/input-types'; -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateAuditLogMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateAuditLogMutation( - params: { - selection: { - fields: S & AuditLogSelect; - } & HookStrictSelect, AuditLogSelect>; - } & Omit< - UseMutationOptions< - { - createAuditLog: { - auditLog: InferSelectResult; - }; - }, - Error, - CreateAuditLogInput['auditLog'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createAuditLog: { - auditLog: InferSelectResult; - }; - }, - Error, - CreateAuditLogInput['auditLog'] ->; -export function useCreateAuditLogMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: auditLogMutationKeys.create(), - mutationFn: (data: CreateAuditLogInput['auditLog']) => - getClient() - .auditLog.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: auditLogKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateComputeLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateComputeLogModuleMutation.ts new file mode 100644 index 0000000000..e22e941552 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateComputeLogModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ComputeLogModule + * @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 { computeLogModuleKeys } from '../query-keys'; +import { computeLogModuleMutationKeys } from '../mutation-keys'; +import type { + ComputeLogModuleSelect, + ComputeLogModuleWithRelations, + CreateComputeLogModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ComputeLogModuleSelect, + ComputeLogModuleWithRelations, + CreateComputeLogModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ComputeLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateComputeLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateComputeLogModuleMutation( + params: { + selection: { + fields: S & ComputeLogModuleSelect; + } & HookStrictSelect, ComputeLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + createComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }, + Error, + CreateComputeLogModuleInput['computeLogModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }, + Error, + CreateComputeLogModuleInput['computeLogModule'] +>; +export function useCreateComputeLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: computeLogModuleMutationKeys.create(), + mutationFn: (data: CreateComputeLogModuleInput['computeLogModule']) => + getClient() + .computeLogModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts new file mode 100644 index 0000000000..b80727d543 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsOrgModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @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 { configSecretsOrgModuleKeys } from '../query-keys'; +import { configSecretsOrgModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + CreateConfigSecretsOrgModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + CreateConfigSecretsOrgModuleInput, +} from '../../orm/input-types'; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateConfigSecretsOrgModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateConfigSecretsOrgModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsOrgModuleSelect; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseMutationOptions< + { + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + CreateConfigSecretsOrgModuleInput['configSecretsOrgModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + CreateConfigSecretsOrgModuleInput['configSecretsOrgModule'] +>; +export function useCreateConfigSecretsOrgModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsOrgModuleMutationKeys.create(), + mutationFn: (data: CreateConfigSecretsOrgModuleInput['configSecretsOrgModule']) => + getClient() + .configSecretsOrgModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts new file mode 100644 index 0000000000..e3765bf61b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateConfigSecretsUserModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for ConfigSecretsUserModule + * @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 { configSecretsUserModuleKeys } from '../query-keys'; +import { configSecretsUserModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + CreateConfigSecretsUserModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + CreateConfigSecretsUserModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a ConfigSecretsUserModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateConfigSecretsUserModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateConfigSecretsUserModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsUserModuleSelect; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseMutationOptions< + { + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + CreateConfigSecretsUserModuleInput['configSecretsUserModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + CreateConfigSecretsUserModuleInput['configSecretsUserModule'] +>; +export function useCreateConfigSecretsUserModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsUserModuleMutationKeys.create(), + mutationFn: (data: CreateConfigSecretsUserModuleInput['configSecretsUserModule']) => + getClient() + .configSecretsUserModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDbUsageModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDbUsageModuleMutation.ts new file mode 100644 index 0000000000..afc3b6775e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDbUsageModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for DbUsageModule + * @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 { dbUsageModuleKeys } from '../query-keys'; +import { dbUsageModuleMutationKeys } from '../mutation-keys'; +import type { + DbUsageModuleSelect, + DbUsageModuleWithRelations, + CreateDbUsageModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DbUsageModuleSelect, + DbUsageModuleWithRelations, + CreateDbUsageModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DbUsageModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDbUsageModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDbUsageModuleMutation( + params: { + selection: { + fields: S & DbUsageModuleSelect; + } & HookStrictSelect, DbUsageModuleSelect>; + } & Omit< + UseMutationOptions< + { + createDbUsageModule: { + dbUsageModule: InferSelectResult; + }; + }, + Error, + CreateDbUsageModuleInput['dbUsageModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDbUsageModule: { + dbUsageModule: InferSelectResult; + }; + }, + Error, + CreateDbUsageModuleInput['dbUsageModule'] +>; +export function useCreateDbUsageModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbUsageModuleMutationKeys.create(), + mutationFn: (data: CreateDbUsageModuleInput['dbUsageModule']) => + getClient() + .dbUsageModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: dbUsageModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts deleted file mode 100644 index c68fbc4d65..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Create mutation hook for EncryptedSecretsModule - * @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 { encryptedSecretsModuleKeys } from '../query-keys'; -import { encryptedSecretsModuleMutationKeys } from '../mutation-keys'; -import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - CreateEncryptedSecretsModuleInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - CreateEncryptedSecretsModuleInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a EncryptedSecretsModule - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateEncryptedSecretsModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateEncryptedSecretsModuleMutation( - params: { - selection: { - fields: S & EncryptedSecretsModuleSelect; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; - } & Omit< - UseMutationOptions< - { - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }, - Error, - CreateEncryptedSecretsModuleInput['encryptedSecretsModule'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }, - Error, - CreateEncryptedSecretsModuleInput['encryptedSecretsModule'] ->; -export function useCreateEncryptedSecretsModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: encryptedSecretsModuleMutationKeys.create(), - mutationFn: (data: CreateEncryptedSecretsModuleInput['encryptedSecretsModule']) => - getClient() - .encryptedSecretsModule.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateInferenceLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateInferenceLogModuleMutation.ts new file mode 100644 index 0000000000..9e6544177a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateInferenceLogModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for InferenceLogModule + * @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 { inferenceLogModuleKeys } from '../query-keys'; +import { inferenceLogModuleMutationKeys } from '../mutation-keys'; +import type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + CreateInferenceLogModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + CreateInferenceLogModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a InferenceLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateInferenceLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateInferenceLogModuleMutation( + params: { + selection: { + fields: S & InferenceLogModuleSelect; + } & HookStrictSelect, InferenceLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }, + Error, + CreateInferenceLogModuleInput['inferenceLogModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }, + Error, + CreateInferenceLogModuleInput['inferenceLogModule'] +>; +export function useCreateInferenceLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: inferenceLogModuleMutationKeys.create(), + mutationFn: (data: CreateInferenceLogModuleInput['inferenceLogModule']) => + getClient() + .inferenceLogModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateStorageLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateStorageLogModuleMutation.ts new file mode 100644 index 0000000000..e0b1aeb598 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateStorageLogModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for StorageLogModule + * @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 { storageLogModuleKeys } from '../query-keys'; +import { storageLogModuleMutationKeys } from '../mutation-keys'; +import type { + StorageLogModuleSelect, + StorageLogModuleWithRelations, + CreateStorageLogModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + StorageLogModuleSelect, + StorageLogModuleWithRelations, + CreateStorageLogModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a StorageLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateStorageLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateStorageLogModuleMutation( + params: { + selection: { + fields: S & StorageLogModuleSelect; + } & HookStrictSelect, StorageLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + createStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }, + Error, + CreateStorageLogModuleInput['storageLogModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }, + Error, + CreateStorageLogModuleInput['storageLogModule'] +>; +export function useCreateStorageLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: storageLogModuleMutationKeys.create(), + mutationFn: (data: CreateStorageLogModuleInput['storageLogModule']) => + getClient() + .storageLogModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateTransferLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateTransferLogModuleMutation.ts new file mode 100644 index 0000000000..b4fbccfdbb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateTransferLogModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for TransferLogModule + * @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 { transferLogModuleKeys } from '../query-keys'; +import { transferLogModuleMutationKeys } from '../mutation-keys'; +import type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, + CreateTransferLogModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, + CreateTransferLogModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a TransferLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateTransferLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateTransferLogModuleMutation( + params: { + selection: { + fields: S & TransferLogModuleSelect; + } & HookStrictSelect, TransferLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + createTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }, + Error, + CreateTransferLogModuleInput['transferLogModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }, + Error, + CreateTransferLogModuleInput['transferLogModule'] +>; +export function useCreateTransferLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: transferLogModuleMutationKeys.create(), + mutationFn: (data: CreateTransferLogModuleInput['transferLogModule']) => + getClient() + .transferLogModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUsageSnapshotMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUsageSnapshotMutation.ts deleted file mode 100644 index 0dc6f30009..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateUsageSnapshotMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * @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 { usageSnapshotKeys } from '../query-keys'; -import { usageSnapshotMutationKeys } from '../mutation-keys'; -import type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - CreateUsageSnapshotInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - CreateUsageSnapshotInput, -} from '../../orm/input-types'; -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateUsageSnapshotMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateUsageSnapshotMutation( - params: { - selection: { - fields: S & UsageSnapshotSelect; - } & HookStrictSelect, UsageSnapshotSelect>; - } & Omit< - UseMutationOptions< - { - createUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - CreateUsageSnapshotInput['usageSnapshot'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - CreateUsageSnapshotInput['usageSnapshot'] ->; -export function useCreateUsageSnapshotMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: usageSnapshotMutationKeys.create(), - mutationFn: (data: CreateUsageSnapshotInput['usageSnapshot']) => - getClient() - .usageSnapshot.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentChatModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentChatModuleMutation.ts new file mode 100644 index 0000000000..277c0c325b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentChatModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for AgentChatModule + * @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 { agentChatModuleKeys } from '../query-keys'; +import { agentChatModuleMutationKeys } from '../mutation-keys'; +import type { AgentChatModuleSelect, AgentChatModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentChatModuleSelect, AgentChatModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a AgentChatModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentChatModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentChatModuleMutation( + params: { + selection: { + fields: S & AgentChatModuleSelect; + } & HookStrictSelect, AgentChatModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentChatModule: { + agentChatModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentChatModule: { + agentChatModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentChatModuleMutation( + 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: agentChatModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentChatModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentChatModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentChatModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentMessageMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentMessageMutation.ts deleted file mode 100644 index d86415ae89..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentMessageMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentMessageKeys } from '../query-keys'; -import { agentMessageMutationKeys } from '../mutation-keys'; -import type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAgentMessageMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAgentMessageMutation( - params: { - selection: { - fields: S & AgentMessageSelect; - } & HookStrictSelect, AgentMessageSelect>; - } & Omit< - UseMutationOptions< - { - deleteAgentMessage: { - agentMessage: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAgentMessage: { - agentMessage: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAgentMessageMutation( - 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: agentMessageMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .agentMessage.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: agentMessageKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: agentMessageKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentTaskMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentTaskMutation.ts deleted file mode 100644 index 27102854d1..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentTaskMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentTaskKeys } from '../query-keys'; -import { agentTaskMutationKeys } from '../mutation-keys'; -import type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAgentTaskMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAgentTaskMutation( - params: { - selection: { - fields: S & AgentTaskSelect; - } & HookStrictSelect, AgentTaskSelect>; - } & Omit< - UseMutationOptions< - { - deleteAgentTask: { - agentTask: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAgentTask: { - agentTask: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAgentTaskMutation( - 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: agentTaskMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .agentTask.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: agentTaskKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: agentTaskKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentThreadMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentThreadMutation.ts deleted file mode 100644 index 0e2a735c8b..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentThreadMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * @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 { agentThreadKeys } from '../query-keys'; -import { agentThreadMutationKeys } from '../mutation-keys'; -import type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteAgentThreadMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteAgentThreadMutation( - params: { - selection: { - fields: S & AgentThreadSelect; - } & HookStrictSelect, AgentThreadSelect>; - } & Omit< - UseMutationOptions< - { - deleteAgentThread: { - agentThread: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteAgentThread: { - agentThread: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteAgentThreadMutation( - 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: agentThreadMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .agentThread.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: agentThreadKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: agentThreadKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts new file mode 100644 index 0000000000..2c97fe2946 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAppLimitEventMutation.ts @@ -0,0 +1,98 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppLimitEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppLimitEventMutation( + params: { + selection: { + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppLimitEventMutation( + 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: appLimitEventMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appLimitEvent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogAuthMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogAuthMutation.ts new file mode 100644 index 0000000000..6ccb6a99bf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAuditLogAuthMutation.ts @@ -0,0 +1,98 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import { auditLogAuthMutationKeys } from '../mutation-keys'; +import type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAuditLogAuthMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAuditLogAuthMutation( + params: { + selection: { + fields: S & AuditLogAuthSelect; + } & HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseMutationOptions< + { + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAuditLogAuthMutation( + 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: auditLogAuthMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .auditLogAuth.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: auditLogAuthKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: auditLogAuthKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteComputeLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteComputeLogModuleMutation.ts new file mode 100644 index 0000000000..c859c75ca5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteComputeLogModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for ComputeLogModule + * @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 { computeLogModuleKeys } from '../query-keys'; +import { computeLogModuleMutationKeys } from '../mutation-keys'; +import type { ComputeLogModuleSelect, ComputeLogModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ComputeLogModuleSelect, ComputeLogModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a ComputeLogModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteComputeLogModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteComputeLogModuleMutation( + params: { + selection: { + fields: S & ComputeLogModuleSelect; + } & HookStrictSelect, ComputeLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteComputeLogModuleMutation( + 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: computeLogModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .computeLogModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: computeLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts new file mode 100644 index 0000000000..a1cb4c3f0f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsOrgModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @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 { configSecretsOrgModuleKeys } from '../query-keys'; +import { configSecretsOrgModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, +} from '../../orm/input-types'; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteConfigSecretsOrgModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteConfigSecretsOrgModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsOrgModuleSelect; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteConfigSecretsOrgModuleMutation( + 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: configSecretsOrgModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .configSecretsOrgModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: configSecretsOrgModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts new file mode 100644 index 0000000000..ffd64e8cfc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteConfigSecretsUserModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for ConfigSecretsUserModule + * @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 { configSecretsUserModuleKeys } from '../query-keys'; +import { configSecretsUserModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a ConfigSecretsUserModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteConfigSecretsUserModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteConfigSecretsUserModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsUserModuleSelect; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteConfigSecretsUserModuleMutation( + 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: configSecretsUserModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .configSecretsUserModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: configSecretsUserModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDbUsageModuleMutation.ts similarity index 55% rename from sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts rename to sdk/constructive-react/src/public/hooks/mutations/useDeleteDbUsageModuleMutation.ts index 6abac002e4..ba7e389321 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDbUsageModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * Delete mutation hook for DbUsageModule * @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 { auditLogKeys } from '../query-keys'; -import { auditLogMutationKeys } from '../mutation-keys'; -import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +import { dbUsageModuleKeys } from '../query-keys'; +import { dbUsageModuleMutationKeys } from '../mutation-keys'; +import type { DbUsageModuleSelect, DbUsageModuleWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; +export type { DbUsageModuleSelect, DbUsageModuleWithRelations } from '../../orm/input-types'; /** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * Mutation hook for deleting a DbUsageModule with typed selection * * @example * ```tsx - * const { mutate, isPending } = useDeleteAuditLogMutation({ + * const { mutate, isPending } = useDeleteDbUsageModuleMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteAuditLogMutation( +export function useDeleteDbUsageModuleMutation( params: { selection: { - fields: S & AuditLogSelect; - } & HookStrictSelect, AuditLogSelect>; + fields: S & DbUsageModuleSelect; + } & HookStrictSelect, DbUsageModuleSelect>; } & Omit< UseMutationOptions< { - deleteAuditLog: { - auditLog: InferSelectResult; + deleteDbUsageModule: { + dbUsageModule: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteAuditLogMutation( > ): UseMutationResult< { - deleteAuditLog: { - auditLog: InferSelectResult; + deleteDbUsageModule: { + dbUsageModule: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteAuditLogMutation( id: string; } >; -export function useDeleteAuditLogMutation( +export function useDeleteDbUsageModuleMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteAuditLogMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: auditLogMutationKeys.all, + mutationKey: dbUsageModuleMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .auditLog.delete({ + .dbUsageModule.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteAuditLogMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: auditLogKeys.detail(variables.id), + queryKey: dbUsageModuleKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: auditLogKeys.lists(), + queryKey: dbUsageModuleKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInferenceLogModuleMutation.ts similarity index 53% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts rename to sdk/constructive-react/src/public/hooks/mutations/useDeleteInferenceLogModuleMutation.ts index 9177e8d372..0fbddb70fc 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteInferenceLogModuleMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for EncryptedSecretsModule + * Delete mutation hook for InferenceLogModule * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,39 +9,39 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { encryptedSecretsModuleKeys } from '../query-keys'; -import { encryptedSecretsModuleMutationKeys } from '../mutation-keys'; +import { inferenceLogModuleKeys } from '../query-keys'; +import { inferenceLogModuleMutationKeys } from '../mutation-keys'; import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, } from '../../orm/input-types'; /** - * Mutation hook for deleting a EncryptedSecretsModule with typed selection + * Mutation hook for deleting a InferenceLogModule with typed selection * * @example * ```tsx - * const { mutate, isPending } = useDeleteEncryptedSecretsModuleMutation({ + * const { mutate, isPending } = useDeleteInferenceLogModuleMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteEncryptedSecretsModuleMutation( +export function useDeleteInferenceLogModuleMutation( params: { selection: { - fields: S & EncryptedSecretsModuleSelect; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; + fields: S & InferenceLogModuleSelect; + } & HookStrictSelect, InferenceLogModuleSelect>; } & Omit< UseMutationOptions< { - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; }; }, Error, @@ -53,8 +53,8 @@ export function useDeleteEncryptedSecretsModuleMutation ): UseMutationResult< { - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; }; }, Error, @@ -62,9 +62,9 @@ export function useDeleteEncryptedSecretsModuleMutation; -export function useDeleteEncryptedSecretsModuleMutation( +export function useDeleteInferenceLogModuleMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -76,15 +76,15 @@ export function useDeleteEncryptedSecretsModuleMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: encryptedSecretsModuleMutationKeys.all, + mutationKey: inferenceLogModuleMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .encryptedSecretsModule.delete({ + .inferenceLogModule.delete({ where: { id, }, @@ -93,10 +93,10 @@ export function useDeleteEncryptedSecretsModuleMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: encryptedSecretsModuleKeys.detail(variables.id), + queryKey: inferenceLogModuleKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.lists(), + queryKey: inferenceLogModuleKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts new file mode 100644 index 0000000000..a0a4a3b2a7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitEventMutation.ts @@ -0,0 +1,98 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgLimitEventMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgLimitEventMutation( + params: { + selection: { + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgLimitEventMutation( + 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: orgLimitEventMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgLimitEvent.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteStorageLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteStorageLogModuleMutation.ts new file mode 100644 index 0000000000..08082e98e3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteStorageLogModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for StorageLogModule + * @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 { storageLogModuleKeys } from '../query-keys'; +import { storageLogModuleMutationKeys } from '../mutation-keys'; +import type { StorageLogModuleSelect, StorageLogModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StorageLogModuleSelect, StorageLogModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a StorageLogModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteStorageLogModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteStorageLogModuleMutation( + params: { + selection: { + fields: S & StorageLogModuleSelect; + } & HookStrictSelect, StorageLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteStorageLogModuleMutation( + 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: storageLogModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .storageLogModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: storageLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteTransferLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTransferLogModuleMutation.ts new file mode 100644 index 0000000000..58f900acf8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteTransferLogModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for TransferLogModule + * @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 { transferLogModuleKeys } from '../query-keys'; +import { transferLogModuleMutationKeys } from '../mutation-keys'; +import type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a TransferLogModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteTransferLogModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteTransferLogModuleMutation( + params: { + selection: { + fields: S & TransferLogModuleSelect; + } & HookStrictSelect, TransferLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteTransferLogModuleMutation( + 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: transferLogModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .transferLogModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: transferLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUsageSnapshotMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteUsageSnapshotMutation.ts deleted file mode 100644 index 91f5fc5ee6..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUsageSnapshotMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * @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 { usageSnapshotKeys } from '../query-keys'; -import { usageSnapshotMutationKeys } from '../mutation-keys'; -import type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types'; -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteUsageSnapshotMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteUsageSnapshotMutation( - params: { - selection: { - fields: S & UsageSnapshotSelect; - } & HookStrictSelect, UsageSnapshotSelect>; - } & Omit< - UseMutationOptions< - { - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteUsageSnapshotMutation( - 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: usageSnapshotMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .usageSnapshot.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: usageSnapshotKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentChatModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentChatModuleMutation.ts new file mode 100644 index 0000000000..89dfdb7727 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentChatModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for AgentChatModule + * @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 { agentChatModuleKeys } from '../query-keys'; +import { agentChatModuleMutationKeys } from '../mutation-keys'; +import type { + AgentChatModuleSelect, + AgentChatModuleWithRelations, + AgentChatModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentChatModuleSelect, + AgentChatModuleWithRelations, + AgentChatModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a AgentChatModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentChatModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentChatModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentChatModuleMutation( + params: { + selection: { + fields: S & AgentChatModuleSelect; + } & HookStrictSelect, AgentChatModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentChatModule: { + agentChatModule: InferSelectResult; + }; + }, + Error, + { + id: string; + agentChatModulePatch: AgentChatModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentChatModule: { + agentChatModule: InferSelectResult; + }; + }, + Error, + { + id: string; + agentChatModulePatch: AgentChatModulePatch; + } +>; +export function useUpdateAgentChatModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentChatModulePatch: AgentChatModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentChatModuleMutationKeys.all, + mutationFn: ({ + id, + agentChatModulePatch, + }: { + id: string; + agentChatModulePatch: AgentChatModulePatch; + }) => + getClient() + .agentChatModule.update({ + where: { + id, + }, + data: agentChatModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentChatModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentChatModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentMessageMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentMessageMutation.ts deleted file mode 100644 index bb5b91999b..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentMessageMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentMessageKeys } from '../query-keys'; -import { agentMessageMutationKeys } from '../mutation-keys'; -import type { - AgentMessageSelect, - AgentMessageWithRelations, - AgentMessagePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AgentMessageSelect, - AgentMessageWithRelations, - AgentMessagePatch, -} from '../../orm/input-types'; -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAgentMessageMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', agentMessagePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAgentMessageMutation( - params: { - selection: { - fields: S & AgentMessageSelect; - } & HookStrictSelect, AgentMessageSelect>; - } & Omit< - UseMutationOptions< - { - updateAgentMessage: { - agentMessage: InferSelectResult; - }; - }, - Error, - { - id: string; - agentMessagePatch: AgentMessagePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAgentMessage: { - agentMessage: InferSelectResult; - }; - }, - Error, - { - id: string; - agentMessagePatch: AgentMessagePatch; - } ->; -export function useUpdateAgentMessageMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - agentMessagePatch: AgentMessagePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: agentMessageMutationKeys.all, - mutationFn: ({ id, agentMessagePatch }: { id: string; agentMessagePatch: AgentMessagePatch }) => - getClient() - .agentMessage.update({ - where: { - id, - }, - data: agentMessagePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: agentMessageKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: agentMessageKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentTaskMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentTaskMutation.ts deleted file mode 100644 index a52684732d..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentTaskMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentTaskKeys } from '../query-keys'; -import { agentTaskMutationKeys } from '../mutation-keys'; -import type { - AgentTaskSelect, - AgentTaskWithRelations, - AgentTaskPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AgentTaskSelect, - AgentTaskWithRelations, - AgentTaskPatch, -} from '../../orm/input-types'; -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAgentTaskMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', agentTaskPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAgentTaskMutation( - params: { - selection: { - fields: S & AgentTaskSelect; - } & HookStrictSelect, AgentTaskSelect>; - } & Omit< - UseMutationOptions< - { - updateAgentTask: { - agentTask: InferSelectResult; - }; - }, - Error, - { - id: string; - agentTaskPatch: AgentTaskPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAgentTask: { - agentTask: InferSelectResult; - }; - }, - Error, - { - id: string; - agentTaskPatch: AgentTaskPatch; - } ->; -export function useUpdateAgentTaskMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - agentTaskPatch: AgentTaskPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: agentTaskMutationKeys.all, - mutationFn: ({ id, agentTaskPatch }: { id: string; agentTaskPatch: AgentTaskPatch }) => - getClient() - .agentTask.update({ - where: { - id, - }, - data: agentTaskPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: agentTaskKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: agentTaskKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentThreadMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentThreadMutation.ts deleted file mode 100644 index a616adb320..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentThreadMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * @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 { agentThreadKeys } from '../query-keys'; -import { agentThreadMutationKeys } from '../mutation-keys'; -import type { - AgentThreadSelect, - AgentThreadWithRelations, - AgentThreadPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - AgentThreadSelect, - AgentThreadWithRelations, - AgentThreadPatch, -} from '../../orm/input-types'; -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAgentThreadMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', agentThreadPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAgentThreadMutation( - params: { - selection: { - fields: S & AgentThreadSelect; - } & HookStrictSelect, AgentThreadSelect>; - } & Omit< - UseMutationOptions< - { - updateAgentThread: { - agentThread: InferSelectResult; - }; - }, - Error, - { - id: string; - agentThreadPatch: AgentThreadPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAgentThread: { - agentThread: InferSelectResult; - }; - }, - Error, - { - id: string; - agentThreadPatch: AgentThreadPatch; - } ->; -export function useUpdateAgentThreadMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - agentThreadPatch: AgentThreadPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: agentThreadMutationKeys.all, - mutationFn: ({ id, agentThreadPatch }: { id: string; agentThreadPatch: AgentThreadPatch }) => - getClient() - .agentThread.update({ - where: { - id, - }, - data: agentThreadPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: agentThreadKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: agentThreadKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts new file mode 100644 index 0000000000..7234a1d236 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAppLimitEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventPatch, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appLimitEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppLimitEventMutation( + params: { + selection: { + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } +>; +export function useUpdateAppLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appLimitEventPatch: AppLimitEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitEventMutationKeys.all, + mutationFn: ({ + id, + appLimitEventPatch, + }: { + id: string; + appLimitEventPatch: AppLimitEventPatch; + }) => + getClient() + .appLimitEvent.update({ + where: { + id, + }, + data: appLimitEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogAuthMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogAuthMutation.ts new file mode 100644 index 0000000000..5d807d05ad --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogAuthMutation.ts @@ -0,0 +1,110 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import { auditLogAuthMutationKeys } from '../mutation-keys'; +import type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + AuditLogAuthPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + AuditLogAuthPatch, +} from '../../orm/input-types'; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAuditLogAuthMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', auditLogAuthPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAuditLogAuthMutation( + params: { + selection: { + fields: S & AuditLogAuthSelect; + } & HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseMutationOptions< + { + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + { + id: string; + auditLogAuthPatch: AuditLogAuthPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }, + Error, + { + id: string; + auditLogAuthPatch: AuditLogAuthPatch; + } +>; +export function useUpdateAuditLogAuthMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + auditLogAuthPatch: AuditLogAuthPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: auditLogAuthMutationKeys.all, + mutationFn: ({ id, auditLogAuthPatch }: { id: string; auditLogAuthPatch: AuditLogAuthPatch }) => + getClient() + .auditLogAuth.update({ + where: { + id, + }, + data: auditLogAuthPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: auditLogAuthKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: auditLogAuthKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts deleted file mode 100644 index 94417ca87d..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAuditLogMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @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 { auditLogKeys } from '../query-keys'; -import { auditLogMutationKeys } from '../mutation-keys'; -import type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AuditLogSelect, AuditLogWithRelations, AuditLogPatch } from '../../orm/input-types'; -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateAuditLogMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', auditLogPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateAuditLogMutation( - params: { - selection: { - fields: S & AuditLogSelect; - } & HookStrictSelect, AuditLogSelect>; - } & Omit< - UseMutationOptions< - { - updateAuditLog: { - auditLog: InferSelectResult; - }; - }, - Error, - { - id: string; - auditLogPatch: AuditLogPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateAuditLog: { - auditLog: InferSelectResult; - }; - }, - Error, - { - id: string; - auditLogPatch: AuditLogPatch; - } ->; -export function useUpdateAuditLogMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - auditLogPatch: AuditLogPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: auditLogMutationKeys.all, - mutationFn: ({ id, auditLogPatch }: { id: string; auditLogPatch: AuditLogPatch }) => - getClient() - .auditLog.update({ - where: { - id, - }, - data: auditLogPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: auditLogKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: auditLogKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateComputeLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateComputeLogModuleMutation.ts new file mode 100644 index 0000000000..76dd3c4c8d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateComputeLogModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ComputeLogModule + * @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 { computeLogModuleKeys } from '../query-keys'; +import { computeLogModuleMutationKeys } from '../mutation-keys'; +import type { + ComputeLogModuleSelect, + ComputeLogModuleWithRelations, + ComputeLogModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ComputeLogModuleSelect, + ComputeLogModuleWithRelations, + ComputeLogModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ComputeLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateComputeLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', computeLogModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateComputeLogModuleMutation( + params: { + selection: { + fields: S & ComputeLogModuleSelect; + } & HookStrictSelect, ComputeLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + computeLogModulePatch: ComputeLogModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + computeLogModulePatch: ComputeLogModulePatch; + } +>; +export function useUpdateComputeLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + computeLogModulePatch: ComputeLogModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: computeLogModuleMutationKeys.all, + mutationFn: ({ + id, + computeLogModulePatch, + }: { + id: string; + computeLogModulePatch: ComputeLogModulePatch; + }) => + getClient() + .computeLogModule.update({ + where: { + id, + }, + data: computeLogModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: computeLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts new file mode 100644 index 0000000000..6d86de1feb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsOrgModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @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 { configSecretsOrgModuleKeys } from '../query-keys'; +import { configSecretsOrgModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModulePatch, +} from '../../orm/input-types'; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateConfigSecretsOrgModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', configSecretsOrgModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateConfigSecretsOrgModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsOrgModuleSelect; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + { + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }, + Error, + { + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + } +>; +export function useUpdateConfigSecretsOrgModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsOrgModuleMutationKeys.all, + mutationFn: ({ + id, + configSecretsOrgModulePatch, + }: { + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; + }) => + getClient() + .configSecretsOrgModule.update({ + where: { + id, + }, + data: configSecretsOrgModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configSecretsOrgModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts new file mode 100644 index 0000000000..ab9482f3fe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateConfigSecretsUserModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for ConfigSecretsUserModule + * @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 { configSecretsUserModuleKeys } from '../query-keys'; +import { configSecretsUserModuleMutationKeys } from '../mutation-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a ConfigSecretsUserModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateConfigSecretsUserModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', configSecretsUserModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateConfigSecretsUserModuleMutation( + params: { + selection: { + fields: S & ConfigSecretsUserModuleSelect; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + { + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }, + Error, + { + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + } +>; +export function useUpdateConfigSecretsUserModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: configSecretsUserModuleMutationKeys.all, + mutationFn: ({ + id, + configSecretsUserModulePatch, + }: { + id: string; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; + }) => + getClient() + .configSecretsUserModule.update({ + where: { + id, + }, + data: configSecretsUserModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: configSecretsUserModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDbUsageModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDbUsageModuleMutation.ts new file mode 100644 index 0000000000..b725657cf7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDbUsageModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for DbUsageModule + * @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 { dbUsageModuleKeys } from '../query-keys'; +import { dbUsageModuleMutationKeys } from '../mutation-keys'; +import type { + DbUsageModuleSelect, + DbUsageModuleWithRelations, + DbUsageModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DbUsageModuleSelect, + DbUsageModuleWithRelations, + DbUsageModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a DbUsageModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDbUsageModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', dbUsageModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDbUsageModuleMutation( + params: { + selection: { + fields: S & DbUsageModuleSelect; + } & HookStrictSelect, DbUsageModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateDbUsageModule: { + dbUsageModule: InferSelectResult; + }; + }, + Error, + { + id: string; + dbUsageModulePatch: DbUsageModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDbUsageModule: { + dbUsageModule: InferSelectResult; + }; + }, + Error, + { + id: string; + dbUsageModulePatch: DbUsageModulePatch; + } +>; +export function useUpdateDbUsageModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + dbUsageModulePatch: DbUsageModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: dbUsageModuleMutationKeys.all, + mutationFn: ({ + id, + dbUsageModulePatch, + }: { + id: string; + dbUsageModulePatch: DbUsageModulePatch; + }) => + getClient() + .dbUsageModule.update({ + where: { + id, + }, + data: dbUsageModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: dbUsageModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: dbUsageModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts deleted file mode 100644 index 9c6476ff29..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Update mutation hook for EncryptedSecretsModule - * @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 { encryptedSecretsModuleKeys } from '../query-keys'; -import { encryptedSecretsModuleMutationKeys } from '../mutation-keys'; -import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModulePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModulePatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a EncryptedSecretsModule - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateEncryptedSecretsModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', encryptedSecretsModulePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateEncryptedSecretsModuleMutation( - params: { - selection: { - fields: S & EncryptedSecretsModuleSelect; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; - } & Omit< - UseMutationOptions< - { - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }, - Error, - { - id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }, - Error, - { - id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; - } ->; -export function useUpdateEncryptedSecretsModuleMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: encryptedSecretsModuleMutationKeys.all, - mutationFn: ({ - id, - encryptedSecretsModulePatch, - }: { - id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; - }) => - getClient() - .encryptedSecretsModule.update({ - where: { - id, - }, - data: encryptedSecretsModulePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: encryptedSecretsModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateInferenceLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInferenceLogModuleMutation.ts new file mode 100644 index 0000000000..29d5bb0b3e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateInferenceLogModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for InferenceLogModule + * @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 { inferenceLogModuleKeys } from '../query-keys'; +import { inferenceLogModuleMutationKeys } from '../mutation-keys'; +import type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + InferenceLogModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + InferenceLogModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a InferenceLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateInferenceLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', inferenceLogModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateInferenceLogModuleMutation( + params: { + selection: { + fields: S & InferenceLogModuleSelect; + } & HookStrictSelect, InferenceLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; + } +>; +export function useUpdateInferenceLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: inferenceLogModuleMutationKeys.all, + mutationFn: ({ + id, + inferenceLogModulePatch, + }: { + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; + }) => + getClient() + .inferenceLogModule.update({ + where: { + id, + }, + data: inferenceLogModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: inferenceLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts new file mode 100644 index 0000000000..6809f97605 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitEventMutation.ts @@ -0,0 +1,116 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventPatch, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitEventPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitEventMutation( + params: { + selection: { + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } +>; +export function useUpdateOrgLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitEventMutationKeys.all, + mutationFn: ({ + id, + orgLimitEventPatch, + }: { + id: string; + orgLimitEventPatch: OrgLimitEventPatch; + }) => + getClient() + .orgLimitEvent.update({ + where: { + id, + }, + data: orgLimitEventPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateStorageLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateStorageLogModuleMutation.ts new file mode 100644 index 0000000000..6819bcf8ea --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateStorageLogModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for StorageLogModule + * @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 { storageLogModuleKeys } from '../query-keys'; +import { storageLogModuleMutationKeys } from '../mutation-keys'; +import type { + StorageLogModuleSelect, + StorageLogModuleWithRelations, + StorageLogModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + StorageLogModuleSelect, + StorageLogModuleWithRelations, + StorageLogModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a StorageLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateStorageLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', storageLogModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateStorageLogModuleMutation( + params: { + selection: { + fields: S & StorageLogModuleSelect; + } & HookStrictSelect, StorageLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + storageLogModulePatch: StorageLogModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + storageLogModulePatch: StorageLogModulePatch; + } +>; +export function useUpdateStorageLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + storageLogModulePatch: StorageLogModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: storageLogModuleMutationKeys.all, + mutationFn: ({ + id, + storageLogModulePatch, + }: { + id: string; + storageLogModulePatch: StorageLogModulePatch; + }) => + getClient() + .storageLogModule.update({ + where: { + id, + }, + data: storageLogModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: storageLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateTransferLogModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTransferLogModuleMutation.ts new file mode 100644 index 0000000000..6c58951e47 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateTransferLogModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for TransferLogModule + * @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 { transferLogModuleKeys } from '../query-keys'; +import { transferLogModuleMutationKeys } from '../mutation-keys'; +import type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, + TransferLogModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, + TransferLogModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a TransferLogModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateTransferLogModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', transferLogModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateTransferLogModuleMutation( + params: { + selection: { + fields: S & TransferLogModuleSelect; + } & HookStrictSelect, TransferLogModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + transferLogModulePatch: TransferLogModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }, + Error, + { + id: string; + transferLogModulePatch: TransferLogModulePatch; + } +>; +export function useUpdateTransferLogModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + transferLogModulePatch: TransferLogModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: transferLogModuleMutationKeys.all, + mutationFn: ({ + id, + transferLogModulePatch, + }: { + id: string; + transferLogModulePatch: TransferLogModulePatch; + }) => + getClient() + .transferLogModule.update({ + where: { + id, + }, + data: transferLogModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: transferLogModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUsageSnapshotMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateUsageSnapshotMutation.ts deleted file mode 100644 index acc705d60b..0000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUsageSnapshotMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * @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 { usageSnapshotKeys } from '../query-keys'; -import { usageSnapshotMutationKeys } from '../mutation-keys'; -import type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - UsageSnapshotPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - UsageSnapshotPatch, -} from '../../orm/input-types'; -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateUsageSnapshotMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', usageSnapshotPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateUsageSnapshotMutation( - params: { - selection: { - fields: S & UsageSnapshotSelect; - } & HookStrictSelect, UsageSnapshotSelect>; - } & Omit< - UseMutationOptions< - { - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - { - id: string; - usageSnapshotPatch: UsageSnapshotPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }, - Error, - { - id: string; - usageSnapshotPatch: UsageSnapshotPatch; - } ->; -export function useUpdateUsageSnapshotMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - usageSnapshotPatch: UsageSnapshotPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: usageSnapshotMutationKeys.all, - mutationFn: ({ - id, - usageSnapshotPatch, - }: { - id: string; - usageSnapshotPatch: UsageSnapshotPatch; - }) => - getClient() - .usageSnapshot.update({ - where: { - id, - }, - data: usageSnapshotPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: usageSnapshotKeys.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 ee62d4af5f..db72d24828 100644 --- a/sdk/constructive-react/src/public/hooks/queries/index.ts +++ b/sdk/constructive-react/src/public/hooks/queries/index.ts @@ -6,12 +6,12 @@ export * from './useOrgGetManagersQuery'; export * from './useOrgGetSubordinatesQuery'; export * from './useGetAllQuery'; +export * from './useObjectsQuery'; +export * from './useObjectQuery'; export * from './useAppPermissionsQuery'; export * from './useAppPermissionQuery'; export * from './useOrgPermissionsQuery'; export * from './useOrgPermissionQuery'; -export * from './useObjectsQuery'; -export * from './useObjectQuery'; export * from './useDatabasesQuery'; export * from './useDatabaseQuery'; export * from './useSchemasQuery'; @@ -60,6 +60,8 @@ export * from './useIdentityProvidersModulesQuery'; export * from './useIdentityProvidersModuleQuery'; export * from './useRealtimeModulesQuery'; export * from './useRealtimeModuleQuery'; +export * from './useConfigSecretsOrgModulesQuery'; +export * from './useConfigSecretsOrgModuleQuery'; export * from './useSchemaGrantsQuery'; export * from './useSchemaGrantQuery'; export * from './useDefaultPrivilegesQuery'; @@ -108,8 +110,8 @@ export * from './useDenormalizedTableFieldsQuery'; export * from './useDenormalizedTableFieldQuery'; export * from './useEmailsModulesQuery'; export * from './useEmailsModuleQuery'; -export * from './useEncryptedSecretsModulesQuery'; -export * from './useEncryptedSecretsModuleQuery'; +export * from './useConfigSecretsUserModulesQuery'; +export * from './useConfigSecretsUserModuleQuery'; export * from './useInvitesModulesQuery'; export * from './useInvitesModuleQuery'; export * from './useEventsModulesQuery'; @@ -150,6 +152,16 @@ export * from './useWebauthnAuthModulesQuery'; export * from './useWebauthnAuthModuleQuery'; export * from './useNotificationsModulesQuery'; export * from './useNotificationsModuleQuery'; +export * from './useInferenceLogModulesQuery'; +export * from './useInferenceLogModuleQuery'; +export * from './useComputeLogModulesQuery'; +export * from './useComputeLogModuleQuery'; +export * from './useTransferLogModulesQuery'; +export * from './useTransferLogModuleQuery'; +export * from './useStorageLogModulesQuery'; +export * from './useStorageLogModuleQuery'; +export * from './useDbUsageModulesQuery'; +export * from './useDbUsageModuleQuery'; export * from './useDatabaseProvisionModulesQuery'; export * from './useDatabaseProvisionModuleQuery'; export * from './useAppAdminGrantsQuery'; @@ -208,16 +220,8 @@ export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; -export * from './useAuditLogsQuery'; -export * from './useAuditLogQuery'; -export * from './useAgentThreadsQuery'; -export * from './useAgentThreadQuery'; -export * from './useAgentMessagesQuery'; -export * from './useAgentMessageQuery'; -export * from './useAgentTasksQuery'; -export * from './useAgentTaskQuery'; -export * from './useRoleTypesQuery'; -export * from './useRoleTypeQuery'; +export * from './useAuditLogAuthsQuery'; +export * from './useAuditLogAuthQuery'; export * from './useIdentityProvidersQuery'; export * from './useRefsQuery'; export * from './useRefQuery'; @@ -225,8 +229,18 @@ export * from './useStoresQuery'; export * from './useStoreQuery'; export * from './useAppPermissionDefaultsQuery'; export * from './useAppPermissionDefaultQuery'; -export * from './useAppLimitCreditCodesQuery'; -export * from './useAppLimitCreditCodeQuery'; +export * from './useRoleTypesQuery'; +export * from './useRoleTypeQuery'; +export * from './useMigrateFilesQuery'; +export * from './useMigrateFileQuery'; +export * from './useDevicesModulesQuery'; +export * from './useDevicesModuleQuery'; +export * from './useAppMembershipDefaultsQuery'; +export * from './useAppMembershipDefaultQuery'; +export * from './useOrgMembershipDefaultsQuery'; +export * from './useOrgMembershipDefaultQuery'; +export * from './useNodeTypeRegistriesQuery'; +export * from './useNodeTypeRegistryQuery'; export * from './useAppLimitCapsDefaultsQuery'; export * from './useAppLimitCapsDefaultQuery'; export * from './useOrgLimitCapsDefaultsQuery'; @@ -235,60 +249,54 @@ export * from './useAppLimitCapsQuery'; export * from './useAppLimitCapQuery'; export * from './useOrgLimitCapsQuery'; export * from './useOrgLimitCapQuery'; -export * from './useMembershipTypesQuery'; -export * from './useMembershipTypeQuery'; -export * from './useMigrateFilesQuery'; -export * from './useMigrateFileQuery'; -export * from './useDevicesModulesQuery'; -export * from './useDevicesModuleQuery'; -export * from './useNodeTypeRegistriesQuery'; -export * from './useNodeTypeRegistryQuery'; +export * from './useUserConnectedAccountsQuery'; +export * from './useUserConnectedAccountQuery'; export * from './useAppLimitDefaultsQuery'; export * from './useAppLimitDefaultQuery'; export * from './useOrgLimitDefaultsQuery'; export * from './useOrgLimitDefaultQuery'; +export * from './useAppLimitCreditCodesQuery'; +export * from './useAppLimitCreditCodeQuery'; export * from './useAppLimitWarningsQuery'; export * from './useAppLimitWarningQuery'; -export * from './useUserConnectedAccountsQuery'; -export * from './useUserConnectedAccountQuery'; export * from './useCommitsQuery'; export * from './useCommitQuery'; export * from './usePubkeySettingsQuery'; export * from './usePubkeySettingQuery'; export * from './useRateLimitsModulesQuery'; export * from './useRateLimitsModuleQuery'; -export * from './useUsageSnapshotsQuery'; -export * from './useUsageSnapshotQuery'; -export * from './useAppMembershipDefaultsQuery'; -export * from './useAppMembershipDefaultQuery'; -export * from './useOrgMembershipDefaultsQuery'; -export * from './useOrgMembershipDefaultQuery'; +export * from './useMembershipTypesQuery'; +export * from './useMembershipTypeQuery'; export * from './useRlsSettingsQuery'; export * from './useRlsSettingQuery'; -export * from './useAppLimitEventsQuery'; -export * from './useOrgLimitEventsQuery'; export * from './useRlsModulesQuery'; export * from './useRlsModuleQuery'; +export * from './useAgentChatModulesQuery'; +export * from './useAgentChatModuleQuery'; export * from './useRateLimitMetersModulesQuery'; export * from './useRateLimitMetersModuleQuery'; export * from './usePlansModulesQuery'; export * from './usePlansModuleQuery'; export * from './useSqlActionsQuery'; export * from './useSqlActionQuery'; +export * from './useAppLimitEventsQuery'; +export * from './useAppLimitEventQuery'; +export * from './useOrgLimitEventsQuery'; +export * from './useOrgLimitEventQuery'; export * from './useDatabaseSettingsQuery'; export * from './useDatabaseSettingQuery'; -export * from './useBillingModulesQuery'; -export * from './useBillingModuleQuery'; -export * from './useAstMigrationsQuery'; -export * from './useAstMigrationQuery'; -export * from './useUsersQuery'; -export * from './useUserQuery'; export * from './useOrgMembershipSettingsQuery'; export * from './useOrgMembershipSettingQuery'; -export * from './useWebauthnSettingsQuery'; -export * from './useWebauthnSettingQuery'; export * from './useAppMembershipsQuery'; export * from './useAppMembershipQuery'; +export * from './useUsersQuery'; +export * from './useUserQuery'; +export * from './useAstMigrationsQuery'; +export * from './useAstMigrationQuery'; +export * from './useWebauthnSettingsQuery'; +export * from './useWebauthnSettingQuery'; +export * from './useBillingModulesQuery'; +export * from './useBillingModuleQuery'; export * from './useBillingProviderModulesQuery'; export * from './useBillingProviderModuleQuery'; export * from './useHierarchyModulesQuery'; @@ -307,9 +315,9 @@ export * from './useOrgPermissionsGetMaskQuery'; export * from './useResolveBlueprintTableQuery'; export * from './useAppPermissionsGetMaskByNamesQuery'; export * from './useOrgPermissionsGetMaskByNamesQuery'; -export * from './useAppPermissionsGetByMaskQuery'; -export * from './useOrgPermissionsGetByMaskQuery'; export * from './useGetAllObjectsFromRootQuery'; export * from './useGetPathObjectsFromRootQuery'; export * from './useGetObjectAtPathQuery'; +export * from './useAppPermissionsGetByMaskQuery'; +export * from './useOrgPermissionsGetByMaskQuery'; export * from './useCurrentUserQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentChatModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentChatModuleQuery.ts new file mode 100644 index 0000000000..2ce043d944 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAgentChatModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for AgentChatModule + * @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 { agentChatModuleKeys } from '../query-keys'; +import type { AgentChatModuleSelect, AgentChatModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentChatModuleSelect, AgentChatModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentChatModuleQueryKey = agentChatModuleKeys.detail; +/** + * Query hook for fetching a single AgentChatModule + * + * @example + * ```tsx + * const { data, isLoading } = useAgentChatModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentChatModuleQuery< + S extends AgentChatModuleSelect, + TData = { + agentChatModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentChatModuleSelect>; + } & Omit< + UseQueryOptions< + { + agentChatModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentChatModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentChatModuleKeys.detail(params.id), + queryFn: () => + getClient() + .agentChatModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single AgentChatModule without React hooks + * + * @example + * ```ts + * const data = await fetchAgentChatModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentChatModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentChatModuleSelect>; +}): Promise<{ + agentChatModule: InferSelectResult | null; +}>; +export async function fetchAgentChatModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentChatModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single AgentChatModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchAgentChatModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentChatModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentChatModuleSelect>; + } +): Promise; +export async function prefetchAgentChatModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentChatModuleKeys.detail(params.id), + queryFn: () => + getClient() + .agentChatModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentChatModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentChatModulesQuery.ts new file mode 100644 index 0000000000..e0d1ea1404 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAgentChatModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for AgentChatModule + * @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 { agentChatModuleKeys } from '../query-keys'; +import type { + AgentChatModuleSelect, + AgentChatModuleWithRelations, + AgentChatModuleFilter, + AgentChatModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentChatModuleSelect, + AgentChatModuleWithRelations, + AgentChatModuleFilter, + AgentChatModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentChatModulesQueryKey = agentChatModuleKeys.list; +/** + * Query hook for fetching AgentChatModule list + * + * @example + * ```tsx + * const { data, isLoading } = useAgentChatModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentChatModulesQuery< + S extends AgentChatModuleSelect, + TData = { + agentChatModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentChatModuleSelect>; + } & Omit< + UseQueryOptions< + { + agentChatModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentChatModulesQuery( + params: { + selection: ListSelectionConfig< + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentChatModuleKeys.list(args), + queryFn: () => getClient().agentChatModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch AgentChatModule list without React hooks + * + * @example + * ```ts + * const data = await fetchAgentChatModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentChatModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentChatModuleSelect>; +}): Promise<{ + agentChatModules: ConnectionResult>; +}>; +export async function fetchAgentChatModulesQuery(params: { + selection: ListSelectionConfig< + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy + >(params.selection); + return getClient().agentChatModule.findMany(args).unwrap(); +} +/** + * Prefetch AgentChatModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchAgentChatModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentChatModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentChatModuleSelect>; + } +): Promise; +export async function prefetchAgentChatModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentChatModuleKeys.list(args), + queryFn: () => getClient().agentChatModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentMessageQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentMessageQuery.ts deleted file mode 100644 index 2261588aa2..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAgentMessageQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentMessageKeys } from '../query-keys'; -import type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const agentMessageQueryKey = agentMessageKeys.detail; -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { data, isLoading } = useAgentMessageQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAgentMessageQuery< - S extends AgentMessageSelect, - TData = { - agentMessage: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AgentMessageSelect>; - } & Omit< - UseQueryOptions< - { - agentMessage: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAgentMessageQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: agentMessageKeys.detail(params.id), - queryFn: () => - getClient() - .agentMessage.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```ts - * const data = await fetchAgentMessageQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAgentMessageQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AgentMessageSelect>; -}): Promise<{ - agentMessage: InferSelectResult | null; -}>; -export async function fetchAgentMessageQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .agentMessage.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```ts - * await prefetchAgentMessageQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAgentMessageQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AgentMessageSelect>; - } -): Promise; -export async function prefetchAgentMessageQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: agentMessageKeys.detail(params.id), - queryFn: () => - getClient() - .agentMessage.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentMessagesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentMessagesQuery.ts deleted file mode 100644 index dd84a5d24f..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAgentMessagesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentMessageKeys } from '../query-keys'; -import type { - AgentMessageSelect, - AgentMessageWithRelations, - AgentMessageFilter, - AgentMessageOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AgentMessageSelect, - AgentMessageWithRelations, - AgentMessageFilter, - AgentMessageOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const agentMessagesQueryKey = agentMessageKeys.list; -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { data, isLoading } = useAgentMessagesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAgentMessagesQuery< - S extends AgentMessageSelect, - TData = { - agentMessages: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AgentMessageSelect>; - } & Omit< - UseQueryOptions< - { - agentMessages: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAgentMessagesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: agentMessageKeys.list(args), - queryFn: () => getClient().agentMessage.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```ts - * const data = await fetchAgentMessagesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAgentMessagesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AgentMessageSelect>; -}): Promise<{ - agentMessages: ConnectionResult>; -}>; -export async function fetchAgentMessagesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().agentMessage.findMany(args).unwrap(); -} -/** - * A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```ts - * await prefetchAgentMessagesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAgentMessagesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AgentMessageSelect>; - } -): Promise; -export async function prefetchAgentMessagesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: agentMessageKeys.list(args), - queryFn: () => getClient().agentMessage.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentTaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentTaskQuery.ts deleted file mode 100644 index 32c667e3ab..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAgentTaskQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentTaskKeys } from '../query-keys'; -import type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const agentTaskQueryKey = agentTaskKeys.detail; -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { data, isLoading } = useAgentTaskQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAgentTaskQuery< - S extends AgentTaskSelect, - TData = { - agentTask: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AgentTaskSelect>; - } & Omit< - UseQueryOptions< - { - agentTask: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAgentTaskQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: agentTaskKeys.detail(params.id), - queryFn: () => - getClient() - .agentTask.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```ts - * const data = await fetchAgentTaskQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAgentTaskQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AgentTaskSelect>; -}): Promise<{ - agentTask: InferSelectResult | null; -}>; -export async function fetchAgentTaskQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .agentTask.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```ts - * await prefetchAgentTaskQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAgentTaskQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AgentTaskSelect>; - } -): Promise; -export async function prefetchAgentTaskQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: agentTaskKeys.detail(params.id), - queryFn: () => - getClient() - .agentTask.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentTasksQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentTasksQuery.ts deleted file mode 100644 index caf6634564..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAgentTasksQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * @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 { agentTaskKeys } from '../query-keys'; -import type { - AgentTaskSelect, - AgentTaskWithRelations, - AgentTaskFilter, - AgentTaskOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AgentTaskSelect, - AgentTaskWithRelations, - AgentTaskFilter, - AgentTaskOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const agentTasksQueryKey = agentTaskKeys.list; -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```tsx - * const { data, isLoading } = useAgentTasksQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAgentTasksQuery< - S extends AgentTaskSelect, - TData = { - agentTasks: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AgentTaskSelect>; - } & Omit< - UseQueryOptions< - { - agentTasks: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAgentTasksQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: agentTaskKeys.list(args), - queryFn: () => getClient().agentTask.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```ts - * const data = await fetchAgentTasksQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAgentTasksQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AgentTaskSelect>; -}): Promise<{ - agentTasks: ConnectionResult>; -}>; -export async function fetchAgentTasksQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().agentTask.findMany(args).unwrap(); -} -/** - * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. - * - * @example - * ```ts - * await prefetchAgentTasksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAgentTasksQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AgentTaskSelect>; - } -): Promise; -export async function prefetchAgentTasksQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: agentTaskKeys.list(args), - queryFn: () => getClient().agentTask.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentThreadQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentThreadQuery.ts deleted file mode 100644 index 583f503a8a..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAgentThreadQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * @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 { agentThreadKeys } from '../query-keys'; -import type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const agentThreadQueryKey = agentThreadKeys.detail; -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * - * @example - * ```tsx - * const { data, isLoading } = useAgentThreadQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAgentThreadQuery< - S extends AgentThreadSelect, - TData = { - agentThread: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AgentThreadSelect>; - } & Omit< - UseQueryOptions< - { - agentThread: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAgentThreadQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: agentThreadKeys.detail(params.id), - queryFn: () => - getClient() - .agentThread.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * - * @example - * ```ts - * const data = await fetchAgentThreadQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAgentThreadQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AgentThreadSelect>; -}): Promise<{ - agentThread: InferSelectResult | null; -}>; -export async function fetchAgentThreadQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .agentThread.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * - * @example - * ```ts - * await prefetchAgentThreadQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAgentThreadQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AgentThreadSelect>; - } -): Promise; -export async function prefetchAgentThreadQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: agentThreadKeys.detail(params.id), - queryFn: () => - getClient() - .agentThread.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentThreadsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentThreadsQuery.ts deleted file mode 100644 index 030fcedb1f..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAgentThreadsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * @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 { agentThreadKeys } from '../query-keys'; -import type { - AgentThreadSelect, - AgentThreadWithRelations, - AgentThreadFilter, - AgentThreadOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AgentThreadSelect, - AgentThreadWithRelations, - AgentThreadFilter, - AgentThreadOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const agentThreadsQueryKey = agentThreadKeys.list; -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * - * @example - * ```tsx - * const { data, isLoading } = useAgentThreadsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAgentThreadsQuery< - S extends AgentThreadSelect, - TData = { - agentThreads: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AgentThreadSelect>; - } & Omit< - UseQueryOptions< - { - agentThreads: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAgentThreadsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: agentThreadKeys.list(args), - queryFn: () => getClient().agentThread.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * - * @example - * ```ts - * const data = await fetchAgentThreadsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAgentThreadsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AgentThreadSelect>; -}): Promise<{ - agentThreads: ConnectionResult>; -}>; -export async function fetchAgentThreadsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().agentThread.findMany(args).unwrap(); -} -/** - * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. - * - * @example - * ```ts - * await prefetchAgentThreadsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAgentThreadsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AgentThreadSelect>; - } -): Promise; -export async function prefetchAgentThreadsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: agentThreadKeys.list(args), - queryFn: () => getClient().agentThread.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts new file mode 100644 index 0000000000..3303e3895d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { appLimitEventKeys } from '../query-keys'; +import type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AppLimitEventSelect, AppLimitEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitEventQueryKey = appLimitEventKeys.detail; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppLimitEventQuery< + S extends AppLimitEventSelect, + TData = { + appLimitEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + appLimitEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchAppLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppLimitEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; +}): Promise<{ + appLimitEvent: InferSelectResult | null; +}>; +export async function fetchAppLimitEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchAppLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppLimitEventSelect>; + } +): Promise; +export async function prefetchAppLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .appLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthQuery.ts new file mode 100644 index 0000000000..e8f8622549 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthQuery.ts @@ -0,0 +1,138 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AuditLogAuthSelect, AuditLogAuthWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const auditLogAuthQueryKey = auditLogAuthKeys.detail; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { data, isLoading } = useAuditLogAuthQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAuditLogAuthQuery< + S extends AuditLogAuthSelect, + TData = { + auditLogAuth: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseQueryOptions< + { + auditLogAuth: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAuditLogAuthQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: auditLogAuthKeys.detail(params.id), + queryFn: () => + getClient() + .auditLogAuth.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```ts + * const data = await fetchAuditLogAuthQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAuditLogAuthQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogAuthSelect>; +}): Promise<{ + auditLogAuth: InferSelectResult | null; +}>; +export async function fetchAuditLogAuthQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .auditLogAuth.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```ts + * await prefetchAuditLogAuthQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAuditLogAuthQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AuditLogAuthSelect>; + } +): Promise; +export async function prefetchAuditLogAuthQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: auditLogAuthKeys.detail(params.id), + queryFn: () => + getClient() + .auditLogAuth.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthsQuery.ts new file mode 100644 index 0000000000..ecd351deba --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAuditLogAuthsQuery.ts @@ -0,0 +1,145 @@ +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * @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 { auditLogAuthKeys } from '../query-keys'; +import type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + AuditLogAuthFilter, + AuditLogAuthOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AuditLogAuthSelect, + AuditLogAuthWithRelations, + AuditLogAuthFilter, + AuditLogAuthOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const auditLogAuthsQueryKey = auditLogAuthKeys.list; +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```tsx + * const { data, isLoading } = useAuditLogAuthsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAuditLogAuthsQuery< + S extends AuditLogAuthSelect, + TData = { + auditLogAuths: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogAuthSelect>; + } & Omit< + UseQueryOptions< + { + auditLogAuths: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAuditLogAuthsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: auditLogAuthKeys.list(args), + queryFn: () => getClient().auditLogAuth.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```ts + * const data = await fetchAuditLogAuthsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAuditLogAuthsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogAuthSelect>; +}): Promise<{ + auditLogAuths: ConnectionResult>; +}>; +export async function fetchAuditLogAuthsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().auditLogAuth.findMany(args).unwrap(); +} +/** + * Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) + * + * @example + * ```ts + * await prefetchAuditLogAuthsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAuditLogAuthsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AuditLogAuthSelect>; + } +): Promise; +export async function prefetchAuditLogAuthsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: auditLogAuthKeys.list(args), + queryFn: () => getClient().auditLogAuth.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts deleted file mode 100644 index 0fe8536594..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAuditLogQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @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 { auditLogKeys } from '../query-keys'; -import type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { AuditLogSelect, AuditLogWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const auditLogQueryKey = auditLogKeys.detail; -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { data, isLoading } = useAuditLogQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useAuditLogQuery< - S extends AuditLogSelect, - TData = { - auditLog: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AuditLogSelect>; - } & Omit< - UseQueryOptions< - { - auditLog: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAuditLogQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: auditLogKeys.detail(params.id), - queryFn: () => - getClient() - .auditLog.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * const data = await fetchAuditLogQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchAuditLogQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AuditLogSelect>; -}): Promise<{ - auditLog: InferSelectResult | null; -}>; -export async function fetchAuditLogQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .auditLog.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * await prefetchAuditLogQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchAuditLogQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, AuditLogSelect>; - } -): Promise; -export async function prefetchAuditLogQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: auditLogKeys.detail(params.id), - queryFn: () => - getClient() - .auditLog.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts deleted file mode 100644 index aca271c1dd..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useAuditLogsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * @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 { auditLogKeys } from '../query-keys'; -import type { - AuditLogSelect, - AuditLogWithRelations, - AuditLogFilter, - AuditLogOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - AuditLogSelect, - AuditLogWithRelations, - AuditLogFilter, - AuditLogOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const auditLogsQueryKey = auditLogKeys.list; -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```tsx - * const { data, isLoading } = useAuditLogsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useAuditLogsQuery< - S extends AuditLogSelect, - TData = { - auditLogs: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AuditLogSelect>; - } & Omit< - UseQueryOptions< - { - auditLogs: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useAuditLogsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: auditLogKeys.list(args), - queryFn: () => getClient().auditLog.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * const data = await fetchAuditLogsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchAuditLogsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AuditLogSelect>; -}): Promise<{ - auditLogs: ConnectionResult>; -}>; -export async function fetchAuditLogsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().auditLog.findMany(args).unwrap(); -} -/** - * Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) - * - * @example - * ```ts - * await prefetchAuditLogsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchAuditLogsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, AuditLogSelect>; - } -): Promise; -export async function prefetchAuditLogsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: auditLogKeys.list(args), - queryFn: () => getClient().auditLog.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useComputeLogModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useComputeLogModuleQuery.ts new file mode 100644 index 0000000000..402d8bcbe9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useComputeLogModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for ComputeLogModule + * @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 { computeLogModuleKeys } from '../query-keys'; +import type { ComputeLogModuleSelect, ComputeLogModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { ComputeLogModuleSelect, ComputeLogModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const computeLogModuleQueryKey = computeLogModuleKeys.detail; +/** + * Query hook for fetching a single ComputeLogModule + * + * @example + * ```tsx + * const { data, isLoading } = useComputeLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useComputeLogModuleQuery< + S extends ComputeLogModuleSelect, + TData = { + computeLogModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ComputeLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + computeLogModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useComputeLogModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: computeLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .computeLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ComputeLogModule without React hooks + * + * @example + * ```ts + * const data = await fetchComputeLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchComputeLogModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ComputeLogModuleSelect>; +}): Promise<{ + computeLogModule: InferSelectResult | null; +}>; +export async function fetchComputeLogModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .computeLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ComputeLogModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchComputeLogModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchComputeLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ComputeLogModuleSelect>; + } +): Promise; +export async function prefetchComputeLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: computeLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .computeLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useComputeLogModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useComputeLogModulesQuery.ts new file mode 100644 index 0000000000..64d7e3e6c2 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useComputeLogModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for ComputeLogModule + * @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 { computeLogModuleKeys } from '../query-keys'; +import type { + ComputeLogModuleSelect, + ComputeLogModuleWithRelations, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ComputeLogModuleSelect, + ComputeLogModuleWithRelations, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const computeLogModulesQueryKey = computeLogModuleKeys.list; +/** + * Query hook for fetching ComputeLogModule list + * + * @example + * ```tsx + * const { data, isLoading } = useComputeLogModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useComputeLogModulesQuery< + S extends ComputeLogModuleSelect, + TData = { + computeLogModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ComputeLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + computeLogModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useComputeLogModulesQuery( + params: { + selection: ListSelectionConfig< + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: computeLogModuleKeys.list(args), + queryFn: () => getClient().computeLogModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ComputeLogModule list without React hooks + * + * @example + * ```ts + * const data = await fetchComputeLogModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchComputeLogModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ComputeLogModuleSelect>; +}): Promise<{ + computeLogModules: ConnectionResult>; +}>; +export async function fetchComputeLogModulesQuery(params: { + selection: ListSelectionConfig< + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy + >(params.selection); + return getClient().computeLogModule.findMany(args).unwrap(); +} +/** + * Prefetch ComputeLogModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchComputeLogModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchComputeLogModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, ComputeLogModuleSelect>; + } +): Promise; +export async function prefetchComputeLogModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: computeLogModuleKeys.list(args), + queryFn: () => getClient().computeLogModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModuleQuery.ts new file mode 100644 index 0000000000..cc21bfb5a5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @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 { configSecretsOrgModuleKeys } from '../query-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configSecretsOrgModuleQueryKey = configSecretsOrgModuleKeys.detail; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { data, isLoading } = useConfigSecretsOrgModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useConfigSecretsOrgModuleQuery< + S extends ConfigSecretsOrgModuleSelect, + TData = { + configSecretsOrgModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseQueryOptions< + { + configSecretsOrgModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigSecretsOrgModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configSecretsOrgModuleKeys.detail(params.id), + queryFn: () => + getClient() + .configSecretsOrgModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```ts + * const data = await fetchConfigSecretsOrgModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchConfigSecretsOrgModuleQuery< + S extends ConfigSecretsOrgModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; +}): Promise<{ + configSecretsOrgModule: InferSelectResult | null; +}>; +export async function fetchConfigSecretsOrgModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .configSecretsOrgModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```ts + * await prefetchConfigSecretsOrgModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchConfigSecretsOrgModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } +): Promise; +export async function prefetchConfigSecretsOrgModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: configSecretsOrgModuleKeys.detail(params.id), + queryFn: () => + getClient() + .configSecretsOrgModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModulesQuery.ts new file mode 100644 index 0000000000..bd472158fd --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsOrgModulesQuery.ts @@ -0,0 +1,180 @@ +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * @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 { configSecretsOrgModuleKeys } from '../query-keys'; +import type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configSecretsOrgModulesQueryKey = configSecretsOrgModuleKeys.list; +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```tsx + * const { data, isLoading } = useConfigSecretsOrgModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useConfigSecretsOrgModulesQuery< + S extends ConfigSecretsOrgModuleSelect, + TData = { + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } & Omit< + UseQueryOptions< + { + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigSecretsOrgModulesQuery( + params: { + selection: ListSelectionConfig< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configSecretsOrgModuleKeys.list(args), + queryFn: () => getClient().configSecretsOrgModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```ts + * const data = await fetchConfigSecretsOrgModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchConfigSecretsOrgModulesQuery< + S extends ConfigSecretsOrgModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsOrgModuleSelect>; +}): Promise<{ + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchConfigSecretsOrgModulesQuery(params: { + selection: ListSelectionConfig< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >(params.selection); + return getClient().configSecretsOrgModule.findMany(args).unwrap(); +} +/** + * Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. + * + * @example + * ```ts + * await prefetchConfigSecretsOrgModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchConfigSecretsOrgModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsOrgModuleSelect>; + } +): Promise; +export async function prefetchConfigSecretsOrgModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: configSecretsOrgModuleKeys.list(args), + queryFn: () => getClient().configSecretsOrgModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModuleQuery.ts new file mode 100644 index 0000000000..0417e18743 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModuleQuery.ts @@ -0,0 +1,146 @@ +/** + * Single item query hook for ConfigSecretsUserModule + * @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 { configSecretsUserModuleKeys } from '../query-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configSecretsUserModuleQueryKey = configSecretsUserModuleKeys.detail; +/** + * Query hook for fetching a single ConfigSecretsUserModule + * + * @example + * ```tsx + * const { data, isLoading } = useConfigSecretsUserModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useConfigSecretsUserModuleQuery< + S extends ConfigSecretsUserModuleSelect, + TData = { + configSecretsUserModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseQueryOptions< + { + configSecretsUserModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigSecretsUserModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configSecretsUserModuleKeys.detail(params.id), + queryFn: () => + getClient() + .configSecretsUserModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single ConfigSecretsUserModule without React hooks + * + * @example + * ```ts + * const data = await fetchConfigSecretsUserModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchConfigSecretsUserModuleQuery< + S extends ConfigSecretsUserModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; +}): Promise<{ + configSecretsUserModule: InferSelectResult | null; +}>; +export async function fetchConfigSecretsUserModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .configSecretsUserModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single ConfigSecretsUserModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchConfigSecretsUserModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchConfigSecretsUserModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, ConfigSecretsUserModuleSelect>; + } +): Promise; +export async function prefetchConfigSecretsUserModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: configSecretsUserModuleKeys.detail(params.id), + queryFn: () => + getClient() + .configSecretsUserModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModulesQuery.ts new file mode 100644 index 0000000000..7a13019670 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useConfigSecretsUserModulesQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for ConfigSecretsUserModule + * @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 { configSecretsUserModuleKeys } from '../query-keys'; +import type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const configSecretsUserModulesQueryKey = configSecretsUserModuleKeys.list; +/** + * Query hook for fetching ConfigSecretsUserModule list + * + * @example + * ```tsx + * const { data, isLoading } = useConfigSecretsUserModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useConfigSecretsUserModulesQuery< + S extends ConfigSecretsUserModuleSelect, + TData = { + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsUserModuleSelect>; + } & Omit< + UseQueryOptions< + { + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useConfigSecretsUserModulesQuery( + params: { + selection: ListSelectionConfig< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: configSecretsUserModuleKeys.list(args), + queryFn: () => getClient().configSecretsUserModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch ConfigSecretsUserModule list without React hooks + * + * @example + * ```ts + * const data = await fetchConfigSecretsUserModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchConfigSecretsUserModulesQuery< + S extends ConfigSecretsUserModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsUserModuleSelect>; +}): Promise<{ + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchConfigSecretsUserModulesQuery(params: { + selection: ListSelectionConfig< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >(params.selection); + return getClient().configSecretsUserModule.findMany(args).unwrap(); +} +/** + * Prefetch ConfigSecretsUserModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchConfigSecretsUserModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchConfigSecretsUserModulesQuery< + S extends ConfigSecretsUserModuleSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, ConfigSecretsUserModuleSelect>; + } +): Promise; +export async function prefetchConfigSecretsUserModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: configSecretsUserModuleKeys.list(args), + queryFn: () => getClient().configSecretsUserModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDbUsageModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDbUsageModuleQuery.ts new file mode 100644 index 0000000000..74607e73c9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDbUsageModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for DbUsageModule + * @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 { dbUsageModuleKeys } from '../query-keys'; +import type { DbUsageModuleSelect, DbUsageModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DbUsageModuleSelect, DbUsageModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbUsageModuleQueryKey = dbUsageModuleKeys.detail; +/** + * Query hook for fetching a single DbUsageModule + * + * @example + * ```tsx + * const { data, isLoading } = useDbUsageModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDbUsageModuleQuery< + S extends DbUsageModuleSelect, + TData = { + dbUsageModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbUsageModuleSelect>; + } & Omit< + UseQueryOptions< + { + dbUsageModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbUsageModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbUsageModuleKeys.detail(params.id), + queryFn: () => + getClient() + .dbUsageModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single DbUsageModule without React hooks + * + * @example + * ```ts + * const data = await fetchDbUsageModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDbUsageModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbUsageModuleSelect>; +}): Promise<{ + dbUsageModule: InferSelectResult | null; +}>; +export async function fetchDbUsageModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .dbUsageModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single DbUsageModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchDbUsageModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDbUsageModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DbUsageModuleSelect>; + } +): Promise; +export async function prefetchDbUsageModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: dbUsageModuleKeys.detail(params.id), + queryFn: () => + getClient() + .dbUsageModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDbUsageModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDbUsageModulesQuery.ts new file mode 100644 index 0000000000..b2087477f5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDbUsageModulesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for DbUsageModule + * @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 { dbUsageModuleKeys } from '../query-keys'; +import type { + DbUsageModuleSelect, + DbUsageModuleWithRelations, + DbUsageModuleFilter, + DbUsageModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DbUsageModuleSelect, + DbUsageModuleWithRelations, + DbUsageModuleFilter, + DbUsageModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const dbUsageModulesQueryKey = dbUsageModuleKeys.list; +/** + * Query hook for fetching DbUsageModule list + * + * @example + * ```tsx + * const { data, isLoading } = useDbUsageModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDbUsageModulesQuery< + S extends DbUsageModuleSelect, + TData = { + dbUsageModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbUsageModuleSelect>; + } & Omit< + UseQueryOptions< + { + dbUsageModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDbUsageModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DbUsageModuleSelect, + DbUsageModuleFilter, + DbUsageModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: dbUsageModuleKeys.list(args), + queryFn: () => getClient().dbUsageModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DbUsageModule list without React hooks + * + * @example + * ```ts + * const data = await fetchDbUsageModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDbUsageModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbUsageModuleSelect>; +}): Promise<{ + dbUsageModules: ConnectionResult>; +}>; +export async function fetchDbUsageModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + DbUsageModuleSelect, + DbUsageModuleFilter, + DbUsageModuleOrderBy + >(params.selection); + return getClient().dbUsageModule.findMany(args).unwrap(); +} +/** + * Prefetch DbUsageModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDbUsageModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDbUsageModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DbUsageModuleSelect>; + } +): Promise; +export async function prefetchDbUsageModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + DbUsageModuleSelect, + DbUsageModuleFilter, + DbUsageModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: dbUsageModuleKeys.list(args), + queryFn: () => getClient().dbUsageModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts deleted file mode 100644 index 5bc441bb7d..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Single item query hook for EncryptedSecretsModule - * @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 { encryptedSecretsModuleKeys } from '../query-keys'; -import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const encryptedSecretsModuleQueryKey = encryptedSecretsModuleKeys.detail; -/** - * Query hook for fetching a single EncryptedSecretsModule - * - * @example - * ```tsx - * const { data, isLoading } = useEncryptedSecretsModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useEncryptedSecretsModuleQuery< - S extends EncryptedSecretsModuleSelect, - TData = { - encryptedSecretsModule: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; - } & Omit< - UseQueryOptions< - { - encryptedSecretsModule: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useEncryptedSecretsModuleQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: encryptedSecretsModuleKeys.detail(params.id), - queryFn: () => - getClient() - .encryptedSecretsModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single EncryptedSecretsModule without React hooks - * - * @example - * ```ts - * const data = await fetchEncryptedSecretsModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchEncryptedSecretsModuleQuery< - S extends EncryptedSecretsModuleSelect, ->(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; -}): Promise<{ - encryptedSecretsModule: InferSelectResult | null; -}>; -export async function fetchEncryptedSecretsModuleQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .encryptedSecretsModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single EncryptedSecretsModule for SSR or cache warming - * - * @example - * ```ts - * await prefetchEncryptedSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchEncryptedSecretsModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, EncryptedSecretsModuleSelect>; - } -): Promise; -export async function prefetchEncryptedSecretsModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: encryptedSecretsModuleKeys.detail(params.id), - queryFn: () => - getClient() - .encryptedSecretsModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts deleted file mode 100644 index c1f7bab939..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * List query hook for EncryptedSecretsModule - * @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 { encryptedSecretsModuleKeys } from '../query-keys'; -import type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const encryptedSecretsModulesQueryKey = encryptedSecretsModuleKeys.list; -/** - * Query hook for fetching EncryptedSecretsModule list - * - * @example - * ```tsx - * const { data, isLoading } = useEncryptedSecretsModulesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useEncryptedSecretsModulesQuery< - S extends EncryptedSecretsModuleSelect, - TData = { - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }, ->( - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, EncryptedSecretsModuleSelect>; - } & Omit< - UseQueryOptions< - { - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useEncryptedSecretsModulesQuery( - params: { - selection: ListSelectionConfig< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: encryptedSecretsModuleKeys.list(args), - queryFn: () => getClient().encryptedSecretsModule.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch EncryptedSecretsModule list without React hooks - * - * @example - * ```ts - * const data = await fetchEncryptedSecretsModulesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchEncryptedSecretsModulesQuery< - S extends EncryptedSecretsModuleSelect, ->(params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, EncryptedSecretsModuleSelect>; -}): Promise<{ - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; -}>; -export async function fetchEncryptedSecretsModulesQuery(params: { - selection: ListSelectionConfig< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >; -}) { - const args = buildListSelectionArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >(params.selection); - return getClient().encryptedSecretsModule.findMany(args).unwrap(); -} -/** - * Prefetch EncryptedSecretsModule list for SSR or cache warming - * - * @example - * ```ts - * await prefetchEncryptedSecretsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchEncryptedSecretsModulesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit< - ListSelectionConfig, - 'fields' - > & - HookStrictSelect, EncryptedSecretsModuleSelect>; - } -): Promise; -export async function prefetchEncryptedSecretsModulesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >; - } -): Promise { - const args = buildListSelectionArgs< - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: encryptedSecretsModuleKeys.list(args), - queryFn: () => getClient().encryptedSecretsModule.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts index 250ee6c188..120545dba8 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts @@ -20,7 +20,7 @@ export const getAllObjectsFromRootQueryKey = customQueryKeys.getAllObjectsFromRo * * @example * ```tsx - * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * const { data, isLoading } = useGetAllObjectsFromRootQuery({ variables: { sId, id, first, offset, after } }); * * if (data?.getAllObjectsFromRoot) { * console.log(data.getAllObjectsFromRoot); @@ -77,7 +77,7 @@ export function useGetAllObjectsFromRootQuery< * * @example * ```ts - * const data = await fetchGetAllObjectsFromRootQuery({ variables: { databaseId, id, first, offset, after } }); + * const data = await fetchGetAllObjectsFromRootQuery({ variables: { sId, id, first, offset, after } }); * ``` */ export async function fetchGetAllObjectsFromRootQuery(params?: { @@ -91,7 +91,7 @@ export async function fetchGetAllObjectsFromRootQuery(params?: { * * @example * ```ts - * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { databaseId, id, first, offset, after } }); + * await prefetchGetAllObjectsFromRootQuery(queryClient, { variables: { sId, id, first, offset, after } }); * ``` */ export async function prefetchGetAllObjectsFromRootQuery( diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts index f36831e832..8e441116b9 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useGetObjectAtPathQuery.ts @@ -22,7 +22,7 @@ export const getObjectAtPathQueryKey = customQueryKeys.getObjectAtPath; * * @example * ```tsx - * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * const { data, isLoading } = useGetObjectAtPathQuery({ variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * * if (data?.getObjectAtPath) { * console.log(data.getObjectAtPath); @@ -78,7 +78,7 @@ export function useGetObjectAtPathQuery( * * @example * ```ts - * const data = await fetchGetObjectAtPathQuery({ variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * const data = await fetchGetObjectAtPathQuery({ variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * ``` */ export async function fetchGetObjectAtPathQuery(params: { @@ -106,7 +106,7 @@ export async function fetchGetObjectAtPathQuery(params: { * * @example * ```ts - * await prefetchGetObjectAtPathQuery(queryClient, { variables: { dbId, storeId, path, refname }, selection: { fields: { id: true } } }); + * await prefetchGetObjectAtPathQuery(queryClient, { variables: { sId, storeId, path, refname }, selection: { fields: { id: true } } }); * ``` */ export async function prefetchGetObjectAtPathQuery( diff --git a/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts index 32bb021f83..47068094eb 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts @@ -20,7 +20,7 @@ export const getPathObjectsFromRootQueryKey = customQueryKeys.getPathObjectsFrom * * @example * ```tsx - * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * const { data, isLoading } = useGetPathObjectsFromRootQuery({ variables: { sId, id, path, first, offset, after } }); * * if (data?.getPathObjectsFromRoot) { * console.log(data.getPathObjectsFromRoot); @@ -77,7 +77,7 @@ export function useGetPathObjectsFromRootQuery< * * @example * ```ts - * const data = await fetchGetPathObjectsFromRootQuery({ variables: { databaseId, id, path, first, offset, after } }); + * const data = await fetchGetPathObjectsFromRootQuery({ variables: { sId, id, path, first, offset, after } }); * ``` */ export async function fetchGetPathObjectsFromRootQuery(params?: { @@ -91,7 +91,7 @@ export async function fetchGetPathObjectsFromRootQuery(params?: { * * @example * ```ts - * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { databaseId, id, path, first, offset, after } }); + * await prefetchGetPathObjectsFromRootQuery(queryClient, { variables: { sId, id, path, first, offset, after } }); * ``` */ export async function prefetchGetPathObjectsFromRootQuery( diff --git a/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModuleQuery.ts new file mode 100644 index 0000000000..8d2448db21 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for InferenceLogModule + * @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 { inferenceLogModuleKeys } from '../query-keys'; +import type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const inferenceLogModuleQueryKey = inferenceLogModuleKeys.detail; +/** + * Query hook for fetching a single InferenceLogModule + * + * @example + * ```tsx + * const { data, isLoading } = useInferenceLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useInferenceLogModuleQuery< + S extends InferenceLogModuleSelect, + TData = { + inferenceLogModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InferenceLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + inferenceLogModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInferenceLogModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: inferenceLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .inferenceLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single InferenceLogModule without React hooks + * + * @example + * ```ts + * const data = await fetchInferenceLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchInferenceLogModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InferenceLogModuleSelect>; +}): Promise<{ + inferenceLogModule: InferSelectResult | null; +}>; +export async function fetchInferenceLogModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .inferenceLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single InferenceLogModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchInferenceLogModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchInferenceLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, InferenceLogModuleSelect>; + } +): Promise; +export async function prefetchInferenceLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: inferenceLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .inferenceLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModulesQuery.ts new file mode 100644 index 0000000000..e47aaae8b5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useInferenceLogModulesQuery.ts @@ -0,0 +1,171 @@ +/** + * List query hook for InferenceLogModule + * @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 { inferenceLogModuleKeys } from '../query-keys'; +import type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + InferenceLogModuleSelect, + InferenceLogModuleWithRelations, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const inferenceLogModulesQueryKey = inferenceLogModuleKeys.list; +/** + * Query hook for fetching InferenceLogModule list + * + * @example + * ```tsx + * const { data, isLoading } = useInferenceLogModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useInferenceLogModulesQuery< + S extends InferenceLogModuleSelect, + TData = { + inferenceLogModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InferenceLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + inferenceLogModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useInferenceLogModulesQuery( + params: { + selection: ListSelectionConfig< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: inferenceLogModuleKeys.list(args), + queryFn: () => getClient().inferenceLogModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch InferenceLogModule list without React hooks + * + * @example + * ```ts + * const data = await fetchInferenceLogModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchInferenceLogModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, InferenceLogModuleSelect>; +}): Promise<{ + inferenceLogModules: ConnectionResult>; +}>; +export async function fetchInferenceLogModulesQuery(params: { + selection: ListSelectionConfig< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >(params.selection); + return getClient().inferenceLogModule.findMany(args).unwrap(); +} +/** + * Prefetch InferenceLogModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchInferenceLogModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchInferenceLogModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, InferenceLogModuleSelect>; + } +): Promise; +export async function prefetchInferenceLogModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: inferenceLogModuleKeys.list(args), + queryFn: () => getClient().inferenceLogModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts new file mode 100644 index 0000000000..1f471a60a7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventQuery.ts @@ -0,0 +1,138 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @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 { orgLimitEventKeys } from '../query-keys'; +import type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { OrgLimitEventSelect, OrgLimitEventWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitEventQueryKey = orgLimitEventKeys.detail; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitEventQuery< + S extends OrgLimitEventSelect, + TData = { + orgLimitEvent: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitEvent: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitEventQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchOrgLimitEventQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitEventQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; +}): Promise<{ + orgLimitEvent: InferSelectResult | null; +}>; +export async function fetchOrgLimitEventQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchOrgLimitEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitEventSelect>; + } +): Promise; +export async function prefetchOrgLimitEventQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitEventKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitEvent.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts index d8b6226fbc..675621528d 100644 --- a/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts +++ b/sdk/constructive-react/src/public/hooks/queries/useRevParseQuery.ts @@ -19,7 +19,7 @@ export const revParseQueryKey = customQueryKeys.revParse; * * @example * ```tsx - * const { data, isLoading } = useRevParseQuery({ variables: { dbId, storeId, refname } }); + * const { data, isLoading } = useRevParseQuery({ variables: { sId, storeId, refname } }); * * if (data?.revParse) { * console.log(data.revParse); @@ -76,7 +76,7 @@ export function useRevParseQuery< * * @example * ```ts - * const data = await fetchRevParseQuery({ variables: { dbId, storeId, refname } }); + * const data = await fetchRevParseQuery({ variables: { sId, storeId, refname } }); * ``` */ export async function fetchRevParseQuery(params?: { variables?: RevParseVariables }) { @@ -88,7 +88,7 @@ export async function fetchRevParseQuery(params?: { variables?: RevParseVariable * * @example * ```ts - * await prefetchRevParseQuery(queryClient, { variables: { dbId, storeId, refname } }); + * await prefetchRevParseQuery(queryClient, { variables: { sId, storeId, refname } }); * ``` */ export async function prefetchRevParseQuery( diff --git a/sdk/constructive-react/src/public/hooks/queries/useStorageLogModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useStorageLogModuleQuery.ts new file mode 100644 index 0000000000..39f5c5b691 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useStorageLogModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for StorageLogModule + * @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 { storageLogModuleKeys } from '../query-keys'; +import type { StorageLogModuleSelect, StorageLogModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { StorageLogModuleSelect, StorageLogModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const storageLogModuleQueryKey = storageLogModuleKeys.detail; +/** + * Query hook for fetching a single StorageLogModule + * + * @example + * ```tsx + * const { data, isLoading } = useStorageLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useStorageLogModuleQuery< + S extends StorageLogModuleSelect, + TData = { + storageLogModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, StorageLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + storageLogModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStorageLogModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: storageLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .storageLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single StorageLogModule without React hooks + * + * @example + * ```ts + * const data = await fetchStorageLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchStorageLogModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, StorageLogModuleSelect>; +}): Promise<{ + storageLogModule: InferSelectResult | null; +}>; +export async function fetchStorageLogModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .storageLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single StorageLogModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchStorageLogModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchStorageLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, StorageLogModuleSelect>; + } +): Promise; +export async function prefetchStorageLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: storageLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .storageLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useStorageLogModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useStorageLogModulesQuery.ts new file mode 100644 index 0000000000..9a7da22023 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useStorageLogModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for StorageLogModule + * @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 { storageLogModuleKeys } from '../query-keys'; +import type { + StorageLogModuleSelect, + StorageLogModuleWithRelations, + StorageLogModuleFilter, + StorageLogModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + StorageLogModuleSelect, + StorageLogModuleWithRelations, + StorageLogModuleFilter, + StorageLogModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const storageLogModulesQueryKey = storageLogModuleKeys.list; +/** + * Query hook for fetching StorageLogModule list + * + * @example + * ```tsx + * const { data, isLoading } = useStorageLogModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useStorageLogModulesQuery< + S extends StorageLogModuleSelect, + TData = { + storageLogModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, StorageLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + storageLogModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useStorageLogModulesQuery( + params: { + selection: ListSelectionConfig< + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: storageLogModuleKeys.list(args), + queryFn: () => getClient().storageLogModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch StorageLogModule list without React hooks + * + * @example + * ```ts + * const data = await fetchStorageLogModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchStorageLogModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, StorageLogModuleSelect>; +}): Promise<{ + storageLogModules: ConnectionResult>; +}>; +export async function fetchStorageLogModulesQuery(params: { + selection: ListSelectionConfig< + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy + >(params.selection); + return getClient().storageLogModule.findMany(args).unwrap(); +} +/** + * Prefetch StorageLogModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchStorageLogModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchStorageLogModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, StorageLogModuleSelect>; + } +): Promise; +export async function prefetchStorageLogModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: storageLogModuleKeys.list(args), + queryFn: () => getClient().storageLogModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTransferLogModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTransferLogModuleQuery.ts new file mode 100644 index 0000000000..d462fe819f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTransferLogModuleQuery.ts @@ -0,0 +1,144 @@ +/** + * Single item query hook for TransferLogModule + * @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 { transferLogModuleKeys } from '../query-keys'; +import type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const transferLogModuleQueryKey = transferLogModuleKeys.detail; +/** + * Query hook for fetching a single TransferLogModule + * + * @example + * ```tsx + * const { data, isLoading } = useTransferLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useTransferLogModuleQuery< + S extends TransferLogModuleSelect, + TData = { + transferLogModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TransferLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + transferLogModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTransferLogModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: transferLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .transferLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single TransferLogModule without React hooks + * + * @example + * ```ts + * const data = await fetchTransferLogModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchTransferLogModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TransferLogModuleSelect>; +}): Promise<{ + transferLogModule: InferSelectResult | null; +}>; +export async function fetchTransferLogModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .transferLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single TransferLogModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchTransferLogModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchTransferLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, TransferLogModuleSelect>; + } +): Promise; +export async function prefetchTransferLogModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: transferLogModuleKeys.detail(params.id), + queryFn: () => + getClient() + .transferLogModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useTransferLogModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useTransferLogModulesQuery.ts new file mode 100644 index 0000000000..7b2fab1bc5 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useTransferLogModulesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for TransferLogModule + * @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 { transferLogModuleKeys } from '../query-keys'; +import type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, + TransferLogModuleFilter, + TransferLogModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + TransferLogModuleSelect, + TransferLogModuleWithRelations, + TransferLogModuleFilter, + TransferLogModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const transferLogModulesQueryKey = transferLogModuleKeys.list; +/** + * Query hook for fetching TransferLogModule list + * + * @example + * ```tsx + * const { data, isLoading } = useTransferLogModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useTransferLogModulesQuery< + S extends TransferLogModuleSelect, + TData = { + transferLogModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TransferLogModuleSelect>; + } & Omit< + UseQueryOptions< + { + transferLogModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useTransferLogModulesQuery( + params: { + selection: ListSelectionConfig< + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: transferLogModuleKeys.list(args), + queryFn: () => getClient().transferLogModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch TransferLogModule list without React hooks + * + * @example + * ```ts + * const data = await fetchTransferLogModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchTransferLogModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TransferLogModuleSelect>; +}): Promise<{ + transferLogModules: ConnectionResult>; +}>; +export async function fetchTransferLogModulesQuery(params: { + selection: ListSelectionConfig< + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy + >(params.selection); + return getClient().transferLogModule.findMany(args).unwrap(); +} +/** + * Prefetch TransferLogModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchTransferLogModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchTransferLogModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, TransferLogModuleSelect>; + } +): Promise; +export async function prefetchTransferLogModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: transferLogModuleKeys.list(args), + queryFn: () => getClient().transferLogModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUsageSnapshotQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUsageSnapshotQuery.ts deleted file mode 100644 index 012efead9d..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useUsageSnapshotQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * @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 { usageSnapshotKeys } from '../query-keys'; -import type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const usageSnapshotQueryKey = usageSnapshotKeys.detail; -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```tsx - * const { data, isLoading } = useUsageSnapshotQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useUsageSnapshotQuery< - S extends UsageSnapshotSelect, - TData = { - usageSnapshot: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UsageSnapshotSelect>; - } & Omit< - UseQueryOptions< - { - usageSnapshot: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUsageSnapshotQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: usageSnapshotKeys.detail(params.id), - queryFn: () => - getClient() - .usageSnapshot.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```ts - * const data = await fetchUsageSnapshotQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchUsageSnapshotQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UsageSnapshotSelect>; -}): Promise<{ - usageSnapshot: InferSelectResult | null; -}>; -export async function fetchUsageSnapshotQuery(params: { - id: string; - selection: SelectionConfig; -}): Promise { - const args = buildSelectionArgs(params.selection); - return getClient() - .usageSnapshot.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```ts - * await prefetchUsageSnapshotQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchUsageSnapshotQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UsageSnapshotSelect>; - } -): Promise; -export async function prefetchUsageSnapshotQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: usageSnapshotKeys.detail(params.id), - queryFn: () => - getClient() - .usageSnapshot.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUsageSnapshotsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUsageSnapshotsQuery.ts deleted file mode 100644 index 7e152a0ea4..0000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useUsageSnapshotsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * @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 { usageSnapshotKeys } from '../query-keys'; -import type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - UsageSnapshotFilter, - UsageSnapshotOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - UsageSnapshotSelect, - UsageSnapshotWithRelations, - UsageSnapshotFilter, - UsageSnapshotOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const usageSnapshotsQueryKey = usageSnapshotKeys.list; -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```tsx - * const { data, isLoading } = useUsageSnapshotsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useUsageSnapshotsQuery< - S extends UsageSnapshotSelect, - TData = { - usageSnapshots: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UsageSnapshotSelect>; - } & Omit< - UseQueryOptions< - { - usageSnapshots: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUsageSnapshotsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: usageSnapshotKeys.list(args), - queryFn: () => getClient().usageSnapshot.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```ts - * const data = await fetchUsageSnapshotsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchUsageSnapshotsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UsageSnapshotSelect>; -}): Promise<{ - usageSnapshots: ConnectionResult>; -}>; -export async function fetchUsageSnapshotsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy - >(params.selection); - return getClient().usageSnapshot.findMany(args).unwrap(); -} -/** - * Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. - * - * @example - * ```ts - * await prefetchUsageSnapshotsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchUsageSnapshotsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UsageSnapshotSelect>; - } -): Promise; -export async function prefetchUsageSnapshotsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: usageSnapshotKeys.list(args), - queryFn: () => getClient().usageSnapshot.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 8748ca1414..c673fdd751 100644 --- a/sdk/constructive-react/src/public/hooks/query-keys.ts +++ b/sdk/constructive-react/src/public/hooks/query-keys.ts @@ -46,6 +46,15 @@ export const getAllRecordKeys = { /** 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, + /** List query key with variables */ list: (variables?: object) => + [...objectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...objectKeys.details(), id] as const, +} as const; export const appPermissionKeys = { /** All appPermission queries */ all: ['apppermission'] as const, /** List query keys */ lists: () => [...appPermissionKeys.all, 'list'] as const, @@ -64,15 +73,6 @@ export const orgPermissionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgPermissionKeys.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, - /** List query key with variables */ list: (variables?: object) => - [...objectKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...objectKeys.details(), id] as const, -} as const; export const databaseKeys = { /** All database queries */ all: ['database'] as const, /** List query keys */ lists: () => [...databaseKeys.all, 'list'] as const, @@ -289,6 +289,15 @@ export const realtimeModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...realtimeModuleKeys.details(), id] as const, } as const; +export const configSecretsOrgModuleKeys = { + /** All configSecretsOrgModule queries */ all: ['configsecretsorgmodule'] as const, + /** List query keys */ lists: () => [...configSecretsOrgModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...configSecretsOrgModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...configSecretsOrgModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...configSecretsOrgModuleKeys.details(), id] as const, +} as const; export const schemaGrantKeys = { /** All schemaGrant queries */ all: ['schemagrant'] as const, /** List query keys */ lists: () => [...schemaGrantKeys.all, 'list'] as const, @@ -505,14 +514,14 @@ export const emailsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...emailsModuleKeys.details(), id] as const, } as const; -export const encryptedSecretsModuleKeys = { - /** All encryptedSecretsModule queries */ all: ['encryptedsecretsmodule'] as const, - /** List query keys */ lists: () => [...encryptedSecretsModuleKeys.all, 'list'] as const, +export const configSecretsUserModuleKeys = { + /** All configSecretsUserModule queries */ all: ['configsecretsusermodule'] as const, + /** List query keys */ lists: () => [...configSecretsUserModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...encryptedSecretsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...encryptedSecretsModuleKeys.all, 'detail'] as const, + [...configSecretsUserModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...configSecretsUserModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...encryptedSecretsModuleKeys.details(), id] as const, + [...configSecretsUserModuleKeys.details(), id] as const, } as const; export const invitesModuleKeys = { /** All invitesModule queries */ all: ['invitesmodule'] as const, @@ -694,6 +703,51 @@ export const notificationsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...notificationsModuleKeys.details(), id] as const, } as const; +export const inferenceLogModuleKeys = { + /** All inferenceLogModule queries */ all: ['inferencelogmodule'] as const, + /** List query keys */ lists: () => [...inferenceLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...inferenceLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...inferenceLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...inferenceLogModuleKeys.details(), id] as const, +} as const; +export const computeLogModuleKeys = { + /** All computeLogModule queries */ all: ['computelogmodule'] as const, + /** List query keys */ lists: () => [...computeLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...computeLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...computeLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...computeLogModuleKeys.details(), id] as const, +} as const; +export const transferLogModuleKeys = { + /** All transferLogModule queries */ all: ['transferlogmodule'] as const, + /** List query keys */ lists: () => [...transferLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...transferLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...transferLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...transferLogModuleKeys.details(), id] as const, +} as const; +export const storageLogModuleKeys = { + /** All storageLogModule queries */ all: ['storagelogmodule'] as const, + /** List query keys */ lists: () => [...storageLogModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...storageLogModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...storageLogModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...storageLogModuleKeys.details(), id] as const, +} as const; +export const dbUsageModuleKeys = { + /** All dbUsageModule queries */ all: ['dbusagemodule'] as const, + /** List query keys */ lists: () => [...dbUsageModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...dbUsageModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...dbUsageModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...dbUsageModuleKeys.details(), id] as const, +} as const; export const databaseProvisionModuleKeys = { /** All databaseProvisionModule queries */ all: ['databaseprovisionmodule'] as const, /** List query keys */ lists: () => [...databaseProvisionModuleKeys.all, 'list'] as const, @@ -955,50 +1009,14 @@ 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 agentThreadKeys = { - /** All agentThread queries */ all: ['agentthread'] as const, - /** List query keys */ lists: () => [...agentThreadKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...agentThreadKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...agentThreadKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...agentThreadKeys.details(), id] as const, -} as const; -export const agentMessageKeys = { - /** All agentMessage queries */ all: ['agentmessage'] as const, - /** List query keys */ lists: () => [...agentMessageKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...agentMessageKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...agentMessageKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...agentMessageKeys.details(), id] as const, -} as const; -export const agentTaskKeys = { - /** All agentTask queries */ all: ['agenttask'] as const, - /** List query keys */ lists: () => [...agentTaskKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...agentTaskKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...agentTaskKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...agentTaskKeys.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 auditLogAuthKeys = { + /** All auditLogAuth queries */ all: ['auditlogauth'] as const, + /** List query keys */ lists: () => [...auditLogAuthKeys.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, + [...auditLogAuthKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...auditLogAuthKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...roleTypeKeys.details(), id] as const, + [...auditLogAuthKeys.details(), id] as const, } as const; export const identityProviderKeys = { /** All identityProvider queries */ all: ['identityprovider'] as const, @@ -1036,14 +1054,59 @@ export const appPermissionDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appPermissionDefaultKeys.details(), id] as const, } as const; -export const appLimitCreditCodeKeys = { - /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, - /** List query keys */ lists: () => [...appLimitCreditCodeKeys.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) => - [...appLimitCreditCodeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.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) => - [...appLimitCreditCodeKeys.details(), id] as const, + [...roleTypeKeys.details(), id] as const, +} as const; +export const migrateFileKeys = { + /** All migrateFile queries */ all: ['migratefile'] as const, + /** List query keys */ lists: () => [...migrateFileKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...migrateFileKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...migrateFileKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...migrateFileKeys.details(), id] as const, +} as const; +export const devicesModuleKeys = { + /** All devicesModule queries */ all: ['devicesmodule'] as const, + /** List query keys */ lists: () => [...devicesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...devicesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...devicesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...devicesModuleKeys.details(), id] as const, +} as const; +export const appMembershipDefaultKeys = { + /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, + /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appMembershipDefaultKeys.details(), id] as const, +} as const; +export const orgMembershipDefaultKeys = { + /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, + /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMembershipDefaultKeys.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, + /** List query key with variables */ list: (variables?: object) => + [...nodeTypeRegistryKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...nodeTypeRegistryKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...nodeTypeRegistryKeys.details(), id] as const, } as const; export const appLimitCapsDefaultKeys = { /** All appLimitCapsDefault queries */ all: ['applimitcapsdefault'] as const, @@ -1081,41 +1144,14 @@ export const orgLimitCapKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitCapKeys.details(), id] as const, } as const; -export const membershipTypeKeys = { - /** All membershipType queries */ all: ['membershiptype'] as const, - /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...membershipTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypeKeys.details(), id] as const, -} as const; -export const migrateFileKeys = { - /** All migrateFile queries */ all: ['migratefile'] as const, - /** List query keys */ lists: () => [...migrateFileKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...migrateFileKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...migrateFileKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...migrateFileKeys.details(), id] as const, -} as const; -export const devicesModuleKeys = { - /** All devicesModule queries */ all: ['devicesmodule'] as const, - /** List query keys */ lists: () => [...devicesModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...devicesModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...devicesModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...devicesModuleKeys.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, +export const userConnectedAccountKeys = { + /** All userConnectedAccount queries */ all: ['userconnectedaccount'] as const, + /** List query keys */ lists: () => [...userConnectedAccountKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...nodeTypeRegistryKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...nodeTypeRegistryKeys.all, 'detail'] as const, + [...userConnectedAccountKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...userConnectedAccountKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...nodeTypeRegistryKeys.details(), id] as const, + [...userConnectedAccountKeys.details(), id] as const, } as const; export const appLimitDefaultKeys = { /** All appLimitDefault queries */ all: ['applimitdefault'] as const, @@ -1135,6 +1171,15 @@ export const orgLimitDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitDefaultKeys.details(), id] as const, } as const; +export const appLimitCreditCodeKeys = { + /** All appLimitCreditCode queries */ all: ['applimitcreditcode'] as const, + /** List query keys */ lists: () => [...appLimitCreditCodeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitCreditCodeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitCreditCodeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitCreditCodeKeys.details(), id] as const, +} as const; export const appLimitWarningKeys = { /** All appLimitWarning queries */ all: ['applimitwarning'] as const, /** List query keys */ lists: () => [...appLimitWarningKeys.all, 'list'] as const, @@ -1144,15 +1189,6 @@ export const appLimitWarningKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appLimitWarningKeys.details(), id] as const, } as const; -export const userConnectedAccountKeys = { - /** All userConnectedAccount queries */ all: ['userconnectedaccount'] as const, - /** List query keys */ lists: () => [...userConnectedAccountKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...userConnectedAccountKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...userConnectedAccountKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...userConnectedAccountKeys.details(), id] as const, -} as const; export const commitKeys = { /** All commit queries */ all: ['commit'] as const, /** List query keys */ lists: () => [...commitKeys.all, 'list'] as const, @@ -1180,32 +1216,14 @@ export const rateLimitsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...rateLimitsModuleKeys.details(), id] as const, } as const; -export const usageSnapshotKeys = { - /** All usageSnapshot queries */ all: ['usagesnapshot'] as const, - /** List query keys */ lists: () => [...usageSnapshotKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...usageSnapshotKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...usageSnapshotKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...usageSnapshotKeys.details(), id] as const, -} as const; -export const appMembershipDefaultKeys = { - /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, - /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipDefaultKeys.details(), id] as const, -} as const; -export const orgMembershipDefaultKeys = { - /** All orgMembershipDefault queries */ all: ['orgmembershipdefault'] as const, - /** List query keys */ lists: () => [...orgMembershipDefaultKeys.all, 'list'] as const, +export const membershipTypeKeys = { + /** All membershipType queries */ all: ['membershiptype'] as const, + /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipDefaultKeys.all, 'detail'] as const, + [...membershipTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipDefaultKeys.details(), id] as const, + [...membershipTypeKeys.details(), id] as const, } as const; export const rlsSettingKeys = { /** All rlsSetting queries */ all: ['rlssetting'] as const, @@ -1216,24 +1234,6 @@ export const rlsSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...rlsSettingKeys.details(), id] as const, } as const; -export const appLimitEventKeys = { - /** All appLimitEvent queries */ all: ['applimitevent'] as const, - /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitEventKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitEventKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitEventKeys.details(), id] as const, -} as const; -export const orgLimitEventKeys = { - /** All orgLimitEvent queries */ all: ['orglimitevent'] as const, - /** List query keys */ lists: () => [...orgLimitEventKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitEventKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitEventKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitEventKeys.details(), id] as const, -} as const; export const rlsModuleKeys = { /** All rlsModule queries */ all: ['rlsmodule'] as const, /** List query keys */ lists: () => [...rlsModuleKeys.all, 'list'] as const, @@ -1243,6 +1243,15 @@ export const rlsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...rlsModuleKeys.details(), id] as const, } as const; +export const agentChatModuleKeys = { + /** All agentChatModule queries */ all: ['agentchatmodule'] as const, + /** List query keys */ lists: () => [...agentChatModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...agentChatModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentChatModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentChatModuleKeys.details(), id] as const, +} as const; export const rateLimitMetersModuleKeys = { /** All rateLimitMetersModule queries */ all: ['ratelimitmetersmodule'] as const, /** List query keys */ lists: () => [...rateLimitMetersModuleKeys.all, 'list'] as const, @@ -1270,6 +1279,24 @@ export const sqlActionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...sqlActionKeys.details(), id] as const, } as const; +export const appLimitEventKeys = { + /** All appLimitEvent queries */ all: ['applimitevent'] as const, + /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitEventKeys.details(), id] as const, +} as const; +export const orgLimitEventKeys = { + /** All orgLimitEvent queries */ all: ['orglimitevent'] as const, + /** List query keys */ lists: () => [...orgLimitEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitEventKeys.details(), id] as const, +} as const; export const databaseSettingKeys = { /** All databaseSetting queries */ all: ['databasesetting'] as const, /** List query keys */ lists: () => [...databaseSettingKeys.all, 'list'] as const, @@ -1279,23 +1306,23 @@ export const databaseSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...databaseSettingKeys.details(), id] as const, } as const; -export const billingModuleKeys = { - /** All billingModule queries */ all: ['billingmodule'] as const, - /** List query keys */ lists: () => [...billingModuleKeys.all, 'list'] as const, +export const orgMembershipSettingKeys = { + /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, + /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...billingModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...billingModuleKeys.all, 'detail'] as const, + [...orgMembershipSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...billingModuleKeys.details(), id] as const, + [...orgMembershipSettingKeys.details(), id] as const, } as const; -export const astMigrationKeys = { - /** All astMigration queries */ all: ['astmigration'] as const, - /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'] as const, +export const appMembershipKeys = { + /** All appMembership queries */ all: ['appmembership'] as const, + /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...astMigrationKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, + [...appMembershipKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...astMigrationKeys.details(), id] as const, + [...appMembershipKeys.details(), id] as const, } as const; export const userKeys = { /** All user queries */ all: ['user'] as const, @@ -1306,14 +1333,14 @@ export const userKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userKeys.details(), id] as const, } as const; -export const orgMembershipSettingKeys = { - /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, - /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, +export const astMigrationKeys = { + /** All astMigration queries */ all: ['astmigration'] as const, + /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, + [...astMigrationKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipSettingKeys.details(), id] as const, + [...astMigrationKeys.details(), id] as const, } as const; export const webauthnSettingKeys = { /** All webauthnSetting queries */ all: ['webauthnsetting'] as const, @@ -1324,14 +1351,14 @@ export const webauthnSettingKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...webauthnSettingKeys.details(), id] as const, } as const; -export const appMembershipKeys = { - /** All appMembership queries */ all: ['appmembership'] as const, - /** List query keys */ lists: () => [...appMembershipKeys.all, 'list'] as const, +export const billingModuleKeys = { + /** All billingModule queries */ all: ['billingmodule'] as const, + /** List query keys */ lists: () => [...billingModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appMembershipKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appMembershipKeys.all, 'detail'] as const, + [...billingModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...billingModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appMembershipKeys.details(), id] as const, + [...billingModuleKeys.details(), id] as const, } as const; export const billingProviderModuleKeys = { /** All billingProviderModule queries */ all: ['billingprovidermodule'] as const, @@ -1385,16 +1412,16 @@ export const customQueryKeys = { /** Query key for orgPermissionsGetMaskByNames */ orgPermissionsGetMaskByNames: ( variables?: object ) => ['orgPermissionsGetMaskByNames', variables] as const, - /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => - ['appPermissionsGetByMask', variables] as const, - /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => - ['orgPermissionsGetByMask', variables] as const, /** Query key for getAllObjectsFromRoot */ getAllObjectsFromRoot: (variables?: object) => ['getAllObjectsFromRoot', variables] as const, /** Query key for getPathObjectsFromRoot */ getPathObjectsFromRoot: (variables?: object) => ['getPathObjectsFromRoot', variables] as const, /** Query key for getObjectAtPath */ getObjectAtPath: (variables?: object) => ['getObjectAtPath', variables] as const, + /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => + ['appPermissionsGetByMask', variables] as const, + /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => + ['orgPermissionsGetByMask', variables] as const, /** Query key for currentUser */ currentUser: () => ['currentUser'] as const, } as const; /** @@ -1423,9 +1450,9 @@ export const queryKeys = { orgGetManagersRecord: orgGetManagersRecordKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, getAllRecord: getAllRecordKeys, + object: objectKeys, appPermission: appPermissionKeys, orgPermission: orgPermissionKeys, - object: objectKeys, database: databaseKeys, schema: schemaKeys, table: tableKeys, @@ -1450,6 +1477,7 @@ export const queryKeys = { sessionSecretsModule: sessionSecretsModuleKeys, identityProvidersModule: identityProvidersModuleKeys, realtimeModule: realtimeModuleKeys, + configSecretsOrgModule: configSecretsOrgModuleKeys, schemaGrant: schemaGrantKeys, defaultPrivilege: defaultPrivilegeKeys, enum: enumKeys, @@ -1474,7 +1502,7 @@ export const queryKeys = { defaultIdsModule: defaultIdsModuleKeys, denormalizedTableField: denormalizedTableFieldKeys, emailsModule: emailsModuleKeys, - encryptedSecretsModule: encryptedSecretsModuleKeys, + configSecretsUserModule: configSecretsUserModuleKeys, invitesModule: invitesModuleKeys, eventsModule: eventsModuleKeys, limitsModule: limitsModuleKeys, @@ -1495,6 +1523,11 @@ export const queryKeys = { webauthnCredentialsModule: webauthnCredentialsModuleKeys, webauthnAuthModule: webauthnAuthModuleKeys, notificationsModule: notificationsModuleKeys, + inferenceLogModule: inferenceLogModuleKeys, + computeLogModule: computeLogModuleKeys, + transferLogModule: transferLogModuleKeys, + storageLogModule: storageLogModuleKeys, + dbUsageModule: dbUsageModuleKeys, databaseProvisionModule: databaseProvisionModuleKeys, appAdminGrant: appAdminGrantKeys, appOwnerGrant: appOwnerGrantKeys, @@ -1524,48 +1557,45 @@ export const queryKeys = { appClaimedInvite: appClaimedInviteKeys, orgInvite: orgInviteKeys, orgClaimedInvite: orgClaimedInviteKeys, - auditLog: auditLogKeys, - agentThread: agentThreadKeys, - agentMessage: agentMessageKeys, - agentTask: agentTaskKeys, - roleType: roleTypeKeys, + auditLogAuth: auditLogAuthKeys, identityProvider: identityProviderKeys, ref: refKeys, store: storeKeys, appPermissionDefault: appPermissionDefaultKeys, - appLimitCreditCode: appLimitCreditCodeKeys, + roleType: roleTypeKeys, + migrateFile: migrateFileKeys, + devicesModule: devicesModuleKeys, + appMembershipDefault: appMembershipDefaultKeys, + orgMembershipDefault: orgMembershipDefaultKeys, + nodeTypeRegistry: nodeTypeRegistryKeys, appLimitCapsDefault: appLimitCapsDefaultKeys, orgLimitCapsDefault: orgLimitCapsDefaultKeys, appLimitCap: appLimitCapKeys, orgLimitCap: orgLimitCapKeys, - membershipType: membershipTypeKeys, - migrateFile: migrateFileKeys, - devicesModule: devicesModuleKeys, - nodeTypeRegistry: nodeTypeRegistryKeys, + userConnectedAccount: userConnectedAccountKeys, appLimitDefault: appLimitDefaultKeys, orgLimitDefault: orgLimitDefaultKeys, + appLimitCreditCode: appLimitCreditCodeKeys, appLimitWarning: appLimitWarningKeys, - userConnectedAccount: userConnectedAccountKeys, commit: commitKeys, pubkeySetting: pubkeySettingKeys, rateLimitsModule: rateLimitsModuleKeys, - usageSnapshot: usageSnapshotKeys, - appMembershipDefault: appMembershipDefaultKeys, - orgMembershipDefault: orgMembershipDefaultKeys, + membershipType: membershipTypeKeys, rlsSetting: rlsSettingKeys, - appLimitEvent: appLimitEventKeys, - orgLimitEvent: orgLimitEventKeys, rlsModule: rlsModuleKeys, + agentChatModule: agentChatModuleKeys, rateLimitMetersModule: rateLimitMetersModuleKeys, plansModule: plansModuleKeys, sqlAction: sqlActionKeys, + appLimitEvent: appLimitEventKeys, + orgLimitEvent: orgLimitEventKeys, databaseSetting: databaseSettingKeys, - billingModule: billingModuleKeys, - astMigration: astMigrationKeys, - user: userKeys, orgMembershipSetting: orgMembershipSettingKeys, - webauthnSetting: webauthnSettingKeys, appMembership: appMembershipKeys, + user: userKeys, + astMigration: astMigrationKeys, + webauthnSetting: webauthnSettingKeys, + billingModule: billingModuleKeys, billingProviderModule: billingProviderModuleKeys, hierarchyModule: hierarchyModuleKeys, custom: customQueryKeys, diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index 4dc7b74e2e..87e42308cf 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -24,9 +24,9 @@ const db = createClient({ | `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 | -| `object` | findMany, findOne, create, update, delete | | `database` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | @@ -51,6 +51,7 @@ const db = createClient({ | `sessionSecretsModule` | findMany, findOne, create, update, delete | | `identityProvidersModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | +| `configSecretsOrgModule` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | @@ -75,7 +76,7 @@ const db = createClient({ | `defaultIdsModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | -| `encryptedSecretsModule` | findMany, findOne, create, update, delete | +| `configSecretsUserModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | @@ -96,6 +97,11 @@ const db = createClient({ | `webauthnCredentialsModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | | `notificationsModule` | findMany, findOne, create, update, delete | +| `inferenceLogModule` | findMany, findOne, create, update, delete | +| `computeLogModule` | findMany, findOne, create, update, delete | +| `transferLogModule` | findMany, findOne, create, update, delete | +| `storageLogModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | @@ -125,48 +131,45 @@ const db = createClient({ | `appClaimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `auditLog` | findMany, findOne, create, update, delete | -| `agentThread` | findMany, findOne, create, update, delete | -| `agentMessage` | findMany, findOne, create, update, delete | -| `agentTask` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | +| `auditLogAuth` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | +| `migrateFile` | findMany, findOne, create, update, delete | +| `devicesModule` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | -| `migrateFile` | findMany, findOne, create, update, delete | -| `devicesModule` | findMany, findOne, create, update, delete | -| `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `userConnectedAccount` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `pubkeySetting` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | -| `usageSnapshot` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | +| `agentChatModule` | findMany, findOne, create, update, delete | | `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `databaseSetting` | findMany, findOne, create, update, delete | -| `billingModule` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | -| `user` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `webauthnSetting` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | +| `user` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, create, update, delete | +| `webauthnSetting` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | @@ -262,42 +265,45 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.object` -CRUD operations for AppPermission records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` +### `db.appPermission` -CRUD operations for OrgPermission records. +CRUD operations for AppPermission records. **Fields:** @@ -312,56 +318,53 @@ CRUD operations for OrgPermission records. **Operations:** ```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all appPermission records +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.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: 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.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.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.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.orgPermission` -CRUD operations for Object records. +CRUD operations for OrgPermission records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | **Operations:** ```typescript -// List all 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(); +// List all orgPermission records +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.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.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.database` @@ -1359,6 +1362,39 @@ const updated = await db.realtimeModule.update({ where: { id: '' }, data: const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.configSecretsOrgModule` + +CRUD operations for ConfigSecretsOrgModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all configSecretsOrgModule records +const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1821,6 +1857,7 @@ CRUD operations for Partition records. | `partitionKeyId` | UUID | Yes | | `interval` | String | Yes | | `retention` | String | Yes | +| `retentionKeepTable` | Boolean | Yes | | `premake` | Int | Yes | | `namingPattern` | String | Yes | | `createdAt` | Datetime | No | @@ -1830,13 +1867,13 @@ CRUD operations for Partition records. ```typescript // List all partition records -const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); +const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); // Update const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2215,9 +2252,9 @@ const updated = await db.emailsModule.update({ where: { id: '' }, data: { const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.encryptedSecretsModule` +### `db.configSecretsUserModule` -CRUD operations for EncryptedSecretsModule records. +CRUD operations for ConfigSecretsUserModule records. **Fields:** @@ -2232,20 +2269,20 @@ CRUD operations for EncryptedSecretsModule records. **Operations:** ```typescript -// List all encryptedSecretsModule records -const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); +// List all configSecretsUserModule records +const items = await db.configSecretsUserModule.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 } }).execute(); +const item = await db.configSecretsUserModule.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: '' }, select: { id: true } }).execute(); +const created = await db.configSecretsUserModule.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.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); ``` ### `db.invitesModule` @@ -2945,6 +2982,7 @@ CRUD operations for StorageModule records. | `bucketsTableName` | String | Yes | | `filesTableName` | String | Yes | | `membershipType` | Int | Yes | +| `storageKey` | String | Yes | | `policies` | JSON | Yes | | `skipDefaultPolicyTables` | String | Yes | | `entityTableId` | UUID | Yes | @@ -2974,13 +3012,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -3167,219 +3205,436 @@ const updated = await db.notificationsModule.update({ where: { id: '' }, d const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.databaseProvisionModule` +### `db.inferenceLogModule` -CRUD operations for DatabaseProvisionModule records. +CRUD operations for InferenceLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseName` | String | Yes | -| `ownerId` | UUID | Yes | -| `subdomain` | String | Yes | -| `domain` | String | Yes | -| `modules` | String | Yes | -| `options` | JSON | Yes | -| `bootstrapUser` | Boolean | Yes | -| `status` | String | Yes | -| `errorMessage` | String | Yes | | `databaseId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | 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 } }).execute(); +// List all inferenceLogModule records +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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 } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.appAdminGrant` +### `db.computeLogModule` -CRUD operations for AppAdminGrant records. +CRUD operations for ComputeLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.appOwnerGrant` +### `db.transferLogModule` -CRUD operations for AppOwnerGrant records. +CRUD operations for TransferLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `transferLogTableId` | UUID | Yes | +| `transferLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all transferLogModule records +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.appGrant` +### `db.storageLogModule` -CRUD operations for AppGrant records. +CRUD operations for StorageLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `storageLogTableId` | UUID | Yes | +| `storageLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all storageLogModule records +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` +### `db.dbUsageModule` -CRUD operations for OrgMembership records. +CRUD operations for DbUsageModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); +// List all dbUsageModule records +const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMember` +### `db.databaseProvisionModule` -CRUD operations for OrgMember records. +CRUD operations for DatabaseProvisionModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isAdmin` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all 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(); - +| `databaseName` | String | Yes | +| `ownerId` | UUID | Yes | +| `subdomain` | String | Yes | +| `domain` | String | Yes | +| `modules` | String | Yes | +| `options` | JSON | Yes | +| `bootstrapUser` | Boolean | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | 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 } }).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 } }).execute(); + +// Create +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(); + +// Delete +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.appAdminGrant` + +CRUD operations for AppAdminGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appGrant` + +CRUD operations for AppGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMembership` + +CRUD operations for OrgMembership records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | + +**Operations:** + +```typescript +// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); + +// Create +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMember` + +CRUD operations for OrgMember records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isAdmin` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all 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(); + // Create const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); @@ -4230,14 +4485,15 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.auditLogAuth` -CRUD operations for AuditLog records. +CRUD operations for AuditLogAuth records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | | `event` | String | Yes | | `actorId` | UUID | Yes | @@ -4245,148 +4501,164 @@ CRUD operations for AuditLog records. | `userAgent` | String | Yes | | `ipAddress` | InternetAddress | Yes | | `success` | Boolean | Yes | -| `createdAt` | Datetime | No | **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 } }).execute(); +// List all auditLogAuth records +const items = await db.auditLogAuth.findMany({ select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: 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 } }).execute(); +const item = await db.auditLogAuth.findOne({ id: '', select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.auditLogAuth.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.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLogAuth.delete({ where: { id: '' } }).execute(); ``` -### `db.agentThread` +### `db.identityProvider` -CRUD operations for AgentThread records. +CRUD operations for IdentityProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `title` | String | Yes | -| `mode` | String | Yes | -| `model` | String | Yes | -| `systemPrompt` | String | Yes | -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `status` | String | Yes | +| `slug` | String | Yes | +| `kind` | String | Yes | +| `displayName` | String | Yes | +| `enabled` | Boolean | Yes | +| `isBuiltIn` | Boolean | Yes | **Operations:** ```typescript -// List all agentThread records -const items = await db.agentThread.findMany({ select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); +// List all identityProvider records +const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Get one by id -const item = await db.agentThread.findOne({ id: '', select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); +const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Create -const created = await db.agentThread.create({ data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, select: { id: true } }).execute(); +const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentThread.update({ where: { id: '' }, data: { title: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.agentMessage` +### `db.ref` -CRUD operations for AgentMessage records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `threadId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `authorRole` | String | Yes | | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | -| `parts` | JSON | Yes | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all agentMessage records -const items = await db.agentMessage.findMany({ select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentMessage.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.agentTask` +### `db.store` -CRUD operations for AgentTask records. +CRUD operations for Store records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `threadId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `description` | String | Yes | -| `source` | String | Yes | -| `error` | String | Yes | | `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | -| `status` | String | Yes | **Operations:** ```typescript -// List all agentTask records -const items = await db.agentTask.findMany({ select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentTask.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` +### `db.appPermissionDefault` -CRUD operations for RoleType records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | +| `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 | **Operations:** @@ -4408,166 +4680,175 @@ const updated = await db.roleType.update({ where: { id: '' }, data: { name: const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvider` +### `db.migrateFile` -CRUD operations for IdentityProvider records. +CRUD operations for MigrateFile records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `slug` | String | Yes | -| `kind` | String | Yes | -| `displayName` | String | Yes | -| `enabled` | Boolean | Yes | -| `isBuiltIn` | Boolean | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | **Operations:** ```typescript -// List all identityProvider records -const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); // Get one by id -const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); // Create -const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.devicesModule` -CRUD operations for Ref records. +CRUD operations for DevicesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `userDevicesTableId` | UUID | Yes | +| `deviceSettingsTableId` | UUID | Yes | +| `userDevicesTable` | String | Yes | +| `deviceSettingsTable` | String | 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(); +// List all devicesModule records +const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: 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(); +const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.appMembershipDefault` -CRUD operations for Store records. +CRUD operations for AppMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all 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.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: 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.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.orgMembershipDefault` -CRUD operations for AppPermissionDefault records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.nodeTypeRegistry` -CRUD operations for AppLimitCreditCode records. +CRUD operations for NodeTypeRegistry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// 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 } }).execute(); -// Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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 } }).execute(); // Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -4696,203 +4977,137 @@ const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { n const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.userConnectedAccount` -CRUD operations for MembershipType records. +CRUD operations for UserConnectedAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | +| `id` | UUID | No | +| `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 membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all userConnectedAccount records +const items = await db.userConnectedAccount.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.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.userConnectedAccount.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.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.migrateFile` +### `db.appLimitDefault` -CRUD operations for MigrateFile records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.devicesModule` +### `db.orgLimitDefault` -CRUD operations for DevicesModule records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `userDevicesTableId` | UUID | Yes | -| `deviceSettingsTableId` | UUID | Yes | -| `userDevicesTable` | String | Yes | -| `deviceSettingsTable` | String | Yes | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all devicesModule records -const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.nodeTypeRegistry` +### `db.appLimitCreditCode` -CRUD operations for NodeTypeRegistry records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | No | -| `slug` | String | Yes | -| `category` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `parameterSchema` | JSON | Yes | -| `tags` | String | Yes | +| `id` | UUID | No | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | 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 } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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 } }).execute(); +// Get one by id +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -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.appLimitCreditCode.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitWarning` @@ -4928,42 +5143,6 @@ const updated = await db.appLimitWarning.update({ where: { id: '' }, data: const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.userConnectedAccount` - -CRUD operations for UserConnectedAccount 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 | - -**Operations:** - -```typescript -// List all userConnectedAccount records -const items = await db.userConnectedAccount.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.userConnectedAccount.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.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); -``` - ### `db.commit` CRUD operations for Commit records. @@ -4974,7 +5153,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -4986,13 +5165,13 @@ CRUD operations for Commit records. ```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 } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: 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 } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: 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: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', 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(); @@ -5075,108 +5254,38 @@ const updated = await db.rateLimitsModule.update({ where: { id: '' }, data const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.usageSnapshot` - -CRUD operations for UsageSnapshot records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `databaseId` | UUID | Yes | -| `metricName` | String | Yes | -| `metricValue` | BigInt | Yes | -| `dimensions` | JSON | Yes | -| `capturedAt` | Datetime | Yes | -| `id` | UUID | No | - -**Operations:** - -```typescript -// List all usageSnapshot records -const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); - -// Get one by id -const item = await db.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); - -// Create -const created = await db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembershipDefault` - -CRUD operations for AppMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | - -**Operations:** - -```typescript -// List all 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(); - -// Create -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(); - -// Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipDefault` +### `db.membershipType` -CRUD operations for OrgMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: 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 } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsSetting` @@ -5217,83 +5326,48 @@ const updated = await db.rlsSetting.update({ where: { id: '' }, data: { da const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` - -CRUD operations for AppLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` +### `db.rlsModule` -CRUD operations for OrgLimitEvent records. +CRUD operations for RlsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// 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 } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, 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.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.rlsModule` +### `db.agentChatModule` -CRUD operations for RlsModule records. +CRUD operations for AgentChatModule records. **Fields:** @@ -5303,31 +5377,32 @@ CRUD operations for RlsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `authenticate` | String | Yes | -| `authenticateStrict` | String | Yes | -| `currentRole` | String | Yes | -| `currentRoleId` | String | Yes | +| `apiId` | UUID | Yes | +| `threadTableId` | UUID | Yes | +| `threadTableName` | String | Yes | +| `messageTableId` | UUID | Yes | +| `messageTableName` | String | Yes | +| `taskTableId` | UUID | Yes | +| `taskTableName` | String | Yes | +| `prefix` | String | 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 } }).execute(); +// List all agentChatModule records +const items = await db.agentChatModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: 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 } }).execute(); +const item = await db.agentChatModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: true } }).execute(); // Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); +const created = await db.agentChatModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', apiId: '', threadTableId: '', threadTableName: '', messageTableId: '', messageTableName: '', taskTableId: '', taskTableName: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.agentChatModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentChatModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rateLimitMetersModule` @@ -5452,6 +5527,84 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseSetting` CRUD operations for DatabaseSetting records. @@ -5494,87 +5647,90 @@ const updated = await db.databaseSetting.update({ where: { id: '' }, data: const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.billingModule` +### `db.orgMembershipSetting` -CRUD operations for BillingModule records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `metersTableId` | UUID | Yes | -| `metersTableName` | String | Yes | -| `planSubscriptionsTableId` | UUID | Yes | -| `planSubscriptionsTableName` | String | Yes | -| `ledgerTableId` | UUID | Yes | -| `ledgerTableName` | String | Yes | -| `balancesTableId` | UUID | Yes | -| `balancesTableName` | String | Yes | -| `recordUsageFunction` | String | Yes | -| `prefix` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.astMigration` +### `db.appMembership` -CRUD operations for AstMigration records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | +| `id` | UUID | No | | `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | 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 } }).execute(); +// List all 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.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(); +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.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, 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.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -5619,46 +5775,45 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > 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. -### `db.orgMembershipSetting` +### `db.astMigration` -CRUD operations for OrgMembershipSetting records. +CRUD operations for AstMigration records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// 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 } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: 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.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, 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.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.webauthnSetting` @@ -5707,48 +5862,50 @@ const updated = await db.webauthnSetting.update({ where: { id: '' }, data: const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` +### `db.billingModule` -CRUD operations for AppMembership records. +CRUD operations for BillingModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `metersTableId` | UUID | Yes | +| `metersTableName` | String | Yes | +| `planSubscriptionsTableId` | UUID | Yes | +| `planSubscriptionsTableName` | String | Yes | +| `ledgerTableId` | UUID | Yes | +| `ledgerTableName` | String | Yes | +| `balancesTableId` | UUID | Yes | +| `balancesTableName` | String | Yes | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | +| `meterSourcesTableId` | UUID | Yes | +| `meterSourcesTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all 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(); +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: 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.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: 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.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` ### `db.billingProviderModule` @@ -5936,12 +6093,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.resolveBlueprintField` @@ -6058,97 +6215,97 @@ orgPermissionsGetMaskByNames const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` -### `db.query.appPermissionsGetByMask` +### `db.query.getAllObjectsFromRoot` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` +### `db.query.getPathObjectsFromRoot` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getAllObjectsFromRoot` +### `db.query.getObjectAtPath` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `sId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` -### `db.query.getPathObjectsFromRoot` +### `db.query.appPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getObjectAtPath` +### `db.query.orgPermissionsGetByMask` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.currentUser` @@ -6414,7 +6571,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -6429,12 +6586,12 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.constructBlueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - **Type:** mutation - **Arguments:** @@ -6489,7 +6646,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.copyTemplateToBlueprint` @@ -6522,6 +6679,21 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); ``` +### `db.mutation.signInCrossOrigin` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInCrossOriginInput (required) | + +```typescript +const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.bootstrapUser` bootstrapUser @@ -6537,6 +6709,36 @@ bootstrapUser const result = await db.mutation.bootstrapUser({ input: '' }).execute(); ``` +### `db.mutation.signUp` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` + +### `db.mutation.signIn` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` + ### `db.mutation.setFieldOrder` setFieldOrder @@ -6624,7 +6826,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -6639,7 +6841,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.provisionDatabaseWithUser` @@ -6732,21 +6934,6 @@ applyRls const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.signInCrossOrigin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` - ### `db.mutation.createUserDatabase` Creates a new user database with all required modules, permissions, and RLS policies. @@ -6808,94 +6995,64 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` - -### `db.mutation.forgotPassword` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` - -### `db.mutation.signUp` +### `db.mutation.requestCrossOriginToken` -signUp +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.requestCrossOriginToken` +### `db.mutation.provisionTable` -requestCrossOriginToken +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ProvisionTableInput (required) | ```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +const result = await db.mutation.provisionTable({ input: '' }).execute(); ``` -### `db.mutation.signIn` +### `db.mutation.sendVerificationEmail` -signIn +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.provisionTable` +### `db.mutation.forgotPassword` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-react/src/public/orm/index.ts b/sdk/constructive-react/src/public/orm/index.ts index a605cf0e2b..f69517e744 100644 --- a/sdk/constructive-react/src/public/orm/index.ts +++ b/sdk/constructive-react/src/public/orm/index.ts @@ -8,9 +8,9 @@ import type { OrmClientConfig } from './client'; 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'; -import { ObjectModel } from './models/object'; import { DatabaseModel } from './models/database'; import { SchemaModel } from './models/schema'; import { TableModel } from './models/table'; @@ -35,6 +35,7 @@ import { RelationProvisionModel } from './models/relationProvision'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RealtimeModuleModel } from './models/realtimeModule'; +import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { EnumModel } from './models/enum'; @@ -59,7 +60,7 @@ import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; import { EmailsModuleModel } from './models/emailsModule'; -import { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule'; +import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { InvitesModuleModel } from './models/invitesModule'; import { EventsModuleModel } from './models/eventsModule'; import { LimitsModuleModel } from './models/limitsModule'; @@ -80,6 +81,11 @@ import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; import { NotificationsModuleModel } from './models/notificationsModule'; +import { InferenceLogModuleModel } from './models/inferenceLogModule'; +import { ComputeLogModuleModel } from './models/computeLogModule'; +import { TransferLogModuleModel } from './models/transferLogModule'; +import { StorageLogModuleModel } from './models/storageLogModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; @@ -109,54 +115,51 @@ import { AppInviteModel } from './models/appInvite'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AuditLogModel } from './models/auditLog'; -import { AgentThreadModel } from './models/agentThread'; -import { AgentMessageModel } from './models/agentMessage'; -import { AgentTaskModel } from './models/agentTask'; -import { RoleTypeModel } from './models/roleType'; +import { AuditLogAuthModel } from './models/auditLogAuth'; import { IdentityProviderModel } from './models/identityProvider'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { RoleTypeModel } from './models/roleType'; +import { MigrateFileModel } from './models/migrateFile'; +import { DevicesModuleModel } from './models/devicesModule'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; import { AppLimitCapModel } from './models/appLimitCap'; import { OrgLimitCapModel } from './models/orgLimitCap'; -import { MembershipTypeModel } from './models/membershipType'; -import { MigrateFileModel } from './models/migrateFile'; -import { DevicesModuleModel } from './models/devicesModule'; -import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { UserConnectedAccountModel } from './models/userConnectedAccount'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { UserConnectedAccountModel } from './models/userConnectedAccount'; import { CommitModel } from './models/commit'; import { PubkeySettingModel } from './models/pubkeySetting'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; -import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { RlsSettingModel } from './models/rlsSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { RlsModuleModel } from './models/rlsModule'; +import { AgentChatModuleModel } from './models/agentChatModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { PlansModuleModel } from './models/plansModule'; import { SqlActionModel } from './models/sqlAction'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { DatabaseSettingModel } from './models/databaseSetting'; -import { BillingModuleModel } from './models/billingModule'; -import { AstMigrationModel } from './models/astMigration'; -import { UserModel } from './models/user'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { WebauthnSettingModel } from './models/webauthnSetting'; import { AppMembershipModel } from './models/appMembership'; +import { UserModel } from './models/user'; +import { AstMigrationModel } from './models/astMigration'; +import { WebauthnSettingModel } from './models/webauthnSetting'; +import { BillingModuleModel } from './models/billingModule'; import { BillingProviderModuleModel } from './models/billingProviderModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; @@ -191,9 +194,9 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), + object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), - object: new ObjectModel(client), database: new DatabaseModel(client), schema: new SchemaModel(client), table: new TableModel(client), @@ -218,6 +221,7 @@ export function createClient(config: OrmClientConfig) { sessionSecretsModule: new SessionSecretsModuleModel(client), identityProvidersModule: new IdentityProvidersModuleModel(client), realtimeModule: new RealtimeModuleModel(client), + configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), enum: new EnumModel(client), @@ -242,7 +246,7 @@ export function createClient(config: OrmClientConfig) { defaultIdsModule: new DefaultIdsModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), emailsModule: new EmailsModuleModel(client), - encryptedSecretsModule: new EncryptedSecretsModuleModel(client), + configSecretsUserModule: new ConfigSecretsUserModuleModel(client), invitesModule: new InvitesModuleModel(client), eventsModule: new EventsModuleModel(client), limitsModule: new LimitsModuleModel(client), @@ -263,6 +267,11 @@ export function createClient(config: OrmClientConfig) { webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), notificationsModule: new NotificationsModuleModel(client), + inferenceLogModule: new InferenceLogModuleModel(client), + computeLogModule: new ComputeLogModuleModel(client), + transferLogModule: new TransferLogModuleModel(client), + storageLogModule: new StorageLogModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), @@ -292,48 +301,45 @@ export function createClient(config: OrmClientConfig) { appClaimedInvite: new AppClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - auditLog: new AuditLogModel(client), - agentThread: new AgentThreadModel(client), - agentMessage: new AgentMessageModel(client), - agentTask: new AgentTaskModel(client), - roleType: new RoleTypeModel(client), + auditLogAuth: new AuditLogAuthModel(client), identityProvider: new IdentityProviderModel(client), ref: new RefModel(client), store: new StoreModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), + roleType: new RoleTypeModel(client), + migrateFile: new MigrateFileModel(client), + devicesModule: new DevicesModuleModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + nodeTypeRegistry: new NodeTypeRegistryModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), appLimitCap: new AppLimitCapModel(client), orgLimitCap: new OrgLimitCapModel(client), - membershipType: new MembershipTypeModel(client), - migrateFile: new MigrateFileModel(client), - devicesModule: new DevicesModuleModel(client), - nodeTypeRegistry: new NodeTypeRegistryModel(client), + userConnectedAccount: new UserConnectedAccountModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), appLimitWarning: new AppLimitWarningModel(client), - userConnectedAccount: new UserConnectedAccountModel(client), commit: new CommitModel(client), pubkeySetting: new PubkeySettingModel(client), rateLimitsModule: new RateLimitsModuleModel(client), - usageSnapshot: new UsageSnapshotModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), rlsSetting: new RlsSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), rlsModule: new RlsModuleModel(client), + agentChatModule: new AgentChatModuleModel(client), rateLimitMetersModule: new RateLimitMetersModuleModel(client), plansModule: new PlansModuleModel(client), sqlAction: new SqlActionModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), databaseSetting: new DatabaseSettingModel(client), - billingModule: new BillingModuleModel(client), - astMigration: new AstMigrationModel(client), - user: new UserModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), - webauthnSetting: new WebauthnSettingModel(client), appMembership: new AppMembershipModel(client), + user: new UserModel(client), + astMigration: new AstMigrationModel(client), + webauthnSetting: new WebauthnSettingModel(client), + billingModule: new BillingModuleModel(client), billingProviderModule: new BillingProviderModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts index 8a39234a74..b8693547c6 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -254,6 +254,16 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } +export interface Object { + hashUuid?: string | null; + id: string; + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; @@ -278,16 +288,6 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} export interface Database { id: string; ownerId?: string | null; @@ -786,6 +786,14 @@ export interface RealtimeModule { interval?: string | null; notifyChannel?: string | null; } +/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ +export interface ConfigSecretsOrgModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface SchemaGrant { id: string; databaseId?: string | null; @@ -944,6 +952,7 @@ export interface Partition { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; createdAt?: string | null; @@ -1103,7 +1112,7 @@ export interface EmailsModule { ownerTableId?: string | null; tableName?: string | null; } -export interface EncryptedSecretsModule { +export interface ConfigSecretsUserModule { id: string; databaseId?: string | null; schemaId?: string | null; @@ -1456,6 +1465,7 @@ export interface StorageModule { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -1580,36 +1590,34 @@ export interface EntityTypeProvision { */ hasInviteAchievements?: boolean | null; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: Record | null; /** @@ -1737,6 +1745,93 @@ export interface NotificationsModule { hasDigestMetadata?: boolean | null; hasSubscriptions?: boolean | null; } +export interface InferenceLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface ComputeLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface TransferLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface StorageLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface DbUsageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: 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 { id: string; @@ -1748,7 +1843,7 @@ export interface DatabaseProvisionModule { subdomain?: string | null; /** Base domain for the database (e.g., example.com) */ domain?: string | null; - /** Array of module IDs to install, or ["all"] for all modules */ + /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ modules?: string[] | null; /** Additional configuration options for provisioning */ options?: Record | null; @@ -2243,8 +2338,10 @@ 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 { +/** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ +export interface AuditLogAuth { + createdAt?: string | null; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; @@ -2258,74 +2355,6 @@ export interface AuditLog { ipAddress?: string | null; /** Whether the authentication attempt succeeded */ success?: boolean | null; - /** Timestamp when the audit event was recorded */ - createdAt?: string | null; -} -/** Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. */ -export interface AgentThread { - /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ - title?: string | null; - /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ - mode?: string | null; - /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ - model?: string | null; - /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ - systemPrompt?: string | null; - id: string; - /** Timestamp when this record was created */ - createdAt?: string | null; - /** Timestamp when this record was last updated */ - updatedAt?: string | null; - /** User who owns this record within the entity */ - ownerId?: string | null; - /** Entity this record belongs to */ - entityId?: string | null; - /** Current status of this record */ - status?: string | null; -} -/** A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. */ -export interface AgentMessage { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId?: string | null; - /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ - entityId?: string | null; - /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ - authorRole?: string | null; - id: string; - /** Timestamp when this record was created */ - createdAt?: string | null; - /** Timestamp when this record was last updated */ - updatedAt?: string | null; - /** User who owns this record */ - ownerId?: string | null; - /** JSON metadata for extensible key-value storage */ - parts?: Record | null; -} -/** An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. */ -export interface AgentTask { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId?: string | null; - /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ - entityId?: string | null; - /** Natural-language description of the work to do. Required. */ - description?: string | null; - /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ - source?: string | null; - /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ - error?: string | null; - id: string; - /** Timestamp when this record was created */ - createdAt?: string | null; - /** Timestamp when this record was last updated */ - updatedAt?: string | null; - /** User who owns this record */ - ownerId?: string | null; - /** Current status of this record */ - status?: string | null; -} -export interface RoleType { - id: number; - name?: string | null; } export interface IdentityProvider { slug?: string | null; @@ -2340,7 +2369,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -2350,8 +2379,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -2362,68 +2391,9 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { - id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface AppLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface OrgLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ +export interface RoleType { id: number; - /** Human-readable name of the membership type */ name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; } export interface MigrateFile { id: string; @@ -2439,122 +2409,6 @@ export interface DevicesModule { userDevicesTable?: string | null; deviceSettingsTable?: string | null; } -export interface NodeTypeRegistry { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; -} -export interface UserConnectedAccount { - id: string; - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** A commit records changes to the repository. */ -export interface Commit { - /** The primary unique identifier for the commit. */ - id: string; - /** The commit message */ - message?: string | null; - /** The repository identifier */ - databaseId?: string | null; - storeId?: string | null; - /** Parent commits */ - parentIds?: string[] | null; - /** The author of the commit */ - authorId?: string | null; - /** The committer of the commit */ - committerId?: string | null; - /** The root of the tree */ - treeId?: string | null; - date?: string | null; -} -/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ -export interface PubkeySetting { - /** Unique identifier for this pubkey settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ - schemaId?: string | null; - /** Crypto network for key derivation (e.g. cosmos, ethereum) */ - cryptoNetwork?: string | null; - /** Field name used to identify the user in crypto auth functions */ - userField?: string | null; - /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ - signUpWithKeyFunctionId?: string | null; - /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ - signInRequestChallengeFunctionId?: string | null; - /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ - signInRecordFailureFunctionId?: string | null; - /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ - signInWithChallengeFunctionId?: string | null; -} -export interface RateLimitsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - rateLimitSettingsTableId?: string | null; - ipRateLimitsTableId?: string | null; - rateLimitsTableId?: string | null; - rateLimitSettingsTable?: string | null; - ipRateLimitsTable?: string | null; - rateLimitsTable?: string | null; -} -/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ -export interface UsageSnapshot { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string | null; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string | null; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string | null; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: Record | null; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string | null; - id: string; -} /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { id: string; @@ -2579,6 +2433,171 @@ export interface OrgMembershipDefault { /** References the entity these membership defaults apply to */ entityId?: string | null; } +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +export interface AppLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +export interface OrgLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface AppLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface OrgLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +export interface UserConnectedAccount { + id: string; + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { + id: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; +} +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface AppLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; +} +/** A commit records changes to the repository. */ +export interface Commit { + /** The primary unique identifier for the commit. */ + id: string; + /** The commit message */ + message?: string | null; + /** The scope identifier */ + scopeId?: string | null; + storeId?: string | null; + /** Parent commits */ + parentIds?: string[] | null; + /** The author of the commit */ + authorId?: string | null; + /** The committer of the commit */ + committerId?: string | null; + /** The root of the tree */ + treeId?: string | null; + date?: string | null; +} +/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ +export interface PubkeySetting { + /** Unique identifier for this pubkey settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string | null; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string | null; + /** Field name used to identify the user in crypto auth functions */ + userField?: string | null; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string | null; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string | null; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string | null; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string | null; +} +export interface RateLimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + rateLimitSettingsTableId?: string | null; + ipRateLimitsTableId?: string | null; + rateLimitsTableId?: string | null; + rateLimitSettingsTable?: string | null; + ipRateLimitsTable?: string | null; + rateLimitsTable?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; +} /** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ export interface RlsSetting { /** Unique identifier for this RLS settings record */ @@ -2602,48 +2621,6 @@ export interface RlsSetting { /** Reference to the current_ip_address function (FK to metaschema_public.function) */ currentIpAddressFunctionId?: string | null; } -/** Append-only log of limit events for historical reporting and audit */ -export interface AppLimitEvent { - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface OrgLimitEvent { - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} export interface RlsModule { id: string; databaseId?: string | null; @@ -2657,6 +2634,20 @@ export interface RlsModule { currentRole?: string | null; currentRoleId?: string | null; } +export interface AgentChatModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + apiId?: string | null; + threadTableId?: string | null; + threadTableName?: string | null; + messageTableId?: string | null; + messageTableName?: string | null; + taskTableId?: string | null; + taskTableName?: string | null; + prefix?: string | null; +} export interface RateLimitMetersModule { id: string; databaseId?: string | null; @@ -2701,6 +2692,54 @@ export interface SqlAction { actionId?: string | null; actorId?: string | null; } +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} /** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ export interface DatabaseSetting { /** Unique identifier for this settings record */ @@ -2732,53 +2771,6 @@ export interface DatabaseSetting { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record | null; } -export interface BillingModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; -} -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ - 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. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ - searchScore?: number | null; -} /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { id: string; @@ -2805,6 +2797,66 @@ export interface OrgMembershipSetting { /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ limitAllocationMode?: string | null; } +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + profileId?: string | null; +} +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ + 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. 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; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} /** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ export interface WebauthnSetting { /** Unique identifier for this WebAuthn settings record */ @@ -2844,34 +2896,25 @@ export interface WebauthnSetting { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { +export interface BillingModule { id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; } export interface BillingProviderModule { id: string; @@ -2933,9 +2976,9 @@ export interface PageInfo { export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} +export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} -export interface ObjectRelations {} export interface DatabaseRelations { owner?: User | null; databaseSetting?: DatabaseSetting | null; @@ -2950,6 +2993,7 @@ export interface DatabaseRelations { billingModule?: BillingModule | null; billingProviderModule?: BillingProviderModule | null; rateLimitMetersModule?: RateLimitMetersModule | null; + agentChatModule?: AgentChatModule | null; schemas?: ConnectionResult; tables?: ConnectionResult
; checkConstraints?: ConnectionResult; @@ -2991,7 +3035,7 @@ export interface DatabaseRelations { defaultIdsModules?: ConnectionResult; denormalizedTableFields?: ConnectionResult; emailsModules?: ConnectionResult; - encryptedSecretsModules?: ConnectionResult; + configSecretsUserModules?: ConnectionResult; invitesModules?: ConnectionResult; eventsModules?: ConnectionResult; limitsModules?: ConnectionResult; @@ -3016,6 +3060,12 @@ export interface DatabaseRelations { identityProvidersModules?: ConnectionResult; notificationsModules?: ConnectionResult; realtimeModules?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; + inferenceLogModules?: ConnectionResult; + computeLogModules?: ConnectionResult; + transferLogModules?: ConnectionResult; + storageLogModules?: ConnectionResult; + dbUsageModules?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -3033,6 +3083,7 @@ export interface SchemaRelations { realtimeModulesByPrivateSchemaId?: ConnectionResult; realtimeModules?: ConnectionResult; realtimeModulesBySubscriptionsSchemaId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface TableRelations { database?: Database | null; @@ -3064,6 +3115,7 @@ export interface TableRelations { realtimeModulesByChangeLogTableId?: ConnectionResult; realtimeModulesByListenerNodeTableId?: ConnectionResult; realtimeModulesBySourceRegistryTableId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -3173,6 +3225,11 @@ export interface RealtimeModuleRelations { sourceRegistryTable?: Table | null; subscriptionsSchema?: Schema | null; } +export interface ConfigSecretsOrgModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; @@ -3293,7 +3350,7 @@ export interface EmailsModuleRelations { schema?: Schema | null; table?: Table | null; } -export interface EncryptedSecretsModuleRelations { +export interface ConfigSecretsUserModuleRelations { database?: Database | null; schema?: Schema | null; table?: Table | null; @@ -3480,6 +3537,43 @@ export interface NotificationsModuleRelations { schema?: Schema | null; userSettingsTableByUserSettingsTableId?: Table | null; } +export interface InferenceLogModuleRelations { + database?: Database | null; + inferenceLogTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usageDailyTable?: Table | null; +} +export interface ComputeLogModuleRelations { + computeLogTable?: Table | null; + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usageDailyTable?: Table | null; +} +export interface TransferLogModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + transferLogTable?: Table | null; + usageDailyTable?: Table | null; +} +export interface StorageLogModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + storageLogTable?: Table | null; + usageDailyTable?: Table | null; +} +export interface DbUsageModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + queryStatsDailyTable?: Table | null; + queryStatsLogTable?: Table | null; + schema?: Schema | null; + tableStatsDailyTable?: Table | null; + tableStatsLogTable?: Table | null; +} export interface DatabaseProvisionModuleRelations { database?: Database | null; } @@ -3596,37 +3690,14 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } -export interface AuditLogRelations { +export interface AuditLogAuthRelations { actor?: User | null; } -export interface AgentThreadRelations { - entity?: User | null; - owner?: User | null; - agentMessagesByThreadId?: ConnectionResult; - agentTasksByThreadId?: ConnectionResult; -} -export interface AgentMessageRelations { - owner?: User | null; - thread?: AgentThread | null; -} -export interface AgentTaskRelations { - owner?: User | null; - thread?: AgentThread | null; -} -export interface RoleTypeRelations {} export interface IdentityProviderRelations {} export interface RefRelations {} export interface StoreRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface AppLimitCapsDefaultRelations {} -export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface MembershipTypeRelations {} +export interface RoleTypeRelations {} export interface MigrateFileRelations {} export interface DevicesModuleRelations { database?: Database | null; @@ -3634,7 +3705,16 @@ export interface DevicesModuleRelations { schema?: Schema | null; userDevicesTableByUserDevicesTableId?: Table | null; } +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations { + entity?: User | null; +} export interface NodeTypeRegistryRelations {} +export interface AppLimitCapsDefaultRelations {} +export interface OrgLimitCapsDefaultRelations {} +export interface AppLimitCapRelations {} +export interface OrgLimitCapRelations {} +export interface UserConnectedAccountRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; @@ -3642,8 +3722,11 @@ export interface AppLimitDefaultRelations { export interface OrgLimitDefaultRelations { orgLimitCreditsByDefaultLimitId?: ConnectionResult; } +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} export interface AppLimitWarningRelations {} -export interface UserConnectedAccountRelations {} export interface CommitRelations {} export interface PubkeySettingRelations { database?: Database | null; @@ -3660,11 +3743,7 @@ export interface RateLimitsModuleRelations { rateLimitsTableByRateLimitsTableId?: Table | null; schema?: Schema | null; } -export interface UsageSnapshotRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} +export interface MembershipTypeRelations {} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -3676,8 +3755,6 @@ export interface RlsSettingRelations { database?: Database | null; roleSchema?: Schema | null; } -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface RlsModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3686,6 +3763,15 @@ export interface RlsModuleRelations { sessionsTable?: Table | null; usersTable?: Table | null; } +export interface AgentChatModuleRelations { + api?: Api | null; + database?: Database | null; + messageTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + taskTable?: Table | null; + threadTable?: Table | null; +} export interface RateLimitMetersModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3704,19 +3790,17 @@ export interface PlansModuleRelations { schema?: Schema | null; } export interface SqlActionRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface DatabaseSettingRelations { database?: Database | null; } -export interface BillingModuleRelations { - balancesTable?: Table | null; - database?: Database | null; - ledgerTable?: Table | null; - metersTable?: Table | null; - planSubscriptionsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; +export interface OrgMembershipSettingRelations { + entity?: User | null; +} +export interface AppMembershipRelations { + actor?: User | null; } -export interface AstMigrationRelations {} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -3773,15 +3857,9 @@ export interface UserRelations { orgClaimedInvitesByEntityId?: ConnectionResult; orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; - auditLogsByActorId?: ConnectionResult; - agentThreadsByEntityId?: ConnectionResult; - ownedAgentThreads?: ConnectionResult; - ownedAgentMessages?: ConnectionResult; - ownedAgentTasks?: ConnectionResult; -} -export interface OrgMembershipSettingRelations { - entity?: User | null; + auditLogAuthsByActorId?: ConnectionResult; } +export interface AstMigrationRelations {} export interface WebauthnSettingRelations { credentialsSchema?: Schema | null; credentialsTable?: Table | null; @@ -3794,8 +3872,16 @@ export interface WebauthnSettingRelations { sessionsTable?: Table | null; userField?: Field | null; } -export interface AppMembershipRelations { - actor?: User | null; +export interface BillingModuleRelations { + balancesTable?: Table | null; + database?: Database | null; + ledgerTable?: Table | null; + meterCreditsTable?: Table | null; + meterSourcesTable?: Table | null; + metersTable?: Table | null; + planSubscriptionsTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; } export interface BillingProviderModuleRelations { billingCustomersTable?: Table | null; @@ -3826,9 +3912,9 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & 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; -export type ObjectWithRelations = Object & ObjectRelations; export type DatabaseWithRelations = Database & DatabaseRelations; export type SchemaWithRelations = Schema & SchemaRelations; export type TableWithRelations = Table & TableRelations; @@ -3858,6 +3944,8 @@ export type SessionSecretsModuleWithRelations = SessionSecretsModule & export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & IdentityProvidersModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & + ConfigSecretsOrgModuleRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type EnumWithRelations = Enum & EnumRelations; @@ -3885,8 +3973,8 @@ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleR export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; -export type EncryptedSecretsModuleWithRelations = EncryptedSecretsModule & - EncryptedSecretsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; @@ -3910,6 +3998,11 @@ export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & WebauthnCredentialsModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; +export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; +export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; +export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; @@ -3943,54 +4036,51 @@ export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; -export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; -export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type AuditLogAuthWithRelations = AuditLogAuth & AuditLogAuthRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; +export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; -export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; -export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; +export type UserConnectedAccountWithRelations = UserConnectedAccount & + UserConnectedAccountRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type UserConnectedAccountWithRelations = UserConnectedAccount & - UserConnectedAccountRelations; export type CommitWithRelations = Commit & CommitRelations; export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; -export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type AgentChatModuleWithRelations = AgentChatModule & AgentChatModuleRelations; export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type UserWithRelations = User & UserRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type UserWithRelations = User & UserRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; @@ -4007,6 +4097,16 @@ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -4021,16 +4121,6 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type DatabaseSelect = { id?: boolean; ownerId?: boolean; @@ -4079,6 +4169,9 @@ export type DatabaseSelect = { rateLimitMetersModule?: { select: RateLimitMetersModuleSelect; }; + agentChatModule?: { + select: AgentChatModuleSelect; + }; schemas?: { select: SchemaSelect; first?: number; @@ -4325,11 +4418,11 @@ export type DatabaseSelect = { filter?: EmailsModuleFilter; orderBy?: EmailsModuleOrderBy[]; }; - encryptedSecretsModules?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModules?: { + select: ConfigSecretsUserModuleSelect; first?: number; - filter?: EncryptedSecretsModuleFilter; - orderBy?: EncryptedSecretsModuleOrderBy[]; + filter?: ConfigSecretsUserModuleFilter; + orderBy?: ConfigSecretsUserModuleOrderBy[]; }; invitesModules?: { select: InvitesModuleSelect; @@ -4475,6 +4568,42 @@ export type DatabaseSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; + inferenceLogModules?: { + select: InferenceLogModuleSelect; + first?: number; + filter?: InferenceLogModuleFilter; + orderBy?: InferenceLogModuleOrderBy[]; + }; + computeLogModules?: { + select: ComputeLogModuleSelect; + first?: number; + filter?: ComputeLogModuleFilter; + orderBy?: ComputeLogModuleOrderBy[]; + }; + transferLogModules?: { + select: TransferLogModuleSelect; + first?: number; + filter?: TransferLogModuleFilter; + orderBy?: TransferLogModuleOrderBy[]; + }; + storageLogModules?: { + select: StorageLogModuleSelect; + first?: number; + filter?: StorageLogModuleFilter; + orderBy?: StorageLogModuleOrderBy[]; + }; + dbUsageModules?: { + select: DbUsageModuleSelect; + first?: number; + filter?: DbUsageModuleFilter; + orderBy?: DbUsageModuleOrderBy[]; + }; databaseProvisionModules?: { select: DatabaseProvisionModuleSelect; first?: number; @@ -4578,6 +4707,12 @@ export type SchemaSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type TableSelect = { id?: boolean; @@ -4765,6 +4900,12 @@ export type TableSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -5299,6 +5440,22 @@ export type RealtimeModuleSelect = { select: SchemaSelect; }; }; +export type ConfigSecretsOrgModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -5494,6 +5651,7 @@ export type PartitionSelect = { partitionKeyId?: boolean; interval?: boolean; retention?: boolean; + retentionKeepTable?: boolean; premake?: boolean; namingPattern?: boolean; createdAt?: boolean; @@ -5771,7 +5929,7 @@ export type EmailsModuleSelect = { select: TableSelect; }; }; -export type EncryptedSecretsModuleSelect = { +export type ConfigSecretsUserModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; @@ -6423,6 +6581,7 @@ export type StorageModuleSelect = { bucketsTableName?: boolean; filesTableName?: boolean; membershipType?: boolean; + storageKey?: boolean; policies?: boolean; skipDefaultPolicyTables?: boolean; entityTableId?: boolean; @@ -6621,6 +6780,174 @@ export type NotificationsModuleSelect = { select: TableSelect; }; }; +export type InferenceLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + inferenceLogTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type ComputeLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + computeLogTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type TransferLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + transferLogTableId?: boolean; + transferLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + transferLogTable?: { + select: TableSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type StorageLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + storageLogTableId?: boolean; + storageLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + storageLogTable?: { + select: TableSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type DbUsageModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + queryStatsDailyTable?: { + select: TableSelect; + }; + queryStatsLogTable?: { + select: TableSelect; + }; + schema?: { + select: SchemaSelect; + }; + tableStatsDailyTable?: { + select: TableSelect; + }; + tableStatsLogTable?: { + select: TableSelect; + }; +}; export type DatabaseProvisionModuleSelect = { id?: boolean; databaseName?: boolean; @@ -7104,7 +7431,8 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; -export type AuditLogSelect = { +export type AuditLogAuthSelect = { + createdAt?: boolean; id?: boolean; event?: boolean; actorId?: boolean; @@ -7112,79 +7440,10 @@ export type AuditLogSelect = { userAgent?: boolean; ipAddress?: boolean; success?: boolean; - createdAt?: boolean; actor?: { select: UserSelect; }; }; -export type AgentThreadSelect = { - title?: boolean; - mode?: boolean; - model?: boolean; - systemPrompt?: boolean; - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ownerId?: boolean; - entityId?: boolean; - status?: boolean; - entity?: { - select: UserSelect; - }; - owner?: { - select: UserSelect; - }; - agentMessagesByThreadId?: { - select: AgentMessageSelect; - first?: number; - filter?: AgentMessageFilter; - orderBy?: AgentMessageOrderBy[]; - }; - agentTasksByThreadId?: { - select: AgentTaskSelect; - first?: number; - filter?: AgentTaskFilter; - orderBy?: AgentTaskOrderBy[]; - }; -}; -export type AgentMessageSelect = { - threadId?: boolean; - entityId?: boolean; - authorRole?: boolean; - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ownerId?: boolean; - parts?: boolean; - owner?: { - select: UserSelect; - }; - thread?: { - select: AgentThreadSelect; - }; -}; -export type AgentTaskSelect = { - threadId?: boolean; - entityId?: boolean; - description?: boolean; - source?: boolean; - error?: boolean; - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ownerId?: boolean; - status?: boolean; - owner?: { - select: UserSelect; - }; - thread?: { - select: AgentThreadSelect; - }; -}; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; export type IdentityProviderSelect = { slug?: boolean; kind?: boolean; @@ -7195,14 +7454,14 @@ export type IdentityProviderSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; @@ -7210,54 +7469,9 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type AppLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type MembershipTypeSelect = { +export type RoleTypeSelect = { id?: boolean; name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; }; export type MigrateFileSelect = { id?: boolean; @@ -7285,6 +7499,27 @@ export type DevicesModuleSelect = { select: TableSelect; }; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; export type NodeTypeRegistrySelect = { name?: boolean; slug?: boolean; @@ -7294,6 +7529,38 @@ export type NodeTypeRegistrySelect = { parameterSchema?: boolean; tags?: boolean; }; +export type AppLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type AppLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type OrgLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type UserConnectedAccountSelect = { + id?: boolean; + ownerId?: boolean; + service?: boolean; + identifier?: boolean; + details?: boolean; + isVerified?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -7324,6 +7591,25 @@ export type OrgLimitDefaultSelect = { orderBy?: OrgLimitCreditOrderBy[]; }; }; +export type AppLimitCreditCodeSelect = { + id?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; +}; export type AppLimitWarningSelect = { id?: boolean; name?: boolean; @@ -7331,20 +7617,10 @@ export type AppLimitWarningSelect = { thresholdValue?: boolean; taskIdentifier?: boolean; }; -export type UserConnectedAccountSelect = { - id?: boolean; - ownerId?: boolean; - service?: boolean; - identifier?: boolean; - details?: boolean; - isVerified?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -7407,34 +7683,13 @@ export type RateLimitsModuleSelect = { select: SchemaSelect; }; }; -export type UsageSnapshotSelect = { - databaseId?: boolean; - metricName?: boolean; - metricValue?: boolean; - dimensions?: boolean; - capturedAt?: boolean; - id?: boolean; -}; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; export type RlsSettingSelect = { id?: boolean; @@ -7475,28 +7730,6 @@ export type RlsSettingSelect = { select: SchemaSelect; }; }; -export type AppLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7528,6 +7761,41 @@ export type RlsModuleSelect = { select: TableSelect; }; }; +export type AgentChatModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + apiId?: boolean; + threadTableId?: boolean; + threadTableName?: boolean; + messageTableId?: boolean; + messageTableName?: boolean; + taskTableId?: boolean; + taskTableName?: boolean; + prefix?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + messageTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + taskTable?: { + select: TableSelect; + }; + threadTable?: { + select: TableSelect; + }; +}; export type RateLimitMetersModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7611,6 +7879,32 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; +export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; export type DatabaseSettingSelect = { id?: boolean; databaseId?: boolean; @@ -7630,57 +7924,45 @@ export type DatabaseSettingSelect = { select: DatabaseSelect; }; }; -export type BillingModuleSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - metersTableId?: boolean; - metersTableName?: boolean; - planSubscriptionsTableId?: boolean; - planSubscriptionsTableName?: boolean; - ledgerTableId?: boolean; - ledgerTableName?: boolean; - balancesTableId?: boolean; - balancesTableName?: boolean; - recordUsageFunction?: boolean; - prefix?: boolean; - balancesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - ledgerTable?: { - select: TableSelect; - }; - metersTable?: { - select: TableSelect; - }; - planSubscriptionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; + entity?: { + select: UserSelect; }; }; -export type AstMigrationSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; createdAt?: boolean; - action?: boolean; - actionId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; }; export type UserSelect = { id?: boolean; @@ -8012,55 +8294,27 @@ export type UserSelect = { filter?: OrgClaimedInviteFilter; orderBy?: OrgClaimedInviteOrderBy[]; }; - auditLogsByActorId?: { - select: AuditLogSelect; + auditLogAuthsByActorId?: { + select: AuditLogAuthSelect; first?: number; - filter?: AuditLogFilter; - orderBy?: AuditLogOrderBy[]; - }; - agentThreadsByEntityId?: { - select: AgentThreadSelect; - first?: number; - filter?: AgentThreadFilter; - orderBy?: AgentThreadOrderBy[]; - }; - ownedAgentThreads?: { - select: AgentThreadSelect; - first?: number; - filter?: AgentThreadFilter; - orderBy?: AgentThreadOrderBy[]; - }; - ownedAgentMessages?: { - select: AgentMessageSelect; - first?: number; - filter?: AgentMessageFilter; - orderBy?: AgentMessageOrderBy[]; - }; - ownedAgentTasks?: { - select: AgentTaskSelect; - first?: number; - filter?: AgentTaskFilter; - orderBy?: AgentTaskOrderBy[]; + filter?: AuditLogAuthFilter; + orderBy?: AuditLogAuthOrderBy[]; }; }; -export type OrgMembershipSettingSelect = { +export type AstMigrationSelect = { id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; - entity?: { - select: UserSelect; - }; + action?: boolean; + actionId?: boolean; + actorId?: boolean; }; export type WebauthnSettingSelect = { id?: boolean; @@ -8112,25 +8366,51 @@ export type WebauthnSettingSelect = { select: FieldSelect; }; }; -export type AppMembershipSelect = { +export type BillingModuleSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; + meterSourcesTableId?: boolean; + meterSourcesTableName?: boolean; + recordUsageFunction?: boolean; + prefix?: boolean; + balancesTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + ledgerTable?: { + select: TableSelect; + }; + meterCreditsTable?: { + select: TableSelect; + }; + meterSourcesTable?: { + select: TableSelect; + }; + metersTable?: { + select: TableSelect; + }; + planSubscriptionsTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; }; }; export type BillingProviderModuleSelect = { @@ -8256,6 +8536,28 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8292,28 +8594,6 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface DatabaseFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8521,10 +8801,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -8653,6 +8933,34 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModules` relation. */ + inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; + /** `inferenceLogModules` exist. */ + inferenceLogModulesExist?: boolean; + /** Filter by the object’s `computeLogModules` relation. */ + computeLogModules?: DatabaseToManyComputeLogModuleFilter; + /** `computeLogModules` exist. */ + computeLogModulesExist?: boolean; + /** Filter by the object’s `transferLogModules` relation. */ + transferLogModules?: DatabaseToManyTransferLogModuleFilter; + /** `transferLogModules` exist. */ + transferLogModulesExist?: boolean; + /** Filter by the object’s `storageLogModules` relation. */ + storageLogModules?: DatabaseToManyStorageLogModuleFilter; + /** `storageLogModules` exist. */ + storageLogModulesExist?: boolean; + /** Filter by the object’s `dbUsageModules` relation. */ + dbUsageModules?: DatabaseToManyDbUsageModuleFilter; + /** `dbUsageModules` exist. */ + dbUsageModulesExist?: boolean; + /** Filter by the object’s `agentChatModule` relation. */ + agentChatModule?: AgentChatModuleFilter; + /** A related `agentChatModule` exists. */ + agentChatModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -8747,6 +9055,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface TableFilter { /** Filter by the object’s `id` field. */ @@ -8913,6 +9225,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface CheckConstraintFilter { /** Filter by the object’s `id` field. */ @@ -9788,6 +10104,30 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +export interface ConfigSecretsOrgModuleFilter { + /** 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} export interface SchemaGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10127,6 +10467,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -10514,7 +10856,7 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -export interface EncryptedSecretsModuleFilter { +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -10526,11 +10868,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -11461,6 +11803,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -11762,6 +12106,254 @@ export interface NotificationsModuleFilter { /** A related `userSettingsTableByUserSettingsTableId` exists. */ userSettingsTableByUserSettingsTableIdExists?: boolean; } +export interface InferenceLogModuleFilter { + /** 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 `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface ComputeLogModuleFilter { + /** 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 `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; + /** Filter by the object’s `computeLogTable` relation. */ + computeLogTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface TransferLogModuleFilter { + /** 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 `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `transferLogTable` relation. */ + transferLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface StorageLogModuleFilter { + /** 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 `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `storageLogTable` relation. */ + storageLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface DbUsageModuleFilter { + /** 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 `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `queryStatsDailyTable` relation. */ + queryStatsDailyTable?: TableFilter; + /** Filter by the object’s `queryStatsLogTable` relation. */ + queryStatsLogTable?: TableFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `tableStatsDailyTable` relation. */ + tableStatsDailyTable?: TableFilter; + /** Filter by the object’s `tableStatsLogTable` relation. */ + tableStatsLogTable?: TableFilter; +} export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -12644,7 +13236,9 @@ export interface OrgClaimedInviteFilter { /** A related `sender` exists. */ senderExists?: boolean; } -export interface AuditLogFilter { +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -12659,131 +13253,17 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ actorExists?: boolean; } -export interface AgentThreadFilter { - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Negates the expression. */ - not?: AgentThreadFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentTasksByThreadId` relation. */ - agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; - /** `agentTasksByThreadId` exist. */ - agentTasksByThreadIdExist?: boolean; -} -export interface AgentMessageFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Negates the expression. */ - not?: AgentMessageFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -export interface AgentTaskFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Negates the expression. */ - not?: AgentTaskFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; @@ -12807,8 +13287,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -12825,8 +13305,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -12850,111 +13330,17 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -export interface AppLimitCapsDefaultFilter { - /** 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?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -export interface OrgLimitCapsDefaultFilter { - /** 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?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface MembershipTypeFilter { +export interface RoleTypeFilter { /** Filter by the object’s `id` field. */ id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: RoleTypeFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: RoleTypeFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: RoleTypeFilter; } export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ @@ -13000,6 +13386,52 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } +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; +} +export interface OrgMembershipDefaultFilter { + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface NodeTypeRegistryFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; @@ -13022,6 +13454,90 @@ export interface NodeTypeRegistryFilter { /** Negates the expression. */ not?: NodeTypeRegistryFilter; } +export interface AppLimitCapsDefaultFilter { + /** 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?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitCapsDefaultFilter; +} +export interface OrgLimitCapsDefaultFilter { + /** 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?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} +export interface UserConnectedAccountFilter { + /** 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?: UserConnectedAccountFilter[]; + /** Checks for any expressions in this list. */ + or?: UserConnectedAccountFilter[]; + /** Negates the expression. */ + not?: UserConnectedAccountFilter; +} export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13066,6 +13582,32 @@ export interface OrgLimitDefaultFilter { /** `orgLimitCreditsByDefaultLimitId` exist. */ orgLimitCreditsByDefaultLimitIdExist?: boolean; } +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13084,37 +13626,13 @@ export interface AppLimitWarningFilter { /** Negates the expression. */ not?: AppLimitWarningFilter; } -export interface UserConnectedAccountFilter { - /** 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?: UserConnectedAccountFilter[]; - /** Checks for any expressions in this list. */ - or?: UserConnectedAccountFilter[]; - /** Negates the expression. */ - not?: UserConnectedAccountFilter; -} 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 `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -13218,71 +13736,25 @@ export interface RateLimitsModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -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; -} -export interface OrgMembershipDefaultFilter { +export interface MembershipTypeFilter { /** 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 `entityId` field. */ - entityId?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: MembershipTypeFilter; } export interface RlsSettingFilter { /** Filter by the object’s `id` field. */ @@ -13346,58 +13818,6 @@ export interface RlsSettingFilter { /** A related `roleSchema` exists. */ roleSchemaExists?: boolean; } -export interface AppLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13440,6 +13860,52 @@ export interface RlsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } +export interface AgentChatModuleFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `threadTableId` field. */ + threadTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableId` field. */ + messageTableId?: UUIDFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableId` field. */ + taskTableId?: UUIDFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentChatModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentChatModuleFilter[]; + /** Negates the expression. */ + not?: AgentChatModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `messageTable` relation. */ + messageTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `taskTable` relation. */ + taskTable?: TableFilter; + /** Filter by the object’s `threadTable` relation. */ + threadTable?: TableFilter; +} export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13572,13 +14038,73 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } -export interface DatabaseSettingFilter { +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; /** Filter by the object’s `enablePostgis` field. */ enablePostgis?: BooleanFilter; /** Filter by the object’s `enableSearch` field. */ @@ -13610,89 +14136,85 @@ export interface DatabaseSettingFilter { /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; } -export interface BillingModuleFilter { +export interface OrgMembershipSettingFilter { /** 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 `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; + not?: OrgMembershipSettingFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; } -export interface AstMigrationFilter { +export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; + id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; + /** Filter by the object’s `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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; + and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; + or?: AppMembershipFilter[]; /** Negates the expression. */ - not?: AstMigrationFilter; + not?: AppMembershipFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; } export interface UserFilter { /** Filter by the object’s `id` field. */ @@ -13935,26 +14457,10 @@ export interface UserFilter { orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; /** `orgClaimedInvitesBySenderId` exist. */ orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; - /** Filter by the object’s `agentThreadsByEntityId` relation. */ - agentThreadsByEntityId?: UserToManyAgentThreadFilter; - /** `agentThreadsByEntityId` exist. */ - agentThreadsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedAgentThreads` relation. */ - ownedAgentThreads?: UserToManyAgentThreadFilter; - /** `ownedAgentThreads` exist. */ - ownedAgentThreadsExist?: boolean; - /** Filter by the object’s `ownedAgentMessages` relation. */ - ownedAgentMessages?: UserToManyAgentMessageFilter; - /** `ownedAgentMessages` exist. */ - ownedAgentMessagesExist?: boolean; - /** Filter by the object’s `ownedAgentTasks` relation. */ - ownedAgentTasks?: UserToManyAgentTaskFilter; - /** `ownedAgentTasks` exist. */ - ownedAgentTasksExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -13967,43 +14473,39 @@ export interface UserFilter { */ unifiedSearch?: string; } -export interface OrgMembershipSettingFilter { +export interface AstMigrationFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; /** 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 `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: AstMigrationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: AstMigrationFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: AstMigrationFilter; } export interface WebauthnSettingFilter { /** Filter by the object’s `id` field. */ @@ -14087,47 +14589,67 @@ export interface WebauthnSettingFilter { /** A related `userField` exists. */ userFieldExists?: boolean; } -export interface AppMembershipFilter { +export interface BillingModuleFilter { /** 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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: 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 `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; + and?: BillingModuleFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; + or?: BillingModuleFilter[]; /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; + /** Filter by the object’s `meterSourcesTable` relation. */ + meterSourcesTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; } export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ @@ -14294,6 +14816,24 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14322,24 +14862,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_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'; export type DatabaseOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15082,6 +15604,20 @@ export type RealtimeModuleOrderBy = | 'INTERVAL_DESC' | 'NOTIFY_CHANNEL_ASC' | 'NOTIFY_CHANNEL_DESC'; +export type ConfigSecretsOrgModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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'; export type SchemaGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15318,6 +15854,8 @@ export type PartitionOrderBy = | 'INTERVAL_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' | 'PREMAKE_ASC' | 'PREMAKE_DESC' | 'NAMING_PATTERN_ASC' @@ -15546,7 +16084,7 @@ export type EmailsModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type EncryptedSecretsModuleOrderBy = +export type ConfigSecretsUserModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -16162,6 +16700,8 @@ export type StorageModuleOrderBy = | 'FILES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'SKIP_DEFAULT_POLICY_TABLES_ASC' @@ -16358,6 +16898,180 @@ export type NotificationsModuleOrderBy = | 'HAS_DIGEST_METADATA_DESC' | 'HAS_SUBSCRIPTIONS_ASC' | 'HAS_SUBSCRIPTIONS_DESC'; +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type ComputeLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type TransferLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type StorageLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type DbUsageModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -16976,10 +17690,12 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AuditLogOrderBy = +export type AuditLogAuthOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' @@ -16993,85 +17709,7 @@ export type AuditLogOrderBy = | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -export type AgentThreadOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'MODE_ASC' - | 'MODE_DESC' - | 'MODEL_ASC' - | 'MODEL_DESC' - | 'SYSTEM_PROMPT_ASC' - | 'SYSTEM_PROMPT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -export type AgentMessageOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'THREAD_ID_ASC' - | 'THREAD_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AUTHOR_ROLE_ASC' - | 'AUTHOR_ROLE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PARTS_ASC' - | 'PARTS_DESC'; -export type AgentTaskOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'THREAD_ID_ASC' - | 'THREAD_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; + | 'SUCCESS_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -17092,8 +17730,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -17106,8 +17744,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -17120,80 +17758,14 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type MembershipTypeOrderBy = +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'NAME_DESC'; export type MigrateFileOrderBy = | 'NATURAL' | 'ID_ASC' @@ -17220,6 +17792,42 @@ export type DevicesModuleOrderBy = | 'USER_DEVICES_TABLE_DESC' | 'DEVICE_SETTINGS_TABLE_ASC' | 'DEVICE_SETTINGS_TABLE_DESC'; +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type NodeTypeRegistryOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17238,7 +17846,7 @@ export type NodeTypeRegistryOrderBy = | 'PARAMETER_SCHEMA_DESC' | 'TAGS_ASC' | 'TAGS_DESC'; -export type AppLimitDefaultOrderBy = +export type AppLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17247,10 +17855,8 @@ export type AppLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = + | 'MAX_DESC'; +export type OrgLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17259,10 +17865,8 @@ export type OrgLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type AppLimitWarningOrderBy = + | 'MAX_DESC'; +export type AppLimitCapOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17270,12 +17874,22 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type UserConnectedAccountOrderBy = | 'NATURAL' | 'ID_ASC' @@ -17294,6 +17908,58 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17302,8 +17968,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -17360,58 +18026,22 @@ export type RateLimitsModuleOrderBy = | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC'; -export type UsageSnapshotOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type RlsSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17436,46 +18066,6 @@ export type RlsSettingOrderBy = | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17502,6 +18092,34 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; +export type AgentChatModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'THREAD_TABLE_ID_ASC' + | 'THREAD_TABLE_ID_DESC' + | 'THREAD_TABLE_NAME_ASC' + | 'THREAD_TABLE_NAME_DESC' + | 'MESSAGE_TABLE_ID_ASC' + | 'MESSAGE_TABLE_ID_DESC' + | 'MESSAGE_TABLE_NAME_ASC' + | 'MESSAGE_TABLE_NAME_DESC' + | 'TASK_TABLE_ID_ASC' + | 'TASK_TABLE_ID_DESC' + | 'TASK_TABLE_NAME_ASC' + | 'TASK_TABLE_NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type RateLimitMetersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17588,6 +18206,58 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; export type DatabaseSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17620,66 +18290,74 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; -export type BillingModuleOrderBy = +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'METERS_TABLE_ID_ASC' - | 'METERS_TABLE_ID_DESC' - | 'METERS_TABLE_NAME_ASC' - | 'METERS_TABLE_NAME_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'LEDGER_TABLE_ID_ASC' - | 'LEDGER_TABLE_ID_DESC' - | 'LEDGER_TABLE_NAME_ASC' - | 'LEDGER_TABLE_NAME_DESC' - | 'BALANCES_TABLE_ID_ASC' - | 'BALANCES_TABLE_ID_DESC' - | 'BALANCES_TABLE_NAME_ASC' - | 'BALANCES_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type AstMigrationOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +export type AppMembershipOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | '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' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17706,38 +18384,34 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -export type OrgMembershipSettingOrderBy = +export type AstMigrationOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | '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' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type WebauthnSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17778,42 +18452,46 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -export type AppMembershipOrderBy = +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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'; + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' + | 'METER_SOURCES_TABLE_ID_ASC' + | 'METER_SOURCES_TABLE_ID_DESC' + | 'METER_SOURCES_TABLE_NAME_ASC' + | 'METER_SOURCES_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17963,18 +18641,44 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionInput { +export interface CreateObjectInput { clientMutationId?: string; - appPermission: { - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; + object: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; }; } -export interface AppPermissionPatch { - name?: string | null; - bitnum?: number | null; +export interface ObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + appPermission: { + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; + }; +} +export interface AppPermissionPatch { + name?: string | null; + bitnum?: number | null; bitstr?: string | null; description?: string | null; } @@ -18011,32 +18715,6 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateDatabaseInput { clientMutationId?: string; database: { @@ -18959,6 +19637,30 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + configSecretsOrgModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface ConfigSecretsOrgModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -19305,6 +20007,7 @@ export interface CreatePartitionInput { partitionKeyId: string; interval?: string; retention?: string; + retentionKeepTable?: boolean; premake?: number; namingPattern?: string; }; @@ -19316,6 +20019,7 @@ export interface PartitionPatch { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; } @@ -19653,27 +20357,27 @@ export interface DeleteEmailsModuleInput { clientMutationId?: string; id: string; } -export interface CreateEncryptedSecretsModuleInput { +export interface CreateConfigSecretsUserModuleInput { clientMutationId?: string; - encryptedSecretsModule: { + configSecretsUserModule: { databaseId: string; schemaId?: string; tableId?: string; tableName?: string; }; } -export interface EncryptedSecretsModulePatch { +export interface ConfigSecretsUserModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; } -export interface UpdateEncryptedSecretsModuleInput { +export interface UpdateConfigSecretsUserModuleInput { clientMutationId?: string; id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; } -export interface DeleteEncryptedSecretsModuleInput { +export interface DeleteConfigSecretsUserModuleInput { clientMutationId?: string; id: string; } @@ -20406,6 +21110,7 @@ export interface CreateStorageModuleInput { bucketsTableName?: string; filesTableName?: string; membershipType?: number; + storageKey?: string; policies?: Record; skipDefaultPolicyTables?: string[]; entityTableId?: string; @@ -20441,6 +21146,7 @@ export interface StorageModulePatch { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -20663,6 +21369,230 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface InferenceLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + computeLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface ComputeLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateComputeLogModuleInput { + clientMutationId?: string; + id: string; + computeLogModulePatch: ComputeLogModulePatch; +} +export interface DeleteComputeLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + transferLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface TransferLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + transferLogModulePatch: TransferLogModulePatch; +} +export interface DeleteTransferLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateStorageLogModuleInput { + clientMutationId?: string; + storageLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface StorageLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateStorageLogModuleInput { + clientMutationId?: string; + id: string; + storageLogModulePatch: StorageLogModulePatch; +} +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + dbUsageModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + }; +} +export interface DbUsageModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; +} +export interface UpdateDbUsageModuleInput { + clientMutationId?: string; + id: string; + dbUsageModulePatch: DbUsageModulePatch; +} +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -21498,9 +22428,9 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAuditLogInput { +export interface CreateAuditLogAuthInput { clientMutationId?: string; - auditLog: { + auditLogAuth: { event: string; actorId?: string; origin?: ConstructiveInternalTypeOrigin; @@ -21509,7 +22439,7 @@ export interface CreateAuditLogInput { success: boolean; }; } -export interface AuditLogPatch { +export interface AuditLogAuthPatch { event?: string | null; actorId?: string | null; origin?: ConstructiveInternalTypeOrigin | null; @@ -21517,119 +22447,15 @@ export interface AuditLogPatch { ipAddress?: string | null; success?: boolean | null; } -export interface UpdateAuditLogInput { +export interface UpdateAuditLogAuthInput { clientMutationId?: string; id: string; - auditLogPatch: AuditLogPatch; + auditLogAuthPatch: AuditLogAuthPatch; } -export interface DeleteAuditLogInput { +export interface DeleteAuditLogAuthInput { clientMutationId?: string; id: string; } -export interface CreateAgentThreadInput { - clientMutationId?: string; - agentThread: { - title?: string; - mode?: string; - model?: string; - systemPrompt?: string; - ownerId?: string; - entityId: string; - status?: string; - }; -} -export interface AgentThreadPatch { - title?: string | null; - mode?: string | null; - model?: string | null; - systemPrompt?: string | null; - ownerId?: string | null; - entityId?: string | null; - status?: string | null; -} -export interface UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - agentThreadPatch: AgentThreadPatch; -} -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: string; -} -export interface CreateAgentMessageInput { - clientMutationId?: string; - agentMessage: { - threadId: string; - entityId: string; - authorRole: string; - ownerId?: string; - parts?: Record; - }; -} -export interface AgentMessagePatch { - threadId?: string | null; - entityId?: string | null; - authorRole?: string | null; - ownerId?: string | null; - parts?: Record | null; -} -export interface UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - agentMessagePatch: AgentMessagePatch; -} -export interface DeleteAgentMessageInput { - clientMutationId?: string; - id: string; -} -export interface CreateAgentTaskInput { - clientMutationId?: string; - agentTask: { - threadId: string; - entityId: string; - description: string; - source?: string; - error?: string; - ownerId?: string; - status?: string; - }; -} -export interface AgentTaskPatch { - threadId?: string | null; - entityId?: string | null; - description?: string | null; - source?: string | null; - error?: string | null; - ownerId?: string | null; - status?: string | null; -} -export interface UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - agentTaskPatch: AgentTaskPatch; -} -export interface DeleteAgentTaskInput { - 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 CreateIdentityProviderInput { clientMutationId?: string; identityProvider: { @@ -21660,14 +22486,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -21684,13 +22510,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -21720,30 +22546,150 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + roleType: { + name: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface RoleTypePatch { + name?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + migrateFile: { + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface MigrateFilePatch { + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface UpdateMigrateFileInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + migrateFilePatch: MigrateFilePatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteMigrateFileInput { + clientMutationId?: string; + id: string; +} +export interface CreateDevicesModuleInput { + clientMutationId?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; + }; +} +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + devicesModulePatch: DevicesModulePatch; +} +export interface DeleteDevicesModuleInput { clientMutationId?: string; id: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} export interface CreateAppLimitCapsDefaultInput { clientMutationId?: string; appLimitCapsDefault: { @@ -21828,110 +22774,32 @@ export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateMigrateFileInput { - clientMutationId?: string; - migrateFile: { - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; - }; -} -export interface MigrateFilePatch { - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} -export interface UpdateMigrateFileInput { - clientMutationId?: string; - id: string; - migrateFilePatch: MigrateFilePatch; -} -export interface DeleteMigrateFileInput { - clientMutationId?: string; - id: string; -} -export interface CreateDevicesModuleInput { +export interface CreateUserConnectedAccountInput { clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; + userConnectedAccount: { + ownerId?: string; + service?: string; + identifier?: string; + details?: Record; + isVerified?: boolean; }; } -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; +export interface UserConnectedAccountPatch { + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; } -export interface UpdateDevicesModuleInput { +export interface UpdateUserConnectedAccountInput { clientMutationId?: string; id: string; - devicesModulePatch: DevicesModulePatch; + userConnectedAccountPatch: UserConnectedAccountPatch; } -export interface DeleteDevicesModuleInput { +export interface DeleteUserConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - nodeTypeRegistry: { - name: string; - slug: string; - category: string; - displayName?: string; - description?: string; - parameterSchema?: Record; - tags?: string[]; - }; -} -export interface NodeTypeRegistryPatch { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -export interface UpdateNodeTypeRegistryInput { - clientMutationId?: string; - name: string; - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -export interface DeleteNodeTypeRegistryInput { - clientMutationId?: string; - name: string; -} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -21976,6 +22844,30 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; + }; +} +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitWarningInput { clientMutationId?: string; appLimitWarning: { @@ -22000,37 +22892,11 @@ export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - ownerId?: string; - service?: string; - identifier?: string; - details?: Record; - isVerified?: boolean; - }; -} -export interface UserConnectedAccountPatch { - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; -} -export interface UpdateUserConnectedAccountInput { - clientMutationId?: string; - id: string; - userConnectedAccountPatch: UserConnectedAccountPatch; -} -export interface DeleteUserConnectedAccountInput { - clientMutationId?: string; - id: string; -} export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -22041,7 +22907,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -22122,79 +22988,31 @@ export interface DeleteRateLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateUsageSnapshotInput { - clientMutationId?: string; - usageSnapshot: { - databaseId: string; - metricName: string; - metricValue?: string; - dimensions?: Record; - capturedAt?: string; - }; -} -export interface UsageSnapshotPatch { - databaseId?: string | null; - metricName?: string | null; - metricValue?: string | null; - dimensions?: Record | null; - capturedAt?: string | null; -} -export interface UpdateUsageSnapshotInput { - clientMutationId?: string; - id: string; - usageSnapshotPatch: UsageSnapshotPatch; -} -export interface DeleteUsageSnapshotInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateRlsSettingInput { clientMutationId?: string; @@ -22230,74 +23048,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; rlsModule: { @@ -22334,6 +23084,44 @@ export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } +export interface CreateAgentChatModuleInput { + clientMutationId?: string; + agentChatModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + apiId?: string; + threadTableId?: string; + threadTableName?: string; + messageTableId?: string; + messageTableName?: string; + taskTableId?: string; + taskTableName?: string; + prefix?: string; + }; +} +export interface AgentChatModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + apiId?: string | null; + threadTableId?: string | null; + threadTableName?: string | null; + messageTableId?: string | null; + messageTableName?: string | null; + taskTableId?: string | null; + taskTableName?: string | null; + prefix?: string | null; +} +export interface UpdateAgentChatModuleInput { + clientMutationId?: string; + id: string; + agentChatModulePatch: AgentChatModulePatch; +} +export interface DeleteAgentChatModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; rateLimitMetersModule: { @@ -22450,6 +23238,74 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseSettingInput { clientMutationId?: string; databaseSetting: { @@ -22492,45 +23348,108 @@ export interface DeleteDatabaseSettingInput { clientMutationId?: string; id: string; } -export interface CreateBillingModuleInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - billingModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - recordUsageFunction?: string; - prefix?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface BillingModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateBillingModuleInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - billingModulePatch: BillingModulePatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteBillingModuleInput { +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppMembershipInput { + clientMutationId?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; + }; +} +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; +} +export interface UpdateAppMembershipInput { + clientMutationId?: string; + id: string; + appMembershipPatch: AppMembershipPatch; +} +export interface DeleteAppMembershipInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + type?: number | null; + profilePictureUpload?: File | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { clientMutationId?: string; id: string; } @@ -22572,69 +23491,6 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - type?: number | null; - profilePictureUpload?: File | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} export interface CreateWebauthnSettingInput { clientMutationId?: string; webauthnSetting: { @@ -22685,45 +23541,53 @@ export interface DeleteWebauthnSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipInput { +export interface CreateBillingModuleInput { clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + recordUsageFunction?: string; + prefix?: string; }; } -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; } -export interface UpdateAppMembershipInput { +export interface UpdateBillingModuleInput { clientMutationId?: string; id: string; - appMembershipPatch: AppMembershipPatch; + billingModulePatch: BillingModulePatch; } -export interface DeleteAppMembershipInput { +export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } @@ -22877,7 +23741,7 @@ export const connectionFieldsMap = { defaultIdsModules: 'DefaultIdsModule', denormalizedTableFields: 'DenormalizedTableField', emailsModules: 'EmailsModule', - encryptedSecretsModules: 'EncryptedSecretsModule', + configSecretsUserModules: 'ConfigSecretsUserModule', invitesModules: 'InvitesModule', eventsModules: 'EventsModule', limitsModules: 'LimitsModule', @@ -22902,6 +23766,12 @@ export const connectionFieldsMap = { identityProvidersModules: 'IdentityProvidersModule', notificationsModules: 'NotificationsModule', realtimeModules: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', + inferenceLogModules: 'InferenceLogModule', + computeLogModules: 'ComputeLogModule', + transferLogModules: 'TransferLogModule', + storageLogModules: 'StorageLogModule', + dbUsageModules: 'DbUsageModule', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { @@ -22918,6 +23788,7 @@ export const connectionFieldsMap = { realtimeModulesByPrivateSchemaId: 'RealtimeModule', realtimeModules: 'RealtimeModule', realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Table: { checkConstraints: 'CheckConstraint', @@ -22945,6 +23816,7 @@ export const connectionFieldsMap = { realtimeModulesByChangeLogTableId: 'RealtimeModule', realtimeModulesByListenerNodeTableId: 'RealtimeModule', realtimeModulesBySourceRegistryTableId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Field: { spatialRelations: 'SpatialRelation', @@ -22974,14 +23846,6 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, - AgentThread: { - agentMessagesByThreadId: 'AgentMessage', - agentTasksByThreadId: 'AgentTask', - }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -22989,6 +23853,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, User: { ownedDatabases: 'Database', appAdminGrantsByActorId: 'AppAdminGrant', @@ -23041,11 +23909,7 @@ export const connectionFieldsMap = { orgClaimedInvitesByEntityId: 'OrgClaimedInvite', orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', orgClaimedInvitesBySenderId: 'OrgClaimedInvite', - auditLogsByActorId: 'AuditLog', - agentThreadsByEntityId: 'AgentThread', - ownedAgentThreads: 'AgentThread', - ownedAgentMessages: 'AgentMessage', - ownedAgentTasks: 'AgentTask', + auditLogAuthsByActorId: 'AuditLogAuth', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -23116,12 +23980,12 @@ export interface VerifyEmailInput { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface ConstructBlueprintInput { @@ -23142,7 +24006,7 @@ export interface ResetPasswordInput { } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } @@ -23165,6 +24029,11 @@ export interface ProvisionSpatialRelationInput { pOperator?: string; pParamName?: string; } +export interface SignInCrossOriginInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} export interface BootstrapUserInput { clientMutationId?: string; targetDatabaseId?: string; @@ -23175,6 +24044,24 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -23205,14 +24092,14 @@ export interface ProvisionIndexInput { } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23228,7 +24115,7 @@ export interface ProvisionDatabaseWithUserInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23237,7 +24124,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23246,7 +24133,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23286,11 +24173,6 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} export interface CreateUserDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -23312,23 +24194,6 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -23336,15 +24201,6 @@ export interface RequestCrossOriginTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface ProvisionTableInput { clientMutationId?: string; databaseId?: string; @@ -23361,6 +24217,14 @@ export interface ProvisionTableInput { uniqueConstraints?: Record; description?: string; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -23739,14 +24603,14 @@ export interface DatabaseToManyEmailsModuleFilter { /** Filters to entities where no related entity matches. */ none?: EmailsModuleFilter; } -/** A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEncryptedSecretsModuleFilter { +/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsUserModuleFilter { /** Filters to entities where at least one related entity matches. */ - some?: EncryptedSecretsModuleFilter; + some?: ConfigSecretsUserModuleFilter; /** Filters to entities where every related entity matches. */ - every?: EncryptedSecretsModuleFilter; + every?: ConfigSecretsUserModuleFilter; /** Filters to entities where no related entity matches. */ - none?: EncryptedSecretsModuleFilter; + none?: ConfigSecretsUserModuleFilter; } /** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyInvitesModuleFilter { @@ -23964,6 +24828,60 @@ export interface DatabaseToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} +/** A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyInferenceLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: InferenceLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: InferenceLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: InferenceLogModuleFilter; +} +/** A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyComputeLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ComputeLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ComputeLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ComputeLogModuleFilter; +} +/** A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTransferLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TransferLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: TransferLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: TransferLogModuleFilter; +} +/** A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyStorageLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: StorageLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: StorageLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: StorageLogModuleFilter; +} +/** A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDbUsageModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DbUsageModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: DbUsageModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: DbUsageModuleFilter; +} /** 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. */ @@ -24088,6 +25006,15 @@ export interface SchemaToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyCheckConstraintFilter { /** Filters to entities where at least one related entity matches. */ @@ -24259,6 +25186,15 @@ export interface TableToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManySpatialRelationFilter { /** Filters to entities where at least one related entity matches. */ @@ -24895,42 +25831,6 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentMessageFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; -} -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentTaskFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUploadFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -24993,6 +25893,24 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} /** 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). */ @@ -25317,41 +26235,14 @@ export interface UserToManyOrgClaimedInviteFilter { /** Filters to entities where no related entity matches. */ none?: OrgClaimedInviteFilter; } -/** 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 many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentThreadFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentMessageFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; -} -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentTaskFilter { +/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogAuthFilter { /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; + some?: AuditLogAuthFilter; /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; + every?: AuditLogAuthFilter; /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; + none?: AuditLogAuthFilter; } /** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ export interface TrgmSearchInput { @@ -25469,6 +26360,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ */ export interface TableFilter { @@ -25636,6 +26531,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { @@ -26494,6 +27393,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -27056,8 +27957,8 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -/** A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EncryptedSecretsModuleFilter { +/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -27069,11 +27970,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -28059,6 +28960,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -28469,6 +29372,284 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsOrgModuleFilter { + /** 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** 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 `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ComputeLogModuleFilter { + /** 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 `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; + /** Filter by the object’s `computeLogTable` relation. */ + computeLogTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TransferLogModuleFilter { + /** 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 `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `transferLogTable` relation. */ + transferLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageLogModuleFilter { + /** 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 `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `storageLogTable` relation. */ + storageLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbUsageModuleFilter { + /** 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 `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `queryStatsDailyTable` relation. */ + queryStatsDailyTable?: TableFilter; + /** Filter by the object’s `queryStatsLogTable` relation. */ + queryStatsLogTable?: TableFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `tableStatsDailyTable` relation. */ + tableStatsDailyTable?: TableFilter; + /** Filter by the object’s `tableStatsLogTable` relation. */ + tableStatsLogTable?: TableFilter; +} /** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ @@ -28592,108 +29773,6 @@ export interface BlueprintTemplateFilter { /** `blueprintsByTemplateId` exist. */ blueprintsByTemplateIdExist?: boolean; } -/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentMessageFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Negates the expression. */ - not?: AgentMessageFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentTaskFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Negates the expression. */ - not?: AgentTaskFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -28721,6 +29800,29 @@ export interface AppLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -28754,6 +29856,23 @@ export interface OrgLimitCreditFilter { /** A related `entity` exists. */ entityExists?: boolean; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Filter by the object’s `id` field. */ @@ -28962,10 +30081,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -29094,6 +30213,34 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModules` relation. */ + inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; + /** `inferenceLogModules` exist. */ + inferenceLogModulesExist?: boolean; + /** Filter by the object’s `computeLogModules` relation. */ + computeLogModules?: DatabaseToManyComputeLogModuleFilter; + /** `computeLogModules` exist. */ + computeLogModulesExist?: boolean; + /** Filter by the object’s `transferLogModules` relation. */ + transferLogModules?: DatabaseToManyTransferLogModuleFilter; + /** `transferLogModules` exist. */ + transferLogModulesExist?: boolean; + /** Filter by the object’s `storageLogModules` relation. */ + storageLogModules?: DatabaseToManyStorageLogModuleFilter; + /** `storageLogModules` exist. */ + storageLogModulesExist?: boolean; + /** Filter by the object’s `dbUsageModules` relation. */ + dbUsageModules?: DatabaseToManyDbUsageModuleFilter; + /** `dbUsageModules` exist. */ + dbUsageModulesExist?: boolean; + /** Filter by the object’s `agentChatModule` relation. */ + agentChatModule?: AgentChatModuleFilter; + /** A related `agentChatModule` exists. */ + agentChatModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -29869,8 +31016,10 @@ export interface OrgClaimedInviteFilter { /** A related `sender` exists. */ senderExists?: boolean; } -/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogFilter { +/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -29885,60 +31034,17 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ actorExists?: boolean; } -/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadFilter { - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Negates the expression. */ - not?: AgentThreadFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentTasksByThreadId` relation. */ - agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; - /** `agentTasksByThreadId` exist. */ - agentTasksByThreadIdExist?: boolean; -} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -30521,26 +31627,10 @@ export interface UserFilter { orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; /** `orgClaimedInvitesBySenderId` exist. */ orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; - /** Filter by the object’s `agentThreadsByEntityId` relation. */ - agentThreadsByEntityId?: UserToManyAgentThreadFilter; - /** `agentThreadsByEntityId` exist. */ - agentThreadsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedAgentThreads` relation. */ - ownedAgentThreads?: UserToManyAgentThreadFilter; - /** `ownedAgentThreads` exist. */ - ownedAgentThreadsExist?: boolean; - /** Filter by the object’s `ownedAgentMessages` relation. */ - ownedAgentMessages?: UserToManyAgentMessageFilter; - /** `ownedAgentMessages` exist. */ - ownedAgentMessagesExist?: boolean; - /** Filter by the object’s `ownedAgentTasks` relation. */ - ownedAgentTasks?: UserToManyAgentTaskFilter; - /** `ownedAgentTasks` exist. */ - ownedAgentTasksExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -30553,6 +31643,31 @@ export interface UserFilter { */ unifiedSearch?: 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?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -30580,31 +31695,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** 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?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** 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. */ @@ -31115,6 +32205,14 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -31131,6 +32229,10 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; + /** Filter by the object’s `meterSourcesTable` relation. */ + meterSourcesTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -31266,6 +32368,53 @@ export interface RateLimitMetersModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against `AgentChatModule` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentChatModuleFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `threadTableId` field. */ + threadTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableId` field. */ + messageTableId?: UUIDFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableId` field. */ + taskTableId?: UUIDFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentChatModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentChatModuleFilter[]; + /** Negates the expression. */ + not?: AgentChatModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `messageTable` relation. */ + messageTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `taskTable` relation. */ + taskTable?: TableFilter; + /** Filter by the object’s `threadTable` relation. */ + threadTable?: TableFilter; +} /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ export interface BitStringFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -31465,8 +32614,27 @@ export interface OrgMembershipSettingFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } -/** A connection to a list of `AppPermission` values. */ +/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; edges: AppPermissionEdge[]; @@ -31504,25 +32672,6 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface SendAccountDeletionEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -31707,6 +32856,16 @@ export type ProvisionSpatialRelationPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SignInCrossOriginPayload { + clientMutationId?: string | null; + result?: SignInCrossOriginRecord | null; +} +export type SignInCrossOriginPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInCrossOriginRecordSelect; + }; +}; export interface BootstrapUserPayload { clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; @@ -31717,6 +32876,26 @@ export type BootstrapUserPayloadSelect = { select: BootstrapUserRecordSelect; }; }; +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export type SignUpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpRecordSelect; + }; +}; +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export type SignInPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInRecordSelect; + }; +}; export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -31817,16 +32996,6 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export type SignInCrossOriginPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInCrossOriginRecordSelect; - }; -}; export interface CreateUserDatabasePayload { clientMutationId?: string | null; result?: string | null; @@ -31855,57 +33024,37 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; -export interface SendVerificationEmailPayload { +export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; - result?: boolean | null; + result?: string | null; } -export type SendVerificationEmailPayloadSelect = { +export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; -export interface SignUpPayload { +export interface ProvisionTablePayload { clientMutationId?: string | null; - result?: SignUpRecord | null; + result?: ProvisionTableRecord[] | null; } -export type SignUpPayloadSelect = { +export type ProvisionTablePayloadSelect = { clientMutationId?: boolean; result?: { - select: SignUpRecordSelect; + select: ProvisionTableRecordSelect; }; }; -export interface RequestCrossOriginTokenPayload { +export interface SendVerificationEmailPayload { clientMutationId?: string | null; - result?: string | null; + result?: boolean | null; } -export type RequestCrossOriginTokenPayloadSelect = { +export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export type SignInPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInRecordSelect; - }; -}; -export interface ProvisionTablePayload { +export interface ForgotPasswordPayload { clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; } -export type ProvisionTablePayloadSelect = { +export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -31929,6 +33078,51 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -32019,51 +33213,6 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateDatabasePayload { clientMutationId?: string | null; /** The `Database` that was created by this mutation. */ @@ -33144,6 +34293,51 @@ export type DeleteRealtimeModulePayloadSelect = { select: RealtimeModuleEdgeSelect; }; }; +export interface CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type CreateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type UpdateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type DeleteConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -34224,49 +35418,49 @@ export type DeleteEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; -export interface CreateEncryptedSecretsModulePayload { +export interface CreateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was created by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type CreateEncryptedSecretsModulePayloadSelect = { +export type CreateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface UpdateEncryptedSecretsModulePayload { +export interface UpdateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was updated by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type UpdateEncryptedSecretsModulePayloadSelect = { +export type UpdateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface DeleteEncryptedSecretsModulePayload { +export interface DeleteConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was deleted by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type DeleteEncryptedSecretsModulePayloadSelect = { +export type DeleteConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; export interface CreateInvitesModulePayload { @@ -35169,6 +36363,231 @@ export type DeleteNotificationsModulePayloadSelect = { select: NotificationsModuleEdgeSelect; }; }; +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type CreateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type UpdateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type DeleteInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface CreateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was created by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type CreateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface UpdateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was updated by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type UpdateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface DeleteComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was deleted by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type DeleteComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface CreateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was created by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type CreateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface UpdateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was updated by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type UpdateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface DeleteTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was deleted by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type DeleteTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface CreateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was created by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type CreateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface UpdateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was updated by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type UpdateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface DeleteStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was deleted by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type DeleteStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type CreateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type UpdateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type DeleteDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was created by this mutation. */ @@ -36474,229 +37893,49 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAuditLogPayload { +export interface CreateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was created by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type CreateAuditLogPayloadSelect = { +export type CreateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface UpdateAuditLogPayload { +export interface UpdateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was updated by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type UpdateAuditLogPayloadSelect = { +export type UpdateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface DeleteAuditLogPayload { +export interface DeleteAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was deleted by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type DeleteAuditLogPayloadSelect = { +export type DeleteAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface CreateAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was created by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export type CreateAgentThreadPayloadSelect = { - clientMutationId?: boolean; - agentThread?: { - select: AgentThreadSelect; - }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; - }; -}; -export interface UpdateAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was updated by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export type UpdateAgentThreadPayloadSelect = { - clientMutationId?: boolean; - agentThread?: { - select: AgentThreadSelect; - }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; - }; -}; -export interface DeleteAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was deleted by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export type DeleteAgentThreadPayloadSelect = { - clientMutationId?: boolean; - agentThread?: { - select: AgentThreadSelect; - }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; - }; -}; -export interface CreateAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export type CreateAgentMessagePayloadSelect = { - clientMutationId?: boolean; - agentMessage?: { - select: AgentMessageSelect; - }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; - }; -}; -export interface UpdateAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was updated by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export type UpdateAgentMessagePayloadSelect = { - clientMutationId?: boolean; - agentMessage?: { - select: AgentMessageSelect; - }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; - }; -}; -export interface DeleteAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was deleted by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export type DeleteAgentMessagePayloadSelect = { - clientMutationId?: boolean; - agentMessage?: { - select: AgentMessageSelect; - }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; - }; -}; -export interface CreateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was created by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export type CreateAgentTaskPayloadSelect = { - clientMutationId?: boolean; - agentTask?: { - select: AgentTaskSelect; - }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; - }; -}; -export interface UpdateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was updated by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export type UpdateAgentTaskPayloadSelect = { - clientMutationId?: boolean; - agentTask?: { - select: AgentTaskSelect; - }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; - }; -}; -export interface DeleteAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was deleted by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export type DeleteAgentTaskPayloadSelect = { - clientMutationId?: boolean; - agentTask?: { - select: AgentTaskSelect; - }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; - }; -}; -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; + auditLogAuth?: { + select: AuditLogAuthSelect; + }; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; export interface CreateIdentityProviderPayload { @@ -36845,49 +38084,240 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; + }; +}; +export interface CreateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type CreateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface UpdateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type UpdateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface DeleteDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type DeleteDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + 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 CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -37070,150 +38500,15 @@ export type DeleteOrgLimitCapPayloadSelect = { select: OrgLimitCapEdgeSelect; }; }; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export type CreateMigrateFilePayloadSelect = { - clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; - }; -}; -export interface CreateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type CreateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface UpdateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type UpdateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface DeleteDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type DeleteDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was created by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type CreateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was updated by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type UpdateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface DeleteNodeTypeRegistryPayload { +export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was deleted by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; } -export type DeleteNodeTypeRegistryPayloadSelect = { +export type CreateUserConnectedAccountPayloadSelect = { clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; + userConnectedAccount?: { + select: UserConnectedAccountSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -37306,6 +38601,51 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -37351,17 +38691,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export type CreateUserConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; - }; -}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -37452,184 +38781,94 @@ export type DeletePubkeySettingPayloadSelect = { select: PubkeySettingEdgeSelect; }; }; -export interface CreateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type CreateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type UpdateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type DeleteRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface CreateUsageSnapshotPayload { - clientMutationId?: string | null; - /** The `UsageSnapshot` that was created by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; -} -export type CreateUsageSnapshotPayloadSelect = { - clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; - }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; - }; -}; -export interface UpdateUsageSnapshotPayload { - clientMutationId?: string | null; - /** The `UsageSnapshot` that was updated by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; -} -export type UpdateUsageSnapshotPayloadSelect = { - clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; - }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; - }; -}; -export interface DeleteUsageSnapshotPayload { - clientMutationId?: string | null; - /** The `UsageSnapshot` that was deleted by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; -} -export type DeleteUsageSnapshotPayloadSelect = { - clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; - }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; - }; -}; -export interface CreateAppMembershipDefaultPayload { +export interface CreateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteRateLimitsModulePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateRlsSettingPayload { @@ -37677,28 +38916,6 @@ export type DeleteRlsSettingPayloadSelect = { select: RlsSettingEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -37744,6 +38961,51 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; +export interface CreateAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was created by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} +export type CreateAgentChatModulePayloadSelect = { + clientMutationId?: boolean; + agentChatModule?: { + select: AgentChatModuleSelect; + }; + agentChatModuleEdge?: { + select: AgentChatModuleEdgeSelect; + }; +}; +export interface UpdateAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was updated by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} +export type UpdateAgentChatModulePayloadSelect = { + clientMutationId?: boolean; + agentChatModule?: { + select: AgentChatModuleSelect; + }; + agentChatModuleEdge?: { + select: AgentChatModuleEdgeSelect; + }; +}; +export interface DeleteAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was deleted by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} +export type DeleteAgentChatModulePayloadSelect = { + clientMutationId?: boolean; + agentChatModule?: { + select: AgentChatModuleSelect; + }; + agentChatModuleEdge?: { + select: AgentChatModuleEdgeSelect; + }; +}; export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; /** The `RateLimitMetersModule` that was created by this mutation. */ @@ -37845,6 +39107,96 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type UpdateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type DeleteAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; export interface CreateDatabaseSettingPayload { clientMutationId?: string | null; /** The `DatabaseSetting` that was created by this mutation. */ @@ -37890,60 +39242,94 @@ export type DeleteDatabaseSettingPayloadSelect = { select: DatabaseSettingEdgeSelect; }; }; -export interface CreateBillingModulePayload { +export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type CreateBillingModulePayloadSelect = { +export type CreateOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface UpdateBillingModulePayload { +export interface UpdateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type UpdateBillingModulePayloadSelect = { +export type UpdateOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface DeleteBillingModulePayload { +export interface DeleteOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type DeleteBillingModulePayloadSelect = { +export type DeleteOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface CreateAstMigrationPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type CreateAstMigrationPayloadSelect = { +export type CreateAppMembershipPayloadSelect = { clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; export interface CreateUserPayload { @@ -37991,49 +39377,15 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type CreateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type UpdateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface DeleteOrgMembershipSettingPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type CreateAstMigrationPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + astMigration?: { + select: AstMigrationSelect; }; }; export interface CreateWebauthnSettingPayload { @@ -38081,49 +39433,49 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -export interface CreateAppMembershipPayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type CreateAppMembershipPayloadSelect = { +export type CreateBillingModulePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + billingModule?: { + select: BillingModuleSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface UpdateAppMembershipPayload { +export interface UpdateBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type UpdateAppMembershipPayloadSelect = { +export type UpdateBillingModulePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + billingModule?: { + select: BillingModuleSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface DeleteAppMembershipPayload { +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type DeleteAppMembershipPayloadSelect = { +export type DeleteBillingModulePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + billingModule?: { + select: BillingModuleSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; export interface CreateBillingProviderModulePayload { @@ -38216,16 +39568,16 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `Object` edge in the connection. */ +export interface ObjectEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; } -export type AppPermissionEdgeSelect = { +export type ObjectEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionSelect; + select: ObjectSelect; }; }; /** Information about pagination in a connection. */ @@ -38245,6 +39597,18 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -38257,17 +39621,21 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; +export interface SignInCrossOriginRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; } -export type ObjectEdgeSelect = { - cursor?: boolean; - node?: { - select: ObjectSelect; - }; +export type SignInCrossOriginRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; }; export interface BootstrapUserRecord { outUserId?: string | null; @@ -38289,62 +39657,6 @@ export type BootstrapUserRecordSelect = { outIsSudo?: boolean; outApiKey?: boolean; }; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; -}; -export interface ProvisionRelationRecord { - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; -} -export type ProvisionRelationRecordSelect = { - outFieldId?: boolean; - outJunctionTableId?: boolean; - outSourceFieldId?: boolean; - outTargetFieldId?: boolean; -}; -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignInCrossOriginRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface ExtendTokenExpiresRecord { - id?: string | null; - sessionId?: string | null; - expiresAt?: string | null; -} -export type ExtendTokenExpiresRecordSelect = { - id?: boolean; - sessionId?: boolean; - expiresAt?: boolean; -}; -export interface CreateApiKeyRecord { - apiKey?: string | null; - keyId?: string | null; - expiresAt?: string | null; -} -export type CreateApiKeyRecordSelect = { - apiKey?: boolean; - keyId?: boolean; - expiresAt?: boolean; -}; export interface SignUpRecord { id?: string | null; userId?: string | null; @@ -38381,6 +39693,46 @@ export type SignInRecordSelect = { mfaRequired?: boolean; mfaChallengeToken?: boolean; }; +export interface ProvisionDatabaseWithUserRecord { + outDatabaseId?: string | null; + outApiKey?: string | null; +} +export type ProvisionDatabaseWithUserRecordSelect = { + outDatabaseId?: boolean; + outApiKey?: boolean; +}; +export interface ProvisionRelationRecord { + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export type ProvisionRelationRecordSelect = { + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; +}; +export interface ExtendTokenExpiresRecord { + id?: string | null; + sessionId?: string | null; + expiresAt?: string | null; +} +export type ExtendTokenExpiresRecordSelect = { + id?: boolean; + sessionId?: boolean; + expiresAt?: boolean; +}; +export interface CreateApiKeyRecord { + apiKey?: string | null; + keyId?: string | null; + expiresAt?: string | null; +} +export type CreateApiKeyRecordSelect = { + apiKey?: boolean; + keyId?: boolean; + expiresAt?: boolean; +}; export interface ProvisionTableRecord { outTableId?: string | null; outFields?: string[] | null; @@ -38677,6 +40029,18 @@ export type RealtimeModuleEdgeSelect = { select: RealtimeModuleSelect; }; }; +/** A `ConfigSecretsOrgModule` edge in the connection. */ +export interface ConfigSecretsOrgModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsOrgModule` at the end of the edge. */ + node?: ConfigSecretsOrgModule | null; +} +export type ConfigSecretsOrgModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsOrgModuleSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -38965,16 +40329,16 @@ export type EmailsModuleEdgeSelect = { select: EmailsModuleSelect; }; }; -/** A `EncryptedSecretsModule` edge in the connection. */ -export interface EncryptedSecretsModuleEdge { +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { cursor?: string | null; - /** The `EncryptedSecretsModule` at the end of the edge. */ - node?: EncryptedSecretsModule | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; } -export type EncryptedSecretsModuleEdgeSelect = { +export type ConfigSecretsUserModuleEdgeSelect = { cursor?: boolean; node?: { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsUserModuleSelect; }; }; /** A `InvitesModule` edge in the connection. */ @@ -39217,6 +40581,66 @@ export type NotificationsModuleEdgeSelect = { select: NotificationsModuleSelect; }; }; +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +export type InferenceLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InferenceLogModuleSelect; + }; +}; +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { + cursor?: string | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; +} +export type ComputeLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ComputeLogModuleSelect; + }; +}; +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { + cursor?: string | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; +} +export type TransferLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TransferLogModuleSelect; + }; +}; +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { + cursor?: string | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; +} +export type StorageLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: StorageLogModuleSelect; + }; +}; +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; +} +export type DbUsageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DbUsageModuleSelect; + }; +}; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -39565,52 +40989,52 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { +/** A `AuditLogAuth` edge in the connection. */ +export interface AuditLogAuthEdge { cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; + /** The `AuditLogAuth` at the end of the edge. */ + node?: AuditLogAuth | null; } -export type AuditLogEdgeSelect = { +export type AuditLogAuthEdgeSelect = { cursor?: boolean; node?: { - select: AuditLogSelect; + select: AuditLogAuthSelect; }; }; -/** A `AgentThread` edge in the connection. */ -export interface AgentThreadEdge { +/** A `Ref` edge in the connection. */ +export interface RefEdge { cursor?: string | null; - /** The `AgentThread` at the end of the edge. */ - node?: AgentThread | null; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; } -export type AgentThreadEdgeSelect = { +export type RefEdgeSelect = { cursor?: boolean; node?: { - select: AgentThreadSelect; + select: RefSelect; }; }; -/** A `AgentMessage` edge in the connection. */ -export interface AgentMessageEdge { +/** A `Store` edge in the connection. */ +export interface StoreEdge { cursor?: string | null; - /** The `AgentMessage` at the end of the edge. */ - node?: AgentMessage | null; + /** The `Store` at the end of the edge. */ + node?: Store | null; } -export type AgentMessageEdgeSelect = { +export type StoreEdgeSelect = { cursor?: boolean; node?: { - select: AgentMessageSelect; + select: StoreSelect; }; }; -/** A `AgentTask` edge in the connection. */ -export interface AgentTaskEdge { +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { cursor?: string | null; - /** The `AgentTask` at the end of the edge. */ - node?: AgentTask | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; } -export type AgentTaskEdgeSelect = { +export type AppPermissionDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AgentTaskSelect; + select: AppPermissionDefaultSelect; }; }; /** A `RoleType` edge in the connection. */ @@ -39625,52 +41049,52 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; -/** A `Ref` edge in the connection. */ -export interface RefEdge { +/** A `DevicesModule` edge in the connection. */ +export interface DevicesModuleEdge { cursor?: string | null; - /** The `Ref` at the end of the edge. */ - node?: Ref | null; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; } -export type RefEdgeSelect = { +export type DevicesModuleEdgeSelect = { cursor?: boolean; node?: { - select: RefSelect; + select: DevicesModuleSelect; }; }; -/** A `Store` edge in the connection. */ -export interface StoreEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `Store` at the end of the edge. */ - node?: Store | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type StoreEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: StoreSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type AppPermissionDefaultEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionDefaultSelect; + select: OrgMembershipDefaultSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type NodeTypeRegistryEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: NodeTypeRegistrySelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -39721,42 +41145,6 @@ export type OrgLimitCapEdgeSelect = { select: OrgLimitCapSelect; }; }; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { - cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; -} -export type DevicesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DevicesModuleSelect; - }; -}; -/** A `NodeTypeRegistry` edge in the connection. */ -export interface NodeTypeRegistryEdge { - cursor?: string | null; - /** The `NodeTypeRegistry` at the end of the edge. */ - node?: NodeTypeRegistry | null; -} -export type NodeTypeRegistryEdgeSelect = { - cursor?: boolean; - node?: { - select: NodeTypeRegistrySelect; - }; -}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -39781,6 +41169,18 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +export type AppLimitCreditCodeEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeSelect; + }; +}; /** A `AppLimitWarning` edge in the connection. */ export interface AppLimitWarningEdge { cursor?: string | null; @@ -39829,40 +41229,16 @@ export type RateLimitsModuleEdgeSelect = { select: RateLimitsModuleSelect; }; }; -/** A `UsageSnapshot` edge in the connection. */ -export interface UsageSnapshotEdge { - cursor?: string | null; - /** The `UsageSnapshot` at the end of the edge. */ - node?: UsageSnapshot | null; -} -export type UsageSnapshotEdgeSelect = { - cursor?: boolean; - node?: { - select: UsageSnapshotSelect; - }; -}; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `RlsSetting` edge in the connection. */ @@ -39889,6 +41265,18 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; +/** A `AgentChatModule` edge in the connection. */ +export interface AgentChatModuleEdge { + cursor?: string | null; + /** The `AgentChatModule` at the end of the edge. */ + node?: AgentChatModule | null; +} +export type AgentChatModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentChatModuleSelect; + }; +}; /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -39913,40 +41301,40 @@ export type PlansModuleEdgeSelect = { select: PlansModuleSelect; }; }; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type DatabaseSettingEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: DatabaseSettingSelect; + select: AppLimitEventSelect; }; }; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; } -export type BillingModuleEdgeSelect = { +export type OrgLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: BillingModuleSelect; + select: OrgLimitEventSelect; }; }; -/** A `User` edge in the connection. */ -export interface UserEdge { +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; } -export type UserEdgeSelect = { +export type DatabaseSettingEdgeSelect = { cursor?: boolean; node?: { - select: UserSelect; + select: DatabaseSettingSelect; }; }; /** A `OrgMembershipSetting` edge in the connection. */ @@ -39961,6 +41349,30 @@ export type OrgMembershipSettingEdgeSelect = { select: OrgMembershipSettingSelect; }; }; +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { + cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; +/** A `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** The `User` at the end of the edge. */ + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; /** A `WebauthnSetting` edge in the connection. */ export interface WebauthnSettingEdge { cursor?: string | null; @@ -39973,16 +41385,16 @@ export type WebauthnSettingEdgeSelect = { select: WebauthnSettingSelect; }; }; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type AppMembershipEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: BillingModuleSelect; }; }; /** A `BillingProviderModule` edge in the connection. */ diff --git a/sdk/constructive-cli/src/auth/orm/models/auditLog.ts b/sdk/constructive-react/src/public/orm/models/agentChatModule.ts similarity index 50% rename from sdk/constructive-cli/src/auth/orm/models/auditLog.ts rename to sdk/constructive-react/src/public/orm/models/agentChatModule.ts index 8d8abc012f..a531d98ff6 100644 --- a/sdk/constructive-cli/src/auth/orm/models/auditLog.ts +++ b/sdk/constructive-react/src/public/orm/models/agentChatModule.ts @@ -1,5 +1,5 @@ /** - * AuditLog model for ORM client + * AgentChatModule 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 { - AuditLog, - AuditLogWithRelations, - AuditLogSelect, - AuditLogFilter, - AuditLogOrderBy, - CreateAuditLogInput, - UpdateAuditLogInput, - AuditLogPatch, + AgentChatModule, + AgentChatModuleWithRelations, + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy, + CreateAgentChatModuleInput, + UpdateAgentChatModuleInput, + AgentChatModulePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class AuditLogModel { +export class AgentChatModuleModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - auditLogs: ConnectionResult>; + agentChatModules: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', + 'AgentChatModule', + 'agentChatModules', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class AuditLogModel { before: args?.before, offset: args?.offset, }, - 'AuditLogFilter', - 'AuditLogOrderBy', + 'AgentChatModuleFilter', + 'AgentChatModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLogs', + operationName: 'AgentChatModule', + fieldName: 'agentChatModules', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - auditLog: InferSelectResult | null; + agentChatModule: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'AuditLog', - 'auditLogs', + 'AgentChatModule', + 'agentChatModules', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'AuditLogFilter', - 'AuditLogOrderBy', + 'AgentChatModuleFilter', + 'AgentChatModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', + operationName: 'AgentChatModule', + fieldName: 'agentChatModule', document, variables, transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; + agentChatModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, + agentChatModule: data.agentChatModules?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - auditLog: InferSelectResult | null; + agentChatModule: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', + 'AgentChatModule', + 'agentChatModules', args.select, { where: { @@ -124,90 +124,90 @@ export class AuditLogModel { }, first: 1, }, - 'AuditLogFilter', - 'AuditLogOrderBy', + 'AgentChatModuleFilter', + 'AgentChatModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', + operationName: 'AgentChatModule', + fieldName: 'agentChatModule', document, variables, transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; + agentChatModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, + agentChatModule: data.agentChatModules?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createAuditLog: { - auditLog: InferSelectResult; + createAgentChatModule: { + agentChatModule: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'AuditLog', - 'createAuditLog', - 'auditLog', + 'AgentChatModule', + 'createAgentChatModule', + 'agentChatModule', args.select, args.data, - 'CreateAuditLogInput', + 'CreateAgentChatModuleInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'createAuditLog', + operationName: 'AgentChatModule', + fieldName: 'createAgentChatModule', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - AuditLogPatch + AgentChatModulePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateAuditLog: { - auditLog: InferSelectResult; + updateAgentChatModule: { + agentChatModule: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'AuditLog', - 'updateAuditLog', - 'auditLog', + 'AgentChatModule', + 'updateAgentChatModule', + 'agentChatModule', args.select, args.where.id, args.data, - 'UpdateAuditLogInput', + 'UpdateAgentChatModuleInput', 'id', - 'auditLogPatch', + 'agentChatModulePatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'updateAuditLog', + operationName: 'AgentChatModule', + fieldName: 'updateAgentChatModule', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -215,28 +215,28 @@ export class AuditLogModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteAuditLog: { - auditLog: InferSelectResult; + deleteAgentChatModule: { + agentChatModule: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'AuditLog', - 'deleteAuditLog', - 'auditLog', + 'AgentChatModule', + 'deleteAgentChatModule', + 'agentChatModule', { id: args.where.id, }, - 'DeleteAuditLogInput', + 'DeleteAgentChatModuleInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'deleteAuditLog', + operationName: 'AgentChatModule', + fieldName: 'deleteAgentChatModule', document, variables, }); diff --git a/sdk/constructive-react/src/public/orm/models/agentTask.ts b/sdk/constructive-react/src/public/orm/models/agentTask.ts deleted file mode 100644 index 3bbc609f16..0000000000 --- a/sdk/constructive-react/src/public/orm/models/agentTask.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AgentTask 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 { - AgentTask, - AgentTaskWithRelations, - AgentTaskSelect, - AgentTaskFilter, - AgentTaskOrderBy, - CreateAgentTaskInput, - UpdateAgentTaskInput, - AgentTaskPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AgentTaskModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentTasks: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AgentTask', - 'agentTasks', - 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, - }, - 'AgentTaskFilter', - 'AgentTaskOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentTask', - fieldName: 'agentTasks', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentTask: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AgentTask', - 'agentTasks', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AgentTaskFilter', - 'AgentTaskOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentTask', - fieldName: 'agentTask', - document, - variables, - transform: (data: { - agentTasks?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - agentTask: data.agentTasks?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentTask: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AgentTask', - 'agentTasks', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AgentTaskFilter', - 'AgentTaskOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentTask', - fieldName: 'agentTask', - document, - variables, - transform: (data: { - agentTasks?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - agentTask: data.agentTasks?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAgentTask: { - agentTask: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AgentTask', - 'createAgentTask', - 'agentTask', - args.select, - args.data, - 'CreateAgentTaskInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentTask', - fieldName: 'createAgentTask', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AgentTaskPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAgentTask: { - agentTask: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AgentTask', - 'updateAgentTask', - 'agentTask', - args.select, - args.where.id, - args.data, - 'UpdateAgentTaskInput', - 'id', - 'agentTaskPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentTask', - fieldName: 'updateAgentTask', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAgentTask: { - agentTask: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AgentTask', - 'deleteAgentTask', - 'agentTask', - { - id: args.where.id, - }, - 'DeleteAgentTaskInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentTask', - fieldName: 'deleteAgentTask', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts +++ b/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-react/src/public/orm/models/auditLog.ts b/sdk/constructive-react/src/public/orm/models/auditLog.ts deleted file mode 100644 index 8d8abc012f..0000000000 --- a/sdk/constructive-react/src/public/orm/models/auditLog.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AuditLog 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 { - AuditLog, - AuditLogWithRelations, - AuditLogSelect, - AuditLogFilter, - AuditLogOrderBy, - CreateAuditLogInput, - UpdateAuditLogInput, - AuditLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AuditLogModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogs: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - 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, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLogs', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AuditLog', - 'createAuditLog', - 'auditLog', - args.select, - args.data, - 'CreateAuditLogInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'createAuditLog', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AuditLogPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AuditLog', - 'updateAuditLog', - 'auditLog', - args.select, - args.where.id, - args.data, - 'UpdateAuditLogInput', - 'id', - 'auditLogPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'updateAuditLog', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AuditLog', - 'deleteAuditLog', - 'auditLog', - { - id: args.where.id, - }, - 'DeleteAuditLogInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'deleteAuditLog', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/models/agentThread.ts b/sdk/constructive-react/src/public/orm/models/auditLogAuth.ts similarity index 52% rename from sdk/constructive-react/src/public/orm/models/agentThread.ts rename to sdk/constructive-react/src/public/orm/models/auditLogAuth.ts index 7bbd14abec..8a6665612c 100644 --- a/sdk/constructive-react/src/public/orm/models/agentThread.ts +++ b/sdk/constructive-react/src/public/orm/models/auditLogAuth.ts @@ -1,5 +1,5 @@ /** - * AgentThread model for ORM client + * AuditLogAuth 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 { - AgentThread, - AgentThreadWithRelations, - AgentThreadSelect, - AgentThreadFilter, - AgentThreadOrderBy, - CreateAgentThreadInput, - UpdateAgentThreadInput, - AgentThreadPatch, + AuditLogAuth, + AuditLogAuthWithRelations, + AuditLogAuthSelect, + AuditLogAuthFilter, + AuditLogAuthOrderBy, + CreateAuditLogAuthInput, + UpdateAuditLogAuthInput, + AuditLogAuthPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class AgentThreadModel { +export class AuditLogAuthModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentThreads: ConnectionResult>; + auditLogAuths: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'AgentThread', - 'agentThreads', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class AgentThreadModel { before: args?.before, offset: args?.offset, }, - 'AgentThreadFilter', - 'AgentThreadOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentThread', - fieldName: 'agentThreads', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuths', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentThread: InferSelectResult | null; + auditLogAuth: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'AgentThread', - 'agentThreads', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'AgentThreadFilter', - 'AgentThreadOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentThread', - fieldName: 'agentThread', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', document, variables, transform: (data: { - agentThreads?: { - nodes?: InferSelectResult[]; + auditLogAuths?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentThread: data.agentThreads?.nodes?.[0] ?? null, + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - agentThread: InferSelectResult | null; + auditLogAuth: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'AgentThread', - 'agentThreads', + 'AuditLogAuth', + 'auditLogAuths', args.select, { where: { @@ -124,90 +124,90 @@ export class AgentThreadModel { }, first: 1, }, - 'AgentThreadFilter', - 'AgentThreadOrderBy', + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'AgentThread', - fieldName: 'agentThread', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', document, variables, transform: (data: { - agentThreads?: { - nodes?: InferSelectResult[]; + auditLogAuths?: { + nodes?: InferSelectResult[]; }; }) => ({ - agentThread: data.agentThreads?.nodes?.[0] ?? null, + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createAgentThread: { - agentThread: InferSelectResult; + createAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'AgentThread', - 'createAgentThread', - 'agentThread', + 'AuditLogAuth', + 'createAuditLogAuth', + 'auditLogAuth', args.select, args.data, - 'CreateAgentThreadInput', + 'CreateAuditLogAuthInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentThread', - fieldName: 'createAgentThread', + operationName: 'AuditLogAuth', + fieldName: 'createAuditLogAuth', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - AgentThreadPatch + AuditLogAuthPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateAgentThread: { - agentThread: InferSelectResult; + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'AgentThread', - 'updateAgentThread', - 'agentThread', + 'AuditLogAuth', + 'updateAuditLogAuth', + 'auditLogAuth', args.select, args.where.id, args.data, - 'UpdateAgentThreadInput', + 'UpdateAuditLogAuthInput', 'id', - 'agentThreadPatch', + 'auditLogAuthPatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentThread', - fieldName: 'updateAgentThread', + operationName: 'AuditLogAuth', + fieldName: 'updateAuditLogAuth', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -215,28 +215,28 @@ export class AgentThreadModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteAgentThread: { - agentThread: InferSelectResult; + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'AgentThread', - 'deleteAgentThread', - 'agentThread', + 'AuditLogAuth', + 'deleteAuditLogAuth', + 'auditLogAuth', { id: args.where.id, }, - 'DeleteAgentThreadInput', + 'DeleteAuditLogAuthInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'AgentThread', - fieldName: 'deleteAgentThread', + operationName: 'AuditLogAuth', + fieldName: 'deleteAuditLogAuth', document, variables, }); diff --git a/sdk/constructive-react/src/public/orm/models/computeLogModule.ts b/sdk/constructive-react/src/public/orm/models/computeLogModule.ts new file mode 100644 index 0000000000..2e36321ef1 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/computeLogModule.ts @@ -0,0 +1,244 @@ +/** + * ComputeLogModule 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 { + ComputeLogModule, + ComputeLogModuleWithRelations, + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy, + CreateComputeLogModuleInput, + UpdateComputeLogModuleInput, + ComputeLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ComputeLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + computeLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ComputeLogModule', + 'computeLogModules', + 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, + }, + 'ComputeLogModuleFilter', + 'ComputeLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ComputeLogModule', + fieldName: 'computeLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + computeLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ComputeLogModule', + 'computeLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ComputeLogModuleFilter', + 'ComputeLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ComputeLogModule', + fieldName: 'computeLogModule', + document, + variables, + transform: (data: { + computeLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + computeLogModule: data.computeLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + computeLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ComputeLogModule', + 'computeLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ComputeLogModuleFilter', + 'ComputeLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ComputeLogModule', + fieldName: 'computeLogModule', + document, + variables, + transform: (data: { + computeLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + computeLogModule: data.computeLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ComputeLogModule', + 'createComputeLogModule', + 'computeLogModule', + args.select, + args.data, + 'CreateComputeLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ComputeLogModule', + fieldName: 'createComputeLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ComputeLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ComputeLogModule', + 'updateComputeLogModule', + 'computeLogModule', + args.select, + args.where.id, + args.data, + 'UpdateComputeLogModuleInput', + 'id', + 'computeLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ComputeLogModule', + fieldName: 'updateComputeLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ComputeLogModule', + 'deleteComputeLogModule', + 'computeLogModule', + { + id: args.where.id, + }, + 'DeleteComputeLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ComputeLogModule', + fieldName: 'deleteComputeLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/configSecretsOrgModule.ts b/sdk/constructive-react/src/public/orm/models/configSecretsOrgModule.ts new file mode 100644 index 0000000000..ef53f2d5cd --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/configSecretsOrgModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsOrgModule 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 { + ConfigSecretsOrgModule, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, + CreateConfigSecretsOrgModuleInput, + UpdateConfigSecretsOrgModuleInput, + ConfigSecretsOrgModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsOrgModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + 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, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsOrgModule', + 'createConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.data, + 'CreateConfigSecretsOrgModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'createConfigSecretsOrgModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsOrgModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsOrgModule', + 'updateConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsOrgModuleInput', + 'id', + 'configSecretsOrgModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'updateConfigSecretsOrgModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsOrgModule', + 'deleteConfigSecretsOrgModule', + 'configSecretsOrgModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsOrgModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'deleteConfigSecretsOrgModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/configSecretsUserModule.ts b/sdk/constructive-react/src/public/orm/models/configSecretsUserModule.ts new file mode 100644 index 0000000000..b1b8f0cacb --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/configSecretsUserModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsUserModule 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 { + ConfigSecretsUserModule, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, + CreateConfigSecretsUserModuleInput, + UpdateConfigSecretsUserModuleInput, + ConfigSecretsUserModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsUserModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + 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, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsUserModule', + 'createConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.data, + 'CreateConfigSecretsUserModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'createConfigSecretsUserModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsUserModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsUserModule', + 'updateConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsUserModuleInput', + 'id', + 'configSecretsUserModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'updateConfigSecretsUserModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsUserModule', + 'deleteConfigSecretsUserModule', + 'configSecretsUserModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsUserModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'deleteConfigSecretsUserModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/models/usageSnapshot.ts b/sdk/constructive-react/src/public/orm/models/dbUsageModule.ts similarity index 53% rename from sdk/constructive-cli/src/admin/orm/models/usageSnapshot.ts rename to sdk/constructive-react/src/public/orm/models/dbUsageModule.ts index 9fad79a81f..69aa58b980 100644 --- a/sdk/constructive-cli/src/admin/orm/models/usageSnapshot.ts +++ b/sdk/constructive-react/src/public/orm/models/dbUsageModule.ts @@ -1,5 +1,5 @@ /** - * UsageSnapshot model for ORM client + * DbUsageModule 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 { - UsageSnapshot, - UsageSnapshotWithRelations, - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy, - CreateUsageSnapshotInput, - UpdateUsageSnapshotInput, - UsageSnapshotPatch, + DbUsageModule, + DbUsageModuleWithRelations, + DbUsageModuleSelect, + DbUsageModuleFilter, + DbUsageModuleOrderBy, + CreateDbUsageModuleInput, + UpdateDbUsageModuleInput, + DbUsageModulePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class UsageSnapshotModel { +export class DbUsageModuleModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - usageSnapshots: ConnectionResult>; + dbUsageModules: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', + 'DbUsageModule', + 'dbUsageModules', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class UsageSnapshotModel { before: args?.before, offset: args?.offset, }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', + 'DbUsageModuleFilter', + 'DbUsageModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshots', + operationName: 'DbUsageModule', + fieldName: 'dbUsageModules', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; + dbUsageModule: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'UsageSnapshot', - 'usageSnapshots', + 'DbUsageModule', + 'dbUsageModules', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', + 'DbUsageModuleFilter', + 'DbUsageModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'dbUsageModule', document, variables, transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; + dbUsageModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, + dbUsageModule: data.dbUsageModules?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; + dbUsageModule: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', + 'DbUsageModule', + 'dbUsageModules', args.select, { where: { @@ -124,90 +124,90 @@ export class UsageSnapshotModel { }, first: 1, }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', + 'DbUsageModuleFilter', + 'DbUsageModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'dbUsageModule', document, variables, transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; + dbUsageModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, + dbUsageModule: data.dbUsageModules?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createUsageSnapshot: { - usageSnapshot: InferSelectResult; + createDbUsageModule: { + dbUsageModule: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'UsageSnapshot', - 'createUsageSnapshot', - 'usageSnapshot', + 'DbUsageModule', + 'createDbUsageModule', + 'dbUsageModule', args.select, args.data, - 'CreateUsageSnapshotInput', + 'CreateDbUsageModuleInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'createUsageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'createDbUsageModule', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - UsageSnapshotPatch + DbUsageModulePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; + updateDbUsageModule: { + dbUsageModule: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'UsageSnapshot', - 'updateUsageSnapshot', - 'usageSnapshot', + 'DbUsageModule', + 'updateDbUsageModule', + 'dbUsageModule', args.select, args.where.id, args.data, - 'UpdateUsageSnapshotInput', + 'UpdateDbUsageModuleInput', 'id', - 'usageSnapshotPatch', + 'dbUsageModulePatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'updateUsageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'updateDbUsageModule', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -215,28 +215,28 @@ export class UsageSnapshotModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; + deleteDbUsageModule: { + dbUsageModule: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'UsageSnapshot', - 'deleteUsageSnapshot', - 'usageSnapshot', + 'DbUsageModule', + 'deleteDbUsageModule', + 'dbUsageModule', { id: args.where.id, }, - 'DeleteUsageSnapshotInput', + 'DeleteDbUsageModuleInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'deleteUsageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'deleteDbUsageModule', document, variables, }); diff --git a/sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts b/sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts deleted file mode 100644 index 754ec7e785..0000000000 --- a/sdk/constructive-react/src/public/orm/models/encryptedSecretsModule.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * EncryptedSecretsModule 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 { - EncryptedSecretsModule, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, - CreateEncryptedSecretsModuleInput, - UpdateEncryptedSecretsModuleInput, - EncryptedSecretsModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class EncryptedSecretsModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - 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, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'EncryptedSecretsModule', - 'createEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.data, - 'CreateEncryptedSecretsModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'createEncryptedSecretsModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - EncryptedSecretsModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'EncryptedSecretsModule', - 'updateEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.where.id, - args.data, - 'UpdateEncryptedSecretsModuleInput', - 'id', - 'encryptedSecretsModulePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'updateEncryptedSecretsModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'EncryptedSecretsModule', - 'deleteEncryptedSecretsModule', - 'encryptedSecretsModule', - { - id: args.where.id, - }, - 'DeleteEncryptedSecretsModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'deleteEncryptedSecretsModule', - 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 f32f15f0cb..706bbd0102 100644 --- a/sdk/constructive-react/src/public/orm/models/index.ts +++ b/sdk/constructive-react/src/public/orm/models/index.ts @@ -6,9 +6,9 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; +export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; -export { ObjectModel } from './object'; export { DatabaseModel } from './database'; export { SchemaModel } from './schema'; export { TableModel } from './table'; @@ -33,6 +33,7 @@ export { RelationProvisionModel } from './relationProvision'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RealtimeModuleModel } from './realtimeModule'; +export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; export { EnumModel } from './enum'; @@ -57,7 +58,7 @@ export { CryptoAuthModuleModel } from './cryptoAuthModule'; export { DefaultIdsModuleModel } from './defaultIdsModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; export { EmailsModuleModel } from './emailsModule'; -export { EncryptedSecretsModuleModel } from './encryptedSecretsModule'; +export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { InvitesModuleModel } from './invitesModule'; export { EventsModuleModel } from './eventsModule'; export { LimitsModuleModel } from './limitsModule'; @@ -78,6 +79,11 @@ export { EntityTypeProvisionModel } from './entityTypeProvision'; export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; export { NotificationsModuleModel } from './notificationsModule'; +export { InferenceLogModuleModel } from './inferenceLogModule'; +export { ComputeLogModuleModel } from './computeLogModule'; +export { TransferLogModuleModel } from './transferLogModule'; +export { StorageLogModuleModel } from './storageLogModule'; +export { DbUsageModuleModel } from './dbUsageModule'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; @@ -107,47 +113,44 @@ export { AppInviteModel } from './appInvite'; export { AppClaimedInviteModel } from './appClaimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AuditLogModel } from './auditLog'; -export { AgentThreadModel } from './agentThread'; -export { AgentMessageModel } from './agentMessage'; -export { AgentTaskModel } from './agentTask'; -export { RoleTypeModel } from './roleType'; +export { AuditLogAuthModel } from './auditLogAuth'; export { IdentityProviderModel } from './identityProvider'; export { RefModel } from './ref'; export { StoreModel } from './store'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { RoleTypeModel } from './roleType'; +export { MigrateFileModel } from './migrateFile'; +export { DevicesModuleModel } from './devicesModule'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; export { AppLimitCapModel } from './appLimitCap'; export { OrgLimitCapModel } from './orgLimitCap'; -export { MembershipTypeModel } from './membershipType'; -export { MigrateFileModel } from './migrateFile'; -export { DevicesModuleModel } from './devicesModule'; -export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { UserConnectedAccountModel } from './userConnectedAccount'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; export { AppLimitWarningModel } from './appLimitWarning'; -export { UserConnectedAccountModel } from './userConnectedAccount'; export { CommitModel } from './commit'; export { PubkeySettingModel } from './pubkeySetting'; export { RateLimitsModuleModel } from './rateLimitsModule'; -export { UsageSnapshotModel } from './usageSnapshot'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { RlsSettingModel } from './rlsSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { RlsModuleModel } from './rlsModule'; +export { AgentChatModuleModel } from './agentChatModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { PlansModuleModel } from './plansModule'; export { SqlActionModel } from './sqlAction'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { DatabaseSettingModel } from './databaseSetting'; -export { BillingModuleModel } from './billingModule'; -export { AstMigrationModel } from './astMigration'; -export { UserModel } from './user'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { WebauthnSettingModel } from './webauthnSetting'; export { AppMembershipModel } from './appMembership'; +export { UserModel } from './user'; +export { AstMigrationModel } from './astMigration'; +export { WebauthnSettingModel } from './webauthnSetting'; +export { BillingModuleModel } from './billingModule'; export { BillingProviderModuleModel } from './billingProviderModule'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-react/src/public/orm/models/inferenceLogModule.ts b/sdk/constructive-react/src/public/orm/models/inferenceLogModule.ts new file mode 100644 index 0000000000..f6f4ab2452 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/inferenceLogModule.ts @@ -0,0 +1,244 @@ +/** + * InferenceLogModule 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 { + InferenceLogModule, + InferenceLogModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, + CreateInferenceLogModuleInput, + UpdateInferenceLogModuleInput, + InferenceLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InferenceLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + 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, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InferenceLogModule', + 'createInferenceLogModule', + 'inferenceLogModule', + args.select, + args.data, + 'CreateInferenceLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'createInferenceLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InferenceLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InferenceLogModule', + 'updateInferenceLogModule', + 'inferenceLogModule', + args.select, + args.where.id, + args.data, + 'UpdateInferenceLogModuleInput', + 'id', + 'inferenceLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'updateInferenceLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InferenceLogModule', + 'deleteInferenceLogModule', + 'inferenceLogModule', + { + id: args.where.id, + }, + 'DeleteInferenceLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'deleteInferenceLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-react/src/public/orm/models/storageLogModule.ts b/sdk/constructive-react/src/public/orm/models/storageLogModule.ts new file mode 100644 index 0000000000..60e0b45cac --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/storageLogModule.ts @@ -0,0 +1,244 @@ +/** + * StorageLogModule 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 { + StorageLogModule, + StorageLogModuleWithRelations, + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy, + CreateStorageLogModuleInput, + UpdateStorageLogModuleInput, + StorageLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class StorageLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + storageLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'StorageLogModule', + 'storageLogModules', + 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, + }, + 'StorageLogModuleFilter', + 'StorageLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'StorageLogModule', + fieldName: 'storageLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + storageLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'StorageLogModule', + 'storageLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'StorageLogModuleFilter', + 'StorageLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'StorageLogModule', + fieldName: 'storageLogModule', + document, + variables, + transform: (data: { + storageLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + storageLogModule: data.storageLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + storageLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'StorageLogModule', + 'storageLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'StorageLogModuleFilter', + 'StorageLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'StorageLogModule', + fieldName: 'storageLogModule', + document, + variables, + transform: (data: { + storageLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + storageLogModule: data.storageLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'StorageLogModule', + 'createStorageLogModule', + 'storageLogModule', + args.select, + args.data, + 'CreateStorageLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'StorageLogModule', + fieldName: 'createStorageLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + StorageLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'StorageLogModule', + 'updateStorageLogModule', + 'storageLogModule', + args.select, + args.where.id, + args.data, + 'UpdateStorageLogModuleInput', + 'id', + 'storageLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'StorageLogModule', + fieldName: 'updateStorageLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'StorageLogModule', + 'deleteStorageLogModule', + 'storageLogModule', + { + id: args.where.id, + }, + 'DeleteStorageLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'StorageLogModule', + fieldName: 'deleteStorageLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/transferLogModule.ts b/sdk/constructive-react/src/public/orm/models/transferLogModule.ts new file mode 100644 index 0000000000..dd1b30c286 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/transferLogModule.ts @@ -0,0 +1,244 @@ +/** + * TransferLogModule 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 { + TransferLogModule, + TransferLogModuleWithRelations, + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy, + CreateTransferLogModuleInput, + UpdateTransferLogModuleInput, + TransferLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class TransferLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + transferLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'TransferLogModule', + 'transferLogModules', + 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, + }, + 'TransferLogModuleFilter', + 'TransferLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TransferLogModule', + fieldName: 'transferLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + transferLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'TransferLogModule', + 'transferLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'TransferLogModuleFilter', + 'TransferLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TransferLogModule', + fieldName: 'transferLogModule', + document, + variables, + transform: (data: { + transferLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + transferLogModule: data.transferLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + transferLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'TransferLogModule', + 'transferLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'TransferLogModuleFilter', + 'TransferLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TransferLogModule', + fieldName: 'transferLogModule', + document, + variables, + transform: (data: { + transferLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + transferLogModule: data.transferLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'TransferLogModule', + 'createTransferLogModule', + 'transferLogModule', + args.select, + args.data, + 'CreateTransferLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TransferLogModule', + fieldName: 'createTransferLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + TransferLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'TransferLogModule', + 'updateTransferLogModule', + 'transferLogModule', + args.select, + args.where.id, + args.data, + 'UpdateTransferLogModuleInput', + 'id', + 'transferLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TransferLogModule', + fieldName: 'updateTransferLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'TransferLogModule', + 'deleteTransferLogModule', + 'transferLogModule', + { + id: args.where.id, + }, + 'DeleteTransferLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TransferLogModule', + fieldName: 'deleteTransferLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/usageSnapshot.ts b/sdk/constructive-react/src/public/orm/models/usageSnapshot.ts deleted file mode 100644 index 9fad79a81f..0000000000 --- a/sdk/constructive-react/src/public/orm/models/usageSnapshot.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * UsageSnapshot 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 { - UsageSnapshot, - UsageSnapshotWithRelations, - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy, - CreateUsageSnapshotInput, - UpdateUsageSnapshotInput, - UsageSnapshotPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class UsageSnapshotModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - usageSnapshots: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', - 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, - }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshots', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'UsageSnapshot', - 'usageSnapshots', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', - document, - variables, - transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', - document, - variables, - transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'UsageSnapshot', - 'createUsageSnapshot', - 'usageSnapshot', - args.select, - args.data, - 'CreateUsageSnapshotInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'createUsageSnapshot', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - UsageSnapshotPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'UsageSnapshot', - 'updateUsageSnapshot', - 'usageSnapshot', - args.select, - args.where.id, - args.data, - 'UpdateUsageSnapshotInput', - 'id', - 'usageSnapshotPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'updateUsageSnapshot', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'UsageSnapshot', - 'deleteUsageSnapshot', - 'usageSnapshot', - { - id: args.where.id, - }, - 'DeleteUsageSnapshotInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'deleteUsageSnapshot', - document, - variables, - }); - } -} diff --git a/sdk/constructive-react/src/public/orm/mutation/index.ts b/sdk/constructive-react/src/public/orm/mutation/index.ts index 8d1e1cbef2..d9241c2882 100644 --- a/sdk/constructive-react/src/public/orm/mutation/index.ts +++ b/sdk/constructive-react/src/public/orm/mutation/index.ts @@ -31,7 +31,10 @@ import type { RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, + SignInCrossOriginInput, BootstrapUserInput, + SignUpInput, + SignInInput, SetFieldOrderInput, ProvisionCheckConstraintInput, ProvisionUniqueConstraintInput, @@ -45,16 +48,13 @@ import type { SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, - SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, - SendVerificationEmailInput, - ForgotPasswordInput, - SignUpInput, RequestCrossOriginTokenInput, - SignInInput, ProvisionTableInput, + SendVerificationEmailInput, + ForgotPasswordInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, @@ -80,7 +80,10 @@ import type { RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, + SignInCrossOriginPayload, BootstrapUserPayload, + SignUpPayload, + SignInPayload, SetFieldOrderPayload, ProvisionCheckConstraintPayload, ProvisionUniqueConstraintPayload, @@ -94,16 +97,13 @@ import type { SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, - SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, - SignUpPayload, RequestCrossOriginTokenPayload, - SignInPayload, ProvisionTablePayload, + SendVerificationEmailPayload, + ForgotPasswordPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, @@ -129,7 +129,10 @@ import type { RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, + SignInCrossOriginPayloadSelect, BootstrapUserPayloadSelect, + SignUpPayloadSelect, + SignInPayloadSelect, SetFieldOrderPayloadSelect, ProvisionCheckConstraintPayloadSelect, ProvisionUniqueConstraintPayloadSelect, @@ -143,16 +146,13 @@ import type { SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, - SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, - SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, - SignInPayloadSelect, ProvisionTablePayloadSelect, + SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -212,7 +212,7 @@ export interface InitEmptyRepoVariables { } /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; @@ -240,9 +240,18 @@ export interface CopyTemplateToBlueprintVariables { export interface ProvisionSpatialRelationVariables { input: ProvisionSpatialRelationInput; } +export interface SignInCrossOriginVariables { + input: SignInCrossOriginInput; +} export interface BootstrapUserVariables { input: BootstrapUserInput; } +export interface SignUpVariables { + input: SignUpInput; +} +export interface SignInVariables { + input: SignInInput; +} export interface SetFieldOrderVariables { input: SetFieldOrderInput; } @@ -302,9 +311,6 @@ export interface ProvisionRelationVariables { export interface ApplyRlsVariables { input: ApplyRlsInput; } -export interface SignInCrossOriginVariables { - input: SignInCrossOriginInput; -} /** * Variables for createUserDatabase * Creates a new user database with all required modules, permissions, and RLS policies. @@ -333,21 +339,9 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} -export interface SignUpVariables { - input: SignUpInput; -} export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } -export interface SignInVariables { - input: SignInInput; -} /** * Variables for provisionTable * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -355,6 +349,12 @@ export interface SignInVariables { export interface ProvisionTableVariables { input: ProvisionTableInput; } +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -1063,6 +1063,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionSpatialRelationPayload' ), }), + signInCrossOrigin: ( + args: SignInCrossOriginVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInCrossOrigin: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInCrossOrigin', + fieldName: 'signInCrossOrigin', + ...buildCustomDocument( + 'mutation', + 'SignInCrossOrigin', + 'signInCrossOrigin', + options.select, + args, + [ + { + name: 'input', + type: 'SignInCrossOriginInput!', + }, + ], + connectionFieldsMap, + 'SignInCrossOriginPayload' + ), + }), bootstrapUser: ( args: BootstrapUserVariables, options: { @@ -1092,6 +1121,64 @@ export function createMutationOperations(client: OrmClient) { 'BootstrapUserPayload' ), }), + signUp: ( + args: SignUpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUp', + fieldName: 'signUp', + ...buildCustomDocument( + 'mutation', + 'SignUp', + 'signUp', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpInput!', + }, + ], + connectionFieldsMap, + 'SignUpPayload' + ), + }), + signIn: ( + args: SignInVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signIn: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignIn', + fieldName: 'signIn', + ...buildCustomDocument( + 'mutation', + 'SignIn', + 'signIn', + options.select, + args, + [ + { + name: 'input', + type: 'SignInInput!', + }, + ], + connectionFieldsMap, + 'SignInPayload' + ), + }), setFieldOrder: ( args: SetFieldOrderVariables, options: { @@ -1469,35 +1556,6 @@ export function createMutationOperations(client: OrmClient) { 'ApplyRlsPayload' ), }), - signInCrossOrigin: ( - args: SignInCrossOriginVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signInCrossOrigin: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignInCrossOrigin', - fieldName: 'signInCrossOrigin', - ...buildCustomDocument( - 'mutation', - 'SignInCrossOrigin', - 'signInCrossOrigin', - options.select, - args, - [ - { - name: 'input', - type: 'SignInCrossOriginInput!', - }, - ], - connectionFieldsMap, - 'SignInCrossOriginPayload' - ), - }), createUserDatabase: ( args: CreateUserDatabaseVariables, options: { @@ -1585,178 +1643,120 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), - signUp: ( - args: SignUpVariables, + requestCrossOriginToken: ( + args: RequestCrossOriginTokenVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signUp: InferSelectResult | null; + requestCrossOriginToken: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignUp', - fieldName: 'signUp', + operationName: 'RequestCrossOriginToken', + fieldName: 'requestCrossOriginToken', ...buildCustomDocument( 'mutation', - 'SignUp', - 'signUp', + 'RequestCrossOriginToken', + 'requestCrossOriginToken', options.select, args, [ { name: 'input', - type: 'SignUpInput!', + type: 'RequestCrossOriginTokenInput!', }, ], connectionFieldsMap, - 'SignUpPayload' + 'RequestCrossOriginTokenPayload' ), }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, + provisionTable: ( + args: ProvisionTableVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; + provisionTable: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', + operationName: 'ProvisionTable', + fieldName: 'provisionTable', ...buildCustomDocument( 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', + 'ProvisionTable', + 'provisionTable', options.select, args, [ { name: 'input', - type: 'RequestCrossOriginTokenInput!', + type: 'ProvisionTableInput!', }, ], connectionFieldsMap, - 'RequestCrossOriginTokenPayload' + 'ProvisionTablePayload' ), }), - signIn: ( - args: SignInVariables, + sendVerificationEmail: ( + args: SendVerificationEmailVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signIn: InferSelectResult | null; + sendVerificationEmail: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignIn', - fieldName: 'signIn', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', ...buildCustomDocument( 'mutation', - 'SignIn', - 'signIn', + 'SendVerificationEmail', + 'sendVerificationEmail', options.select, args, [ { name: 'input', - type: 'SignInInput!', + type: 'SendVerificationEmailInput!', }, ], connectionFieldsMap, - 'SignInPayload' + 'SendVerificationEmailPayload' ), }), - provisionTable: ( - args: ProvisionTableVariables, + forgotPassword: ( + args: ForgotPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - provisionTable: InferSelectResult | null; + forgotPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', ...buildCustomDocument( 'mutation', - 'ProvisionTable', - 'provisionTable', + 'ForgotPassword', + 'forgotPassword', options.select, args, [ { name: 'input', - type: 'ProvisionTableInput!', + type: 'ForgotPasswordInput!', }, ], connectionFieldsMap, - 'ProvisionTablePayload' + 'ForgotPasswordPayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-react/src/public/orm/query/index.ts b/sdk/constructive-react/src/public/orm/query/index.ts index 7fc254ab13..b014f09988 100644 --- a/sdk/constructive-react/src/public/orm/query/index.ts +++ b/sdk/constructive-react/src/public/orm/query/index.ts @@ -11,9 +11,9 @@ import type { User, ObjectSelect, UserSelect, + ObjectConnection, AppPermissionConnection, OrgPermissionConnection, - ObjectConnection, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -26,7 +26,7 @@ export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } @@ -68,8 +68,9 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -export interface AppPermissionsGetByMaskVariables { - mask?: string; +export interface GetAllObjectsFromRootVariables { + sId?: string; + id?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -80,8 +81,10 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface OrgPermissionsGetByMaskVariables { - mask?: string; +export interface GetPathObjectsFromRootVariables { + sId?: string; + id?: string; + path?: string[]; /** Only read the first `n` values of the set. */ first?: number; /** @@ -92,9 +95,14 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; +export interface GetObjectAtPathVariables { + sId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} +export interface AppPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -105,10 +113,8 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; +export interface OrgPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -119,12 +125,6 @@ export interface GetPathObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} export function createQueryOperations(client: OrmClient) { return { currentUserId: (options?: { select?: Record }) => @@ -292,7 +292,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -547,29 +547,33 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getAllObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', }, { name: 'first', @@ -588,29 +592,37 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; + getPathObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', ...buildCustomDocument( 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', }, { name: 'first', @@ -629,82 +641,70 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, - options?: { - select?: Record; - } + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; + getObjectAtPath: InferSelectResult | null; }>({ client, operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', ...buildCustomDocument( 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', - options?.select, + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { - name: 'id', + name: 'storeId', type: 'UUID', }, { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', + name: 'path', + type: '[String]', }, { - name: 'after', - type: 'Cursor', + name: 'refname', + type: 'String', }, ], connectionFieldsMap, - undefined + 'Object' ), }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; + appPermissionsGetByMask: AppPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -723,45 +723,45 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; + orgPermissionsGetByMask: OrgPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', + options?.select, args, [ { - name: 'dbId', - type: 'UUID', + name: 'mask', + type: 'BitString', }, { - name: 'storeId', - type: 'UUID', + name: 'first', + type: 'Int', }, { - name: 'path', - type: '[String]', + name: 'offset', + type: 'Int', }, { - name: 'refname', - type: 'String', + name: 'after', + type: 'Cursor', }, ], connectionFieldsMap, - 'Object' + undefined ), }), currentUser: ( diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index ac64464296..b5baabba74 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -5,9 +5,7 @@ */ import type { - AgentMessage, - AgentTask, - AgentThread, + AgentChatModule, Api, ApiModule, ApiSchema, @@ -33,7 +31,7 @@ import type { AppPermission, AppPermissionDefault, AstMigration, - AuditLog, + AuditLogAuth, BillingModule, BillingProviderModule, Blueprint, @@ -41,6 +39,9 @@ import type { BlueprintTemplate, CheckConstraint, Commit, + ComputeLogModule, + ConfigSecretsOrgModule, + ConfigSecretsUserModule, ConnectedAccountsModule, CorsSetting, CryptoAddress, @@ -50,6 +51,7 @@ import type { DatabaseProvisionModule, DatabaseSetting, DatabaseTransfer, + DbUsageModule, DefaultIdsModule, DefaultPrivilege, DenormalizedTableField, @@ -58,7 +60,6 @@ import type { Email, EmailsModule, EmbeddingChunk, - EncryptedSecretsModule, EntityTypeProvision, Enum, EventsModule, @@ -71,6 +72,7 @@ import type { IdentityProvider, IdentityProvidersModule, Index, + InferenceLogModule, InvitesModule, LimitsModule, MembershipType, @@ -132,14 +134,15 @@ import type { SiteTheme, SpatialRelation, SqlAction, + StorageLogModule, StorageModule, Store, Table, TableGrant, + TransferLogModule, Trigger, TriggerFunction, UniqueConstraint, - UsageSnapshot, User, UserAuthModule, UserConnectedAccount, @@ -841,6 +844,21 @@ export type RealtimeModuleOrderBy = | 'INTERVAL_DESC' | 'NOTIFY_CHANNEL_ASC' | 'NOTIFY_CHANNEL_DESC'; +/** Methods to use when ordering `ConfigSecretsOrgModule`. */ +export type ConfigSecretsOrgModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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'; /** Methods to use when ordering `Table`. */ export type TableOrderBy = | 'NATURAL' @@ -1175,6 +1193,8 @@ export type PartitionOrderBy = | 'INTERVAL_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' | 'PREMAKE_ASC' | 'PREMAKE_DESC' | 'NAMING_PATTERN_ASC' @@ -1413,8 +1433,8 @@ export type EmailsModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -/** Methods to use when ordering `EncryptedSecretsModule`. */ -export type EncryptedSecretsModuleOrderBy = +/** Methods to use when ordering `ConfigSecretsUserModule`. */ +export type ConfigSecretsUserModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2046,6 +2066,8 @@ export type StorageModuleOrderBy = | 'FILES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'SKIP_DEFAULT_POLICY_TABLES_ASC' @@ -2246,6 +2268,185 @@ export type NotificationsModuleOrderBy = | 'HAS_DIGEST_METADATA_DESC' | 'HAS_SUBSCRIPTIONS_ASC' | 'HAS_SUBSCRIPTIONS_DESC'; +/** Methods to use when ordering `InferenceLogModule`. */ +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +/** Methods to use when ordering `ComputeLogModule`. */ +export type ComputeLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +/** Methods to use when ordering `TransferLogModule`. */ +export type TransferLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +/** Methods to use when ordering `StorageLogModule`. */ +export type StorageLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +/** Methods to use when ordering `DbUsageModule`. */ +export type DbUsageModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; /** Methods to use when ordering `DatabaseProvisionModule`. */ export type DatabaseProvisionModuleOrderBy = | 'NATURAL' @@ -2914,11 +3115,13 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `AuditLog`. */ -export type AuditLogOrderBy = +/** Methods to use when ordering `AuditLogAuth`. */ +export type AuditLogAuthOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' @@ -2932,89 +3135,7 @@ export type AuditLogOrderBy = | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -/** Methods to use when ordering `AgentMessage`. */ -export type AgentMessageOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'THREAD_ID_ASC' - | 'THREAD_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AUTHOR_ROLE_ASC' - | 'AUTHOR_ROLE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PARTS_ASC' - | 'PARTS_DESC'; -/** Methods to use when ordering `AgentTask`. */ -export type AgentTaskOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'THREAD_ID_ASC' - | 'THREAD_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -/** Methods to use when ordering `AgentThread`. */ -export type AgentThreadOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'MODE_ASC' - | 'MODE_DESC' - | 'MODEL_ASC' - | 'MODEL_DESC' - | 'SYSTEM_PROMPT_ASC' - | 'SYSTEM_PROMPT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -/** Methods to use when ordering `RoleType`. */ -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; + | 'SUCCESS_DESC'; /** Methods to use when ordering `IdentityProvider`. */ export type IdentityProviderOrderBy = | 'NATURAL' @@ -3037,8 +3158,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -3052,8 +3173,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -3067,144 +3188,81 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -/** Methods to use when ordering `AppLimitCreditCode`. */ -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -/** Methods to use when ordering `AppPermission`. */ -export type AppPermissionOrderBy = +/** Methods to use when ordering `RoleType`. */ +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `OrgPermission`. */ -export type OrgPermissionOrderBy = + | 'NAME_DESC'; +/** Methods to use when ordering `MigrateFile`. */ +export type MigrateFileOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `AppLimitCapsDefault`. */ -export type AppLimitCapsDefaultOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; +/** Methods to use when ordering `DevicesModule`. */ +export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgLimitCapsDefault`. */ -export type OrgLimitCapsDefaultOrderBy = + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'USER_DEVICES_TABLE_ID_ASC' + | 'USER_DEVICES_TABLE_ID_DESC' + | 'DEVICE_SETTINGS_TABLE_ID_ASC' + | 'DEVICE_SETTINGS_TABLE_ID_DESC' + | 'USER_DEVICES_TABLE_ASC' + | 'USER_DEVICES_TABLE_DESC' + | 'DEVICE_SETTINGS_TABLE_ASC' + | 'DEVICE_SETTINGS_TABLE_DESC'; +/** Methods to use when ordering `AppMembershipDefault`. */ +export type AppMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `AppLimitCap`. */ -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgLimitCap`. */ -export type OrgLimitCapOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +/** Methods to use when ordering `OrgMembershipDefault`. */ +export type OrgMembershipDefaultOrderBy = | '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' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -/** Methods to use when ordering `MigrateFile`. */ -export type MigrateFileOrderBy = - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; -/** Methods to use when ordering `DevicesModule`. */ -export type DevicesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USER_DEVICES_TABLE_ID_ASC' - | 'USER_DEVICES_TABLE_ID_DESC' - | 'DEVICE_SETTINGS_TABLE_ID_ASC' - | 'DEVICE_SETTINGS_TABLE_ID_DESC' - | 'USER_DEVICES_TABLE_ASC' - | 'USER_DEVICES_TABLE_DESC' - | 'DEVICE_SETTINGS_TABLE_ASC' - | 'DEVICE_SETTINGS_TABLE_DESC'; + | 'ENTITY_ID_DESC'; /** Methods to use when ordering `NodeTypeRegistry`. */ export type NodeTypeRegistryOrderBy = | 'NATURAL' @@ -3224,8 +3282,8 @@ export type NodeTypeRegistryOrderBy = | 'PARAMETER_SCHEMA_DESC' | 'TAGS_ASC' | 'TAGS_DESC'; -/** Methods to use when ordering `AppLimitDefault`. */ -export type AppLimitDefaultOrderBy = +/** Methods to use when ordering `AppLimitCapsDefault`. */ +export type AppLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3234,11 +3292,9 @@ export type AppLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = + | 'MAX_DESC'; +/** Methods to use when ordering `OrgLimitCapsDefault`. */ +export type OrgLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3247,11 +3303,9 @@ export type OrgLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -/** Methods to use when ordering `AppLimitWarning`. */ -export type AppLimitWarningOrderBy = + | 'MAX_DESC'; +/** Methods to use when ordering `AppLimitCap`. */ +export type AppLimitCapOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3259,12 +3313,23 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +/** Methods to use when ordering `OrgLimitCap`. */ +export type OrgLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; /** Methods to use when ordering `UserConnectedAccount`. */ export type UserConnectedAccountOrderBy = | 'NATURAL' @@ -3284,6 +3349,32 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppLimitDefault`. */ +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +/** Methods to use when ordering `OrgLimitDefault`. */ +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; /** Methods to use when ordering `Object`. */ export type ObjectOrderBy = | 'NATURAL' @@ -3291,8 +3382,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -3303,6 +3394,66 @@ export type ObjectOrderBy = | 'FRZN_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; +/** Methods to use when ordering `AppPermission`. */ +export type AppPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `OrgPermission`. */ +export type OrgPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `AppLimitCreditCode`. */ +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +/** Methods to use when ordering `AppLimitWarning`. */ +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; /** Methods to use when ordering `Commit`. */ export type CommitOrderBy = | 'NATURAL' @@ -3312,8 +3463,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -3372,61 +3523,23 @@ export type RateLimitsModuleOrderBy = | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC'; -/** Methods to use when ordering `UsageSnapshot`. */ -export type UsageSnapshotOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC'; -/** Methods to use when ordering `AppMembershipDefault`. */ -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -/** Methods to use when ordering `OrgMembershipDefault`. */ -export type OrgMembershipDefaultOrderBy = +/** Methods to use when ordering `MembershipType`. */ +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; /** Methods to use when ordering `RlsSetting`. */ export type RlsSettingOrderBy = | 'NATURAL' @@ -3452,48 +3565,6 @@ export type RlsSettingOrderBy = | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -/** Methods to use when ordering `AppLimitEvent`. */ -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -/** Methods to use when ordering `OrgLimitEvent`. */ -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; /** Methods to use when ordering `RlsModule`. */ export type RlsModuleOrderBy = | 'NATURAL' @@ -3521,6 +3592,35 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; +/** Methods to use when ordering `AgentChatModule`. */ +export type AgentChatModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'THREAD_TABLE_ID_ASC' + | 'THREAD_TABLE_ID_DESC' + | 'THREAD_TABLE_NAME_ASC' + | 'THREAD_TABLE_NAME_DESC' + | 'MESSAGE_TABLE_ID_ASC' + | 'MESSAGE_TABLE_ID_DESC' + | 'MESSAGE_TABLE_NAME_ASC' + | 'MESSAGE_TABLE_NAME_DESC' + | 'TASK_TABLE_ID_ASC' + | 'TASK_TABLE_ID_DESC' + | 'TASK_TABLE_NAME_ASC' + | 'TASK_TABLE_NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; /** Methods to use when ordering `RateLimitMetersModule`. */ export type RateLimitMetersModuleOrderBy = | 'NATURAL' @@ -3610,6 +3710,60 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `AppLimitEvent`. */ +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `OrgLimitEvent`. */ +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; /** Methods to use when ordering `DatabaseSetting`. */ export type DatabaseSettingOrderBy = | 'NATURAL' @@ -3643,68 +3797,76 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; -/** Methods to use when ordering `BillingModule`. */ -export type BillingModuleOrderBy = +/** Methods to use when ordering `OrgMembershipSetting`. */ +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'METERS_TABLE_ID_ASC' - | 'METERS_TABLE_ID_DESC' - | 'METERS_TABLE_NAME_ASC' - | 'METERS_TABLE_NAME_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'LEDGER_TABLE_ID_ASC' - | 'LEDGER_TABLE_ID_DESC' - | 'LEDGER_TABLE_NAME_ASC' - | 'LEDGER_TABLE_NAME_DESC' - | 'BALANCES_TABLE_ID_ASC' - | 'BALANCES_TABLE_ID_DESC' - | 'BALANCES_TABLE_NAME_ASC' - | 'BALANCES_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -/** Methods to use when ordering `AstMigration`. */ -export type AstMigrationOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +/** Methods to use when ordering `AppMembership`. */ +export type AppMembershipOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | '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' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; /** Methods to use when ordering `User`. */ export type UserOrderBy = | 'NATURAL' @@ -3732,39 +3894,35 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -/** Methods to use when ordering `OrgMembershipSetting`. */ -export type OrgMembershipSettingOrderBy = +/** Methods to use when ordering `AstMigration`. */ +export type AstMigrationOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | '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' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; /** Methods to use when ordering `WebauthnSetting`. */ export type WebauthnSettingOrderBy = | 'NATURAL' @@ -3806,43 +3964,47 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -/** Methods to use when ordering `AppMembership`. */ -export type AppMembershipOrderBy = +/** Methods to use when ordering `BillingModule`. */ +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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'; + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' + | 'METER_SOURCES_TABLE_ID_ASC' + | 'METER_SOURCES_TABLE_ID_DESC' + | 'METER_SOURCES_TABLE_NAME_ASC' + | 'METER_SOURCES_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; /** Methods to use when ordering `BillingProviderModule`. */ export type BillingProviderModuleOrderBy = | 'NATURAL' @@ -4207,10 +4369,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -4339,6 +4501,34 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModules` relation. */ + inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; + /** `inferenceLogModules` exist. */ + inferenceLogModulesExist?: boolean; + /** Filter by the object’s `computeLogModules` relation. */ + computeLogModules?: DatabaseToManyComputeLogModuleFilter; + /** `computeLogModules` exist. */ + computeLogModulesExist?: boolean; + /** Filter by the object’s `transferLogModules` relation. */ + transferLogModules?: DatabaseToManyTransferLogModuleFilter; + /** `transferLogModules` exist. */ + transferLogModulesExist?: boolean; + /** Filter by the object’s `storageLogModules` relation. */ + storageLogModules?: DatabaseToManyStorageLogModuleFilter; + /** `storageLogModules` exist. */ + storageLogModulesExist?: boolean; + /** Filter by the object’s `dbUsageModules` relation. */ + dbUsageModules?: DatabaseToManyDbUsageModuleFilter; + /** `dbUsageModules` exist. */ + dbUsageModulesExist?: boolean; + /** Filter by the object’s `agentChatModule` relation. */ + agentChatModule?: AgentChatModuleFilter; + /** A related `agentChatModule` exists. */ + agentChatModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -4586,26 +4776,10 @@ export interface UserFilter { orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; /** `orgClaimedInvitesBySenderId` exist. */ orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; - /** Filter by the object’s `agentThreadsByEntityId` relation. */ - agentThreadsByEntityId?: UserToManyAgentThreadFilter; - /** `agentThreadsByEntityId` exist. */ - agentThreadsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedAgentThreads` relation. */ - ownedAgentThreads?: UserToManyAgentThreadFilter; - /** `ownedAgentThreads` exist. */ - ownedAgentThreadsExist?: boolean; - /** Filter by the object’s `ownedAgentMessages` relation. */ - ownedAgentMessages?: UserToManyAgentMessageFilter; - /** `ownedAgentMessages` exist. */ - ownedAgentMessagesExist?: boolean; - /** Filter by the object’s `ownedAgentTasks` relation. */ - ownedAgentTasks?: UserToManyAgentTaskFilter; - /** `ownedAgentTasks` exist. */ - ownedAgentTasksExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -6230,17 +6404,19 @@ export interface OrgClaimedInviteFilter { /** A related `sender` exists. */ senderExists?: boolean; } -/** A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAuditLogFilter { +/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogAuthFilter { /** Filters to entities where at least one related entity matches. */ - some?: AuditLogFilter; + some?: AuditLogAuthFilter; /** Filters to entities where every related entity matches. */ - every?: AuditLogFilter; + every?: AuditLogAuthFilter; /** Filters to entities where no related entity matches. */ - none?: AuditLogFilter; + none?: AuditLogAuthFilter; } -/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogFilter { +/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -6255,14 +6431,12 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ @@ -6338,160 +6512,12 @@ export interface ConstructiveInternalTypeOriginFilter { 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 `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentThreadFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; -} -/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadFilter { - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Negates the expression. */ - not?: AgentThreadFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentTasksByThreadId` relation. */ - agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; - /** `agentTasksByThreadId` exist. */ - agentTasksByThreadIdExist?: boolean; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentMessageFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; -} -/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentMessageFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Negates the expression. */ - not?: AgentMessageFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentTaskFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; -} -/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentTaskFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Negates the expression. */ - not?: AgentTaskFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentMessageFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; -} -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentTaskFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; + /** 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 { @@ -6592,6 +6618,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManyTableFilter { @@ -6768,6 +6798,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyCheckConstraintFilter { @@ -7596,6 +7630,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -7906,6 +7942,40 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} +/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsOrgModuleFilter { + /** 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} /** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManySchemaGrantFilter { /** Filters to entities where at least one related entity matches. */ @@ -8733,6 +8803,15 @@ export interface SchemaToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyTableFilter { /** Filters to entities where at least one related entity matches. */ @@ -9597,17 +9676,17 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -/** A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEncryptedSecretsModuleFilter { +/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsUserModuleFilter { /** Filters to entities where at least one related entity matches. */ - some?: EncryptedSecretsModuleFilter; + some?: ConfigSecretsUserModuleFilter; /** Filters to entities where every related entity matches. */ - every?: EncryptedSecretsModuleFilter; + every?: ConfigSecretsUserModuleFilter; /** Filters to entities where no related entity matches. */ - none?: EncryptedSecretsModuleFilter; + none?: ConfigSecretsUserModuleFilter; } -/** A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EncryptedSecretsModuleFilter { +/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -9619,11 +9698,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -10858,6 +10937,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -11364,6 +11445,14 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -11380,6 +11469,10 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; + /** Filter by the object’s `meterSourcesTable` relation. */ + meterSourcesTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -11455,28 +11548,384 @@ export interface BillingProviderModuleFilter { pricesTableExists?: boolean; /** Filter by the object’s `privateSchema` relation. */ privateSchema?: SchemaFilter; - /** Filter by the object’s `productsTable` relation. */ - productsTable?: TableFilter; - /** A related `productsTable` exists. */ - productsTableExists?: boolean; + /** Filter by the object’s `productsTable` relation. */ + productsTable?: TableFilter; + /** A related `productsTable` exists. */ + productsTableExists?: boolean; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `subscriptionsTable` relation. */ + subscriptionsTable?: TableFilter; + /** A related `subscriptionsTable` exists. */ + subscriptionsTableExists?: boolean; +} +/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyRealtimeModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: RealtimeModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: RealtimeModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: RealtimeModuleFilter; +} +/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface RateLimitMetersModuleFilter { + /** 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 `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RateLimitMetersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitMetersModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitMetersModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. */ + rateLimitOverridesTableByRateLimitOverridesTableId?: TableFilter; + /** A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists. */ + rateLimitOverridesTableByRateLimitOverridesTableIdExists?: boolean; + /** Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. */ + rateLimitStateTableByRateLimitStateTableId?: TableFilter; + /** Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. */ + rateWindowLimitsTableByRateWindowLimitsTableId?: TableFilter; + /** A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists. */ + rateWindowLimitsTableByRateWindowLimitsTableIdExists?: boolean; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} +/** A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyInferenceLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: InferenceLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: InferenceLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: InferenceLogModuleFilter; +} +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** 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 `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyComputeLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ComputeLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ComputeLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ComputeLogModuleFilter; +} +/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ComputeLogModuleFilter { + /** 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 `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; + /** Filter by the object’s `computeLogTable` relation. */ + computeLogTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTransferLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TransferLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: TransferLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: TransferLogModuleFilter; +} +/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TransferLogModuleFilter { + /** 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 `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `transferLogTable` relation. */ + transferLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyStorageLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: StorageLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: StorageLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: StorageLogModuleFilter; +} +/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageLogModuleFilter { + /** 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 `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `storageLogTable` relation. */ + storageLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDbUsageModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DbUsageModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: DbUsageModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: DbUsageModuleFilter; +} +/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbUsageModuleFilter { + /** 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 `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `queryStatsDailyTable` relation. */ + queryStatsDailyTable?: TableFilter; + /** Filter by the object’s `queryStatsLogTable` relation. */ + queryStatsLogTable?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** Filter by the object’s `subscriptionsTable` relation. */ - subscriptionsTable?: TableFilter; - /** A related `subscriptionsTable` exists. */ - subscriptionsTableExists?: boolean; -} -/** A filter to be used against many `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyRealtimeModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: RealtimeModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: RealtimeModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: RealtimeModuleFilter; + /** Filter by the object’s `tableStatsDailyTable` relation. */ + tableStatsDailyTable?: TableFilter; + /** Filter by the object’s `tableStatsLogTable` relation. */ + tableStatsLogTable?: TableFilter; } -/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitMetersModuleFilter { +/** A filter to be used against `AgentChatModule` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentChatModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -11485,44 +11934,42 @@ export interface RateLimitMetersModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `threadTableId` field. */ + threadTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableId` field. */ + messageTableId?: UUIDFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableId` field. */ + taskTableId?: UUIDFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; + and?: AgentChatModuleFilter[]; /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; + or?: AgentChatModuleFilter[]; /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; + not?: AgentChatModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; + /** Filter by the object’s `messageTable` relation. */ + messageTable?: TableFilter; /** Filter by the object’s `privateSchema` relation. */ privateSchema?: SchemaFilter; - /** Filter by the object’s `rateLimitOverridesTableByRateLimitOverridesTableId` relation. */ - rateLimitOverridesTableByRateLimitOverridesTableId?: TableFilter; - /** A related `rateLimitOverridesTableByRateLimitOverridesTableId` exists. */ - rateLimitOverridesTableByRateLimitOverridesTableIdExists?: boolean; - /** Filter by the object’s `rateLimitStateTableByRateLimitStateTableId` relation. */ - rateLimitStateTableByRateLimitStateTableId?: TableFilter; - /** Filter by the object’s `rateWindowLimitsTableByRateWindowLimitsTableId` relation. */ - rateWindowLimitsTableByRateWindowLimitsTableId?: TableFilter; - /** A related `rateWindowLimitsTableByRateWindowLimitsTableId` exists. */ - rateWindowLimitsTableByRateWindowLimitsTableIdExists?: boolean; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; + /** Filter by the object’s `taskTable` relation. */ + taskTable?: TableFilter; + /** Filter by the object’s `threadTable` relation. */ + threadTable?: TableFilter; } /** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseProvisionModuleFilter { @@ -11599,8 +12046,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -11618,8 +12065,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -11644,129 +12091,6 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -/** 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; -} -/** 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 `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapsDefaultFilter { - /** 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?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -/** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapsDefaultFilter { - /** 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?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -/** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} /** A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ */ export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ @@ -11817,47 +12141,115 @@ export interface ConstructiveInternalTypeUploadFilter { /** Contained by the specified JSON. */ containedBy?: ConstructiveInternalTypeUpload; } -/** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ -export interface NodeTypeRegistryFilter { +/** 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 `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} +/** A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapsDefaultFilter { + /** 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?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitCapsDefaultFilter; +} +/** A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCapsDefaultFilter { + /** 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?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +/** A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `slug` field. */ - slug?: StringFilter; - /** Filter by the object’s `category` field. */ - category?: StringFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parameterSchema` field. */ - parameterSchema?: JSONFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: NodeTypeRegistryFilter[]; + and?: AppLimitCapFilter[]; /** Checks for any expressions in this list. */ - or?: NodeTypeRegistryFilter[]; + or?: AppLimitCapFilter[]; /** Negates the expression. */ - not?: NodeTypeRegistryFilter; + not?: AppLimitCapFilter; } -/** A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitWarningFilter { +/** A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitCapFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; + and?: OrgLimitCapFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: OrgLimitCapFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: OrgLimitCapFilter; } /** A filter to be used against `UserConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ export interface UserConnectedAccountFilter { @@ -11888,8 +12280,8 @@ export interface UserConnectedAccountFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -11907,14 +12299,71 @@ export interface ObjectFilter { /** Negates the expression. */ not?: ObjectFilter; } +/** 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; +} +/** 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 `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitWarningFilter[]; + /** Negates the expression. */ + not?: AppLimitWarningFilter; +} /** A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ */ 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 `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -11934,52 +12383,66 @@ export interface CommitFilter { /** Negates the expression. */ not?: CommitFilter; } -/** A filter to be used against `UsageSnapshot` object types. All fields are combined with a logical ‘and.’ */ -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; +/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: UsageSnapshotFilter; + not?: MembershipTypeFilter; } -/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipDefaultFilter { +/** A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ */ +export interface SqlActionFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: StringFilter; + /** Filter by the object’s `deps` field. */ + deps?: StringListFilter; + /** Filter by the object’s `content` field. */ + content?: StringFilter; + /** Filter by the object’s `revert` field. */ + revert?: StringFilter; + /** Filter by the object’s `verify` field. */ + verify?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `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; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; + and?: SqlActionFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; + or?: SqlActionFilter[]; /** Negates the expression. */ - not?: AppMembershipDefaultFilter; + not?: SqlActionFilter; } /** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -12007,6 +12470,10 @@ export interface AppLimitEventFilter { } /** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -12032,39 +12499,6 @@ export interface OrgLimitEventFilter { /** Negates the expression. */ not?: OrgLimitEventFilter; } -/** A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ */ -export interface SqlActionFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: StringFilter; - /** Filter by the object’s `deps` field. */ - deps?: StringListFilter; - /** Filter by the object’s `content` field. */ - content?: StringFilter; - /** Filter by the object’s `revert` field. */ - revert?: StringFilter; - /** Filter by the object’s `verify` field. */ - verify?: StringFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: SqlActionFilter[]; - /** Checks for any expressions in this list. */ - or?: SqlActionFilter[]; - /** Negates the expression. */ - not?: SqlActionFilter; -} /** A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ */ export interface AstMigrationFilter { /** Filter by the object’s `id` field. */ @@ -12167,12 +12601,12 @@ export interface VerifyEmailInput { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface ConstructBlueprintInput { @@ -12193,7 +12627,7 @@ export interface ResetPasswordInput { } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } @@ -12216,6 +12650,11 @@ export interface ProvisionSpatialRelationInput { pOperator?: string; pParamName?: string; } +export interface SignInCrossOriginInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} export interface BootstrapUserInput { clientMutationId?: string; targetDatabaseId?: string; @@ -12226,6 +12665,24 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -12256,14 +12713,14 @@ export interface ProvisionIndexInput { } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -12279,7 +12736,7 @@ export interface ProvisionDatabaseWithUserInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; @@ -12288,7 +12745,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: unknown; @@ -12297,7 +12754,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -12337,11 +12794,6 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} export interface CreateUserDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -12352,33 +12804,16 @@ export interface CreateUserDatabaseInput { bitlen?: number; tokensExpiration?: IntervalInput; } -export interface ExtendTokenExpiresInput { - clientMutationId?: string; - amount?: IntervalInput; -} -export interface CreateApiKeyInput { - clientMutationId?: string; - keyName?: string; - accessLevel?: string; - mfaLevel?: string; - expiresIn?: IntervalInput; -} -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { +export interface ExtendTokenExpiresInput { clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; + amount?: IntervalInput; } -export interface SignUpInput { +export interface CreateApiKeyInput { clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; + keyName?: string; + accessLevel?: string; + mfaLevel?: string; + expiresIn?: IntervalInput; } export interface RequestCrossOriginTokenInput { clientMutationId?: string; @@ -12387,15 +12822,6 @@ export interface RequestCrossOriginTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface ProvisionTableInput { clientMutationId?: string; databaseId?: string; @@ -12412,6 +12838,14 @@ export interface ProvisionTableInput { uniqueConstraints?: unknown; description?: string; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface CreateDefaultIdsModuleInput { clientMutationId?: string; /** The `DefaultIdsModule` to be created by this mutation. */ @@ -12422,16 +12856,6 @@ export interface DefaultIdsModuleInput { id?: string; databaseId: string; } -export interface CreateRoleTypeInput { - clientMutationId?: string; - /** The `RoleType` to be created by this mutation. */ - roleType: RoleTypeInput; -} -/** An input for mutations affecting `RoleType` */ -export interface RoleTypeInput { - id: number; - name: string; -} export interface CreateAppLimitCreditRedemptionInput { clientMutationId?: string; /** The `AppLimitCreditRedemption` to be created by this mutation. */ @@ -12556,7 +12980,7 @@ export interface RefInput { id?: string; /** The name of the ref or branch */ name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; } @@ -12571,19 +12995,32 @@ export interface StoreInput { id?: string; /** The name of the store (e.g., metaschema, migrations). */ name: string; - /** The database this store belongs to. */ - databaseId: string; + /** The scope this store belongs to. */ + scopeId: string; /** The current head tree_id for this store. */ hash?: string; createdAt?: string; } -export interface CreateEncryptedSecretsModuleInput { +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + /** The `ConfigSecretsOrgModule` to be created by this mutation. */ + configSecretsOrgModule: ConfigSecretsOrgModuleInput; +} +/** An input for mutations affecting `ConfigSecretsOrgModule` */ +export interface ConfigSecretsOrgModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface CreateConfigSecretsUserModuleInput { clientMutationId?: string; - /** The `EncryptedSecretsModule` to be created by this mutation. */ - encryptedSecretsModule: EncryptedSecretsModuleInput; + /** The `ConfigSecretsUserModule` to be created by this mutation. */ + configSecretsUserModule: ConfigSecretsUserModuleInput; } -/** An input for mutations affecting `EncryptedSecretsModule` */ -export interface EncryptedSecretsModuleInput { +/** An input for mutations affecting `ConfigSecretsUserModule` */ +export interface ConfigSecretsUserModuleInput { id?: string; databaseId: string; schemaId?: string; @@ -12663,22 +13100,15 @@ export interface SiteModuleInput { /** JSON configuration data for this module */ data: unknown; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - /** The `AppLimitCreditCode` to be created by this mutation. */ - appLimitCreditCode: AppLimitCreditCodeInput; + /** The `RoleType` to be created by this mutation. */ + roleType: RoleTypeInput; } -/** An input for mutations affecting `AppLimitCreditCode` */ -export interface AppLimitCreditCodeInput { - id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; + name: string; } export interface CreateSchemaGrantInput { clientMutationId?: string; @@ -12799,116 +13229,6 @@ export interface OrgPermissionDefaultInput { /** References the entity these default permissions apply to */ entityId: string; } -export interface CreateAppPermissionInput { - clientMutationId?: string; - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; -} -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface CreateOrgPermissionInput { - clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; -} -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface CreateAppLimitCapsDefaultInput { - clientMutationId?: string; - /** The `AppLimitCapsDefault` to be created by this mutation. */ - appLimitCapsDefault: AppLimitCapsDefaultInput; -} -/** An input for mutations affecting `AppLimitCapsDefault` */ -export interface AppLimitCapsDefaultInput { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface CreateOrgLimitCapsDefaultInput { - clientMutationId?: string; - /** The `OrgLimitCapsDefault` to be created by this mutation. */ - orgLimitCapsDefault: OrgLimitCapsDefaultInput; -} -/** An input for mutations affecting `OrgLimitCapsDefault` */ -export interface OrgLimitCapsDefaultInput { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface CreateAppLimitCapInput { - clientMutationId?: string; - /** The `AppLimitCap` to be created by this mutation. */ - appLimitCap: AppLimitCapInput; -} -/** An input for mutations affecting `AppLimitCap` */ -export interface AppLimitCapInput { - id?: string; - /** Name identifier of the cap being overridden */ - name: string; - /** Entity this cap override applies to */ - entityId: string; - /** Override cap value for this entity */ - max?: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - /** The `OrgLimitCap` to be created by this mutation. */ - orgLimitCap: OrgLimitCapInput; -} -/** An input for mutations affecting `OrgLimitCap` */ -export interface OrgLimitCapInput { - id?: string; - /** Name identifier of the cap being overridden */ - name: string; - /** Entity this cap override applies to */ - entityId: string; - /** Override cap value for this entity */ - max?: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - /** The `MembershipType` to be created by this mutation. */ - membershipType: MembershipTypeInput; -} -/** An input for mutations affecting `MembershipType` */ -export interface MembershipTypeInput { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name: string; - /** Description of what this membership type represents */ - description: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; -} export interface CreateMigrateFileInput { clientMutationId?: string; /** The `MigrateFile` to be created by this mutation. */ @@ -13063,6 +13383,23 @@ export interface WebauthnCredentialsModuleInput { ownerTableId?: string; tableName?: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + /** The `AppMembershipDefault` to be created by this mutation. */ + appMembershipDefault: AppMembershipDefaultInput; +} +/** An input for mutations affecting `AppMembershipDefault` */ +export interface AppMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} export interface CreateOrgAdminGrantInput { clientMutationId?: string; /** The `OrgAdminGrant` to be created by this mutation. */ @@ -13081,6 +13418,23 @@ export interface OrgAdminGrantInput { createdAt?: string; updatedAt?: string; } +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + /** The `OrgMembershipDefault` to be created by this mutation. */ + orgMembershipDefault: OrgMembershipDefaultInput; +} +/** An input for mutations affecting `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId: string; +} export interface CreateOrgOwnerGrantInput { clientMutationId?: string; /** The `OrgOwnerGrant` to be created by this mutation. */ @@ -13114,69 +13468,61 @@ export interface NodeTypeRegistryInput { parameterSchema?: unknown; tags?: string[]; } -export interface CreateAppLimitDefaultInput { +export interface CreateAppLimitCapsDefaultInput { clientMutationId?: string; - /** The `AppLimitDefault` to be created by this mutation. */ - appLimitDefault: AppLimitDefaultInput; + /** The `AppLimitCapsDefault` to be created by this mutation. */ + appLimitCapsDefault: AppLimitCapsDefaultInput; } -/** An input for mutations affecting `AppLimitDefault` */ -export interface AppLimitDefaultInput { +/** An input for mutations affecting `AppLimitCapsDefault` */ +export interface AppLimitCapsDefaultInput { id?: string; - /** Name identifier of the limit this default applies to */ + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ name: string; - /** Default maximum usage allowed for this limit */ + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; } -export interface CreateOrgLimitDefaultInput { +export interface CreateOrgLimitCapsDefaultInput { clientMutationId?: string; - /** The `OrgLimitDefault` to be created by this mutation. */ - orgLimitDefault: OrgLimitDefaultInput; + /** The `OrgLimitCapsDefault` to be created by this mutation. */ + orgLimitCapsDefault: OrgLimitCapsDefaultInput; } -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { +/** An input for mutations affecting `OrgLimitCapsDefault` */ +export interface OrgLimitCapsDefaultInput { id?: string; - /** Name identifier of the limit this default applies to */ + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ name: string; - /** Default maximum usage allowed for this limit */ + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; } -export interface CreateAppLimitCreditCodeItemInput { +export interface CreateAppLimitCapInput { clientMutationId?: string; - /** The `AppLimitCreditCodeItem` to be created by this mutation. */ - appLimitCreditCodeItem: AppLimitCreditCodeItemInput; + /** The `AppLimitCap` to be created by this mutation. */ + appLimitCap: AppLimitCapInput; } -/** An input for mutations affecting `AppLimitCreditCodeItem` */ -export interface AppLimitCreditCodeItemInput { +/** An input for mutations affecting `AppLimitCap` */ +export interface AppLimitCapInput { id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId: string; - /** Number of credits this item grants per redemption */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; } -export interface CreateAppLimitWarningInput { +export interface CreateOrgLimitCapInput { clientMutationId?: string; - /** The `AppLimitWarning` to be created by this mutation. */ - appLimitWarning: AppLimitWarningInput; + /** The `OrgLimitCap` to be created by this mutation. */ + orgLimitCap: OrgLimitCapInput; } -/** An input for mutations affecting `AppLimitWarning` */ -export interface AppLimitWarningInput { +/** An input for mutations affecting `OrgLimitCap` */ +export interface OrgLimitCapInput { id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ + /** Name identifier of the cap being overridden */ name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; } export interface CreateUserConnectedAccountInput { clientMutationId?: string; @@ -13226,6 +13572,27 @@ export interface CryptoAddressesModuleInput { tableName: string; cryptoNetwork?: string; } +export interface CreateOrgChartEdgeInput { + clientMutationId?: string; + /** The `OrgChartEdge` to be created by this mutation. */ + orgChartEdge: OrgChartEdgeInput; +} +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface CreateCryptoAddressInput { clientMutationId?: string; /** The `CryptoAddress` to be created by this mutation. */ @@ -13246,87 +13613,52 @@ export interface CryptoAddressInput { createdAt?: string; updatedAt?: string; } -export interface CreateAgentMessageInput { - clientMutationId?: string; - /** The `AgentMessage` to be created by this mutation. */ - agentMessage: AgentMessageInput; -} -/** An input for mutations affecting `AgentMessage` */ -export interface AgentMessageInput { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId: string; - /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ - entityId: string; - /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ - authorRole: string; - id?: string; - /** Timestamp when this record was created */ - createdAt?: string; - /** Timestamp when this record was last updated */ - updatedAt?: string; - /** User who owns this record */ - ownerId?: string; - /** JSON metadata for extensible key-value storage */ - parts?: unknown; -} -export interface CreateAppLimitCreditInput { +export interface CreateAppLimitCreditCodeItemInput { clientMutationId?: string; - /** The `AppLimitCredit` to be created by this mutation. */ - appLimitCredit: AppLimitCreditInput; + /** The `AppLimitCreditCodeItem` to be created by this mutation. */ + appLimitCreditCodeItem: AppLimitCreditCodeItemInput; } -/** An input for mutations affecting `AppLimitCredit` */ -export interface AppLimitCreditInput { +/** An input for mutations affecting `AppLimitCreditCodeItem` */ +export interface AppLimitCreditCodeItemInput { id?: string; - /** FK to default_limits — which limit definition this credit applies to */ + /** FK to credit_codes — which code this item belongs to */ + creditCodeId: string; + /** FK to default_limits — which limit this item grants credits for */ defaultLimitId: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ + /** Number of credits this item grants per redemption */ amount: string; /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; } -export interface CreateOrgLimitWarningInput { +export interface CreateAppLimitDefaultInput { clientMutationId?: string; - /** The `OrgLimitWarning` to be created by this mutation. */ - orgLimitWarning: OrgLimitWarningInput; + /** The `AppLimitDefault` to be created by this mutation. */ + appLimitDefault: AppLimitDefaultInput; } -/** An input for mutations affecting `OrgLimitWarning` */ -export interface OrgLimitWarningInput { +/** An input for mutations affecting `AppLimitDefault` */ +export interface AppLimitDefaultInput { id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ + /** Name identifier of the limit this default applies to */ name: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; } -export interface CreateOrgLimitCreditInput { +export interface CreateOrgLimitDefaultInput { clientMutationId?: string; - /** The `OrgLimitCredit` to be created by this mutation. */ - orgLimitCredit: OrgLimitCreditInput; + /** The `OrgLimitDefault` to be created by this mutation. */ + orgLimitDefault: OrgLimitDefaultInput; } -/** An input for mutations affecting `OrgLimitCredit` */ -export interface OrgLimitCreditInput { +/** An input for mutations affecting `OrgLimitDefault` */ +export interface OrgLimitDefaultInput { id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; } export interface CreateObjectInput { clientMutationId?: string; @@ -13336,32 +13668,80 @@ export interface CreateObjectInput { /** An input for mutations affecting `Object` */ export interface ObjectInput { id: string; - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: unknown; frzn?: boolean; createdAt?: string; } -export interface CreateSiteMetadatumInput { +export interface CreateAppPermissionInput { clientMutationId?: string; - /** The `SiteMetadatum` to be created by this mutation. */ - siteMetadatum: SiteMetadatumInput; + /** The `AppPermission` to be created by this mutation. */ + appPermission: AppPermissionInput; } -/** An input for mutations affecting `SiteMetadatum` */ -export interface SiteMetadatumInput { - /** Unique identifier for this metadata record */ +/** An input for mutations affecting `AppPermission` */ +export interface AppPermissionInput { id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Site this metadata belongs to */ - siteId: string; - /** Page title for SEO (max 120 characters) */ - title?: string; - /** Meta description for SEO and social sharing (max 120 characters) */ + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; - /** Open Graph image for social media previews */ - ogImage?: ConstructiveInternalTypeImage; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + /** The `OrgPermission` to be created by this mutation. */ + orgPermission: OrgPermissionInput; +} +/** An input for mutations affecting `OrgPermission` */ +export interface OrgPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + /** The `AppLimitCreditCode` to be created by this mutation. */ + appLimitCreditCode: AppLimitCreditCodeInput; +} +/** An input for mutations affecting `AppLimitCreditCode` */ +export interface AppLimitCreditCodeInput { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; +} +export interface CreateAppLimitWarningInput { + clientMutationId?: string; + /** The `AppLimitWarning` to be created by this mutation. */ + appLimitWarning: AppLimitWarningInput; +} +/** An input for mutations affecting `AppLimitWarning` */ +export interface AppLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; } export interface CreateFullTextSearchInput { clientMutationId?: string; @@ -13408,8 +13788,8 @@ export interface CommitInput { id?: string; /** The commit message */ message?: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; storeId: string; /** Parent commits */ parentIds?: string[]; @@ -13421,6 +13801,26 @@ export interface CommitInput { treeId?: string; date?: string; } +export interface CreateSiteMetadatumInput { + clientMutationId?: string; + /** The `SiteMetadatum` to be created by this mutation. */ + siteMetadatum: SiteMetadatumInput; +} +/** An input for mutations affecting `SiteMetadatum` */ +export interface SiteMetadatumInput { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this metadata belongs to */ + siteId: string; + /** Page title for SEO (max 120 characters) */ + title?: string; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage; +} export interface CreatePubkeySettingInput { clientMutationId?: string; /** The `PubkeySetting` to be created by this mutation. */ @@ -13511,24 +13911,45 @@ export interface PhoneNumberInput { createdAt?: string; updatedAt?: string; } -export interface CreateUsageSnapshotInput { +export interface CreateAppLimitCreditInput { + clientMutationId?: string; + /** The `AppLimitCredit` to be created by this mutation. */ + appLimitCredit: AppLimitCreditInput; +} +/** An input for mutations affecting `AppLimitCredit` */ +export interface AppLimitCreditInput { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +export interface CreateOrgLimitCreditInput { clientMutationId?: string; - /** The `UsageSnapshot` to be created by this mutation. */ - usageSnapshot: UsageSnapshotInput; + /** The `OrgLimitCredit` to be created by this mutation. */ + orgLimitCredit: OrgLimitCreditInput; } -/** An input for mutations affecting `UsageSnapshot` */ -export interface UsageSnapshotInput { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId: string; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName: string; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: unknown; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string; +/** An input for mutations affecting `OrgLimitCredit` */ +export interface OrgLimitCreditInput { id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; } export interface CreateAppClaimedInviteInput { clientMutationId?: string; @@ -13547,62 +13968,44 @@ export interface AppClaimedInviteInput { createdAt?: string; updatedAt?: string; } -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - /** The `AppMembershipDefault` to be created by this mutation. */ - appMembershipDefault: AppMembershipDefaultInput; -} -/** An input for mutations affecting `AppMembershipDefault` */ -export interface AppMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface CreateOrgMembershipDefaultInput { +export interface CreateOrgLimitWarningInput { clientMutationId?: string; - /** The `OrgMembershipDefault` to be created by this mutation. */ - orgMembershipDefault: OrgMembershipDefaultInput; + /** The `OrgLimitWarning` to be created by this mutation. */ + orgLimitWarning: OrgLimitWarningInput; } -/** An input for mutations affecting `OrgMembershipDefault` */ -export interface OrgMembershipDefaultInput { +/** An input for mutations affecting `OrgLimitWarning` */ +export interface OrgLimitWarningInput { id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; } -export interface CreateAuditLogInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - /** The `AuditLog` to be created by this mutation. */ - auditLog: AuditLogInput; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; } -/** An input for mutations affecting `AuditLog` */ -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; NULL if user was deleted */ - actorId?: string; - /** 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?: string; - /** Whether the authentication attempt succeeded */ - success: boolean; - /** Timestamp when the audit event was recorded */ - createdAt?: string; +/** An input for mutations affecting `MembershipType` */ +export interface MembershipTypeInput { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name: string; + /** Description of what this membership type represents */ + description: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; } export interface CreateDomainInput { clientMutationId?: string; @@ -13652,80 +14055,6 @@ export interface RlsSettingInput { /** Reference to the current_ip_address function (FK to metaschema_public.function) */ currentIpAddressFunctionId?: string; } -export interface CreateAgentTaskInput { - clientMutationId?: string; - /** The `AgentTask` to be created by this mutation. */ - agentTask: AgentTaskInput; -} -/** An input for mutations affecting `AgentTask` */ -export interface AgentTaskInput { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId: string; - /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ - entityId: string; - /** Natural-language description of the work to do. Required. */ - description: string; - /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ - source?: string; - /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ - error?: string; - id?: string; - /** Timestamp when this record was created */ - createdAt?: string; - /** Timestamp when this record was last updated */ - updatedAt?: string; - /** User who owns this record */ - ownerId?: string; - /** Current status of this record */ - status?: string; -} -export interface CreateAgentThreadInput { - clientMutationId?: string; - /** The `AgentThread` to be created by this mutation. */ - agentThread: AgentThreadInput; -} -/** An input for mutations affecting `AgentThread` */ -export interface AgentThreadInput { - /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ - title?: string; - /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ - mode?: string; - /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ - model?: string; - /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ - systemPrompt?: string; - id?: string; - /** Timestamp when this record was created */ - createdAt?: string; - /** Timestamp when this record was last updated */ - updatedAt?: string; - /** User who owns this record within the entity */ - ownerId?: string; - /** Entity this record belongs to */ - entityId: string; - /** Current status of this record */ - status?: string; -} -export interface CreateEmailInput { - clientMutationId?: string; - /** The `Email` to be created by this mutation. */ - email: EmailInput; -} -/** An input for mutations affecting `Email` */ -export interface EmailInput { - id?: string; - ownerId?: string; - /** 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; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} export interface CreateAppGrantInput { clientMutationId?: string; /** The `AppGrant` to be created by this mutation. */ @@ -13762,97 +14091,28 @@ export interface OrgClaimedInviteInput { updatedAt?: string; entityId: string; } -export interface CreateAppLimitEventInput { - clientMutationId?: string; - /** The `AppLimitEvent` to be created by this mutation. */ - appLimitEvent: AppLimitEventInput; -} -/** An input for mutations affecting `AppLimitEvent` */ -export interface AppLimitEventInput { - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - /** The `OrgLimitEvent` to be created by this mutation. */ - orgLimitEvent: OrgLimitEventInput; -} -/** An input for mutations affecting `OrgLimitEvent` */ -export interface OrgLimitEventInput { - /** Limit name this event applies to */ - name?: string; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string; - /** Change amount: positive for increment, negative for decrement */ - delta?: string; - /** Usage count before this event */ - numBefore?: string; - /** Usage count after this event */ - numAfter?: string; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string; -} -export interface CreateOrgChartEdgeInput { +export interface CreateAuditLogAuthInput { clientMutationId?: string; - /** The `OrgChartEdge` to be created by this mutation. */ - orgChartEdge: OrgChartEdgeInput; + /** The `AuditLogAuth` to be created by this mutation. */ + auditLogAuth: AuditLogAuthInput; } -/** An input for mutations affecting `OrgChartEdge` */ -export interface OrgChartEdgeInput { - id?: string; +/** An input for mutations affecting `AuditLogAuth` */ +export interface AuditLogAuthInput { createdAt?: string; - updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface CreatePartitionInput { - clientMutationId?: string; - /** The `Partition` to be created by this mutation. */ - partition: PartitionInput; -} -/** An input for mutations affecting `Partition` */ -export interface PartitionInput { + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id?: string; - databaseId: string; - tableId: string; - strategy: string; - partitionKeyId: string; - interval?: string; - retention?: string; - premake?: number; - namingPattern?: string; - createdAt?: string; - updatedAt?: string; + /** 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?: string; + /** 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?: string; + /** Whether the authentication attempt succeeded */ + success: boolean; } export interface CreateBlueprintConstructionInput { clientMutationId?: string; @@ -13922,6 +14182,33 @@ export interface SessionsModuleInput { sessionCredentialsTable?: string; authSettingsTable?: string; } +export interface CreateOrgMemberProfileInput { + clientMutationId?: string; + /** The `OrgMemberProfile` to be created by this mutation. */ + orgMemberProfile: OrgMemberProfileInput; +} +/** An input for mutations affecting `OrgMemberProfile` */ +export interface OrgMemberProfileInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** References the membership this profile belongs to (1:1) */ + membershipId: string; + /** References the entity this profile belongs to (used for RLS lookups) */ + entityId: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId: string; + /** Display name shown to other entity members */ + displayName?: string; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string; + /** Job title or role description visible to other entity members */ + title?: string; + /** Short biography visible to other entity members */ + bio?: string; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage; +} export interface CreateOrgGrantInput { clientMutationId?: string; /** The `OrgGrant` to be created by this mutation. */ @@ -13942,6 +14229,46 @@ export interface OrgGrantInput { createdAt?: string; updatedAt?: string; } +export interface CreatePartitionInput { + clientMutationId?: string; + /** The `Partition` to be created by this mutation. */ + partition: PartitionInput; +} +/** An input for mutations affecting `Partition` */ +export interface PartitionInput { + id?: string; + databaseId: string; + tableId: string; + strategy: string; + partitionKeyId: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAgentChatModuleInput { + clientMutationId?: string; + /** The `AgentChatModule` to be created by this mutation. */ + agentChatModule: AgentChatModuleInput; +} +/** An input for mutations affecting `AgentChatModule` */ +export interface AgentChatModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + apiId?: string; + threadTableId?: string; + threadTableName?: string; + messageTableId?: string; + messageTableName?: string; + taskTableId?: string; + taskTableName?: string; + prefix?: string; +} export interface CreateBlueprintInput { clientMutationId?: string; /** The `Blueprint` to be created by this mutation. */ @@ -14055,61 +14382,25 @@ export interface PlansModuleInput { applyPlanAggregateFunction?: string; prefix?: string; } -export interface CreateAppLimitInput { +export interface CreateEmailInput { clientMutationId?: string; - /** The `AppLimit` to be created by this mutation. */ - appLimit: AppLimitInput; + /** The `Email` to be created by this mutation. */ + email: EmailInput; } -/** An input for mutations affecting `AppLimit` */ -export interface AppLimitInput { +/** An input for mutations affecting `Email` */ +export interface EmailInput { id?: string; - /** Name identifier of the limit being tracked */ + ownerId?: string; + /** 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; + /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - /** The `OrgMemberProfile` to be created by this mutation. */ - orgMemberProfile: OrgMemberProfileInput; -} -/** An input for mutations affecting `OrgMemberProfile` */ -export interface OrgMemberProfileInput { - id?: string; createdAt?: string; updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId: string; - /** References the user who owns this profile (for self-edit RLS) */ - actorId: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; } export interface CreateSqlActionInput { clientMutationId?: string; @@ -14132,6 +14423,64 @@ export interface SqlActionInput { actionId?: string; actorId?: string; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + /** The `AppLimitEvent` to be created by this mutation. */ + appLimitEvent: AppLimitEventInput; +} +/** An input for mutations affecting `AppLimitEvent` */ +export interface AppLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + /** The `OrgLimitEvent` to be created by this mutation. */ + orgLimitEvent: OrgLimitEventInput; +} +/** An input for mutations affecting `OrgLimitEvent` */ +export interface OrgLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} export interface CreateDatabaseTransferInput { clientMutationId?: string; /** The `DatabaseTransfer` to be created by this mutation. */ @@ -14190,28 +14539,6 @@ export interface DatabaseSettingInput { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: unknown; } -export interface CreateBillingModuleInput { - clientMutationId?: string; - /** The `BillingModule` to be created by this mutation. */ - billingModule: BillingModuleInput; -} -/** An input for mutations affecting `BillingModule` */ -export interface BillingModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - recordUsageFunction?: string; - prefix?: string; -} export interface CreateCryptoAuthModuleInput { clientMutationId?: string; /** The `CryptoAuthModule` to be created by this mutation. */ @@ -14250,7 +14577,7 @@ export interface DatabaseProvisionModuleInput { subdomain?: string; /** Base domain for the database (e.g., example.com) */ domain: string; - /** Array of module IDs to install, or ["all"] for all modules */ + /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ modules?: string[]; /** Additional configuration options for provisioning */ options?: unknown; @@ -14287,6 +14614,37 @@ export interface InvitesModuleInput { membershipType: number; entityTableId?: string; } +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + /** The `OrgMembershipSetting` to be created by this mutation. */ + orgMembershipSetting: OrgMembershipSettingInput; +} +/** An input for mutations affecting `OrgMembershipSetting` */ +export interface OrgMembershipSettingInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} export interface CreateSecureTableProvisionInput { clientMutationId?: string; /** The `SecureTableProvision` to be created by this mutation. */ @@ -14298,63 +14656,32 @@ export interface SecureTableProvisionInput { 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; - /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ - nodes?: unknown; - /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ - useRls?: boolean; - /** 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[]; - /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ - grants?: unknown; - /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ - policies?: 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 nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ - outFields?: string[]; -} -export interface CreateOrgLimitAggregateInput { - clientMutationId?: string; - /** The `OrgLimitAggregate` to be created by this mutation. */ - orgLimitAggregate: OrgLimitAggregateInput; -} -/** An input for mutations affecting `OrgLimitAggregate` */ -export interface OrgLimitAggregateInput { - id?: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string; - /** Entity (org) whose aggregate usage is being tracked */ - entityId: string; - /** Current aggregate usage count for this entity and limit */ - num?: string; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: 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; + /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ + nodes?: unknown; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ + useRls?: boolean; + /** 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[]; + /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ + grants?: unknown; + /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ + policies?: 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 nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; } -export interface CreateOrgLimitInput { +export interface CreateAppLimitInput { clientMutationId?: string; - /** The `OrgLimit` to be created by this mutation. */ - orgLimit: OrgLimitInput; + /** The `AppLimit` to be created by this mutation. */ + appLimit: AppLimitInput; } -/** An input for mutations affecting `OrgLimit` */ -export interface OrgLimitInput { +/** An input for mutations affecting `AppLimit` */ +export interface AppLimitInput { id?: string; /** Name identifier of the limit being tracked */ name?: string; @@ -14376,28 +14703,6 @@ export interface OrgLimitInput { purchasedCredits?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - entityId: string; -} -export interface CreateAstMigrationInput { - clientMutationId?: string; - /** The `AstMigration` to be created by this mutation. */ - astMigration: AstMigrationInput; -} -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; - name?: string; - requires?: string[]; - payload?: unknown; - deploys?: string; - deploy?: unknown; - revert?: unknown; - verify?: unknown; - createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; } export interface CreateApiSettingInput { clientMutationId?: string; @@ -14437,6 +14742,98 @@ export interface ApiSettingInput { /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: unknown; } +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + /** The `ComputeLogModule` to be created by this mutation. */ + computeLogModule: ComputeLogModuleInput; +} +/** An input for mutations affecting `ComputeLogModule` */ +export interface ComputeLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; +} +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + /** The `InferenceLogModule` to be created by this mutation. */ + inferenceLogModule: InferenceLogModuleInput; +} +/** An input for mutations affecting `InferenceLogModule` */ +export interface InferenceLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; +} +export interface CreateStorageLogModuleInput { + clientMutationId?: string; + /** The `StorageLogModule` to be created by this mutation. */ + storageLogModule: StorageLogModuleInput; +} +/** An input for mutations affecting `StorageLogModule` */ +export interface StorageLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + /** The `TransferLogModule` to be created by this mutation. */ + transferLogModule: TransferLogModuleInput; +} +/** An input for mutations affecting `TransferLogModule` */ +export interface TransferLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; +} export interface CreateEnumInput { clientMutationId?: string; /** The `Enum` to be created by this mutation. */ @@ -14457,20 +14854,66 @@ export interface EnumInput { scope?: number; tags?: string[]; } -export interface CreateUserInput { +export interface CreateOrgLimitAggregateInput { clientMutationId?: string; - /** The `User` to be created by this mutation. */ - user: UserInput; + /** The `OrgLimitAggregate` to be created by this mutation. */ + orgLimitAggregate: OrgLimitAggregateInput; } -/** An input for mutations affecting `User` */ -export interface UserInput { +/** An input for mutations affecting `OrgLimitAggregate` */ +export interface OrgLimitAggregateInput { id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - createdAt?: string; - updatedAt?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ + entityId: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + /** The `OrgLimit` to be created by this mutation. */ + orgLimit: OrgLimitInput; +} +/** An input for mutations affecting `OrgLimit` */ +export interface OrgLimitInput { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + entityId: string; } export interface CreateViewInput { clientMutationId?: string; @@ -14520,67 +14963,54 @@ export interface WebauthnAuthModuleInput { residentKey?: string; challengeExpiry?: IntervalInput; } -export interface CreateAppInviteInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - /** The `AppInvite` to be created by this mutation. */ - appInvite: AppInviteInput; + /** The `AppMembership` to be created by this mutation. */ + appMembership: AppMembershipInput; } -/** An input for mutations affecting `AppInvite` */ -export interface AppInviteInput { +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId: string; + profileId?: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateUserInput { clientMutationId?: string; - /** The `OrgMembershipSetting` to be created by this mutation. */ - orgMembershipSetting: OrgMembershipSettingInput; + /** The `User` to be created by this mutation. */ + user: UserInput; } -/** An input for mutations affecting `OrgMembershipSetting` */ -export interface OrgMembershipSettingInput { +/** An input for mutations affecting `User` */ +export interface UserInput { id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ - entityId: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; } export interface CreateAppInput { clientMutationId?: string; @@ -14634,6 +15064,31 @@ export interface SiteInput { /** PostgreSQL database name this site connects to */ dbname?: string; } +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + /** The `DbUsageModule` to be created by this mutation. */ + dbUsageModule: DbUsageModuleInput; +} +/** An input for mutations affecting `DbUsageModule` */ +export interface DbUsageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; +} export interface CreateNotificationsModuleInput { clientMutationId?: string; /** The `NotificationsModule` to be created by this mutation. */ @@ -14684,6 +15139,27 @@ export interface PermissionsModuleInput { getByMask?: string; getMaskByName?: string; } +export interface CreateAstMigrationInput { + clientMutationId?: string; + /** The `AstMigration` to be created by this mutation. */ + astMigration: AstMigrationInput; +} +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: unknown; + deploys?: string; + deploy?: unknown; + revert?: unknown; + verify?: unknown; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} export interface CreateWebauthnCredentialInput { clientMutationId?: string; /** The `WebauthnCredential` to be created by this mutation. */ @@ -14894,13 +15370,39 @@ export interface WebauthnSettingInput { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string; } -export interface CreateAppMembershipInput { +export interface CreateBillingModuleInput { clientMutationId?: string; - /** The `AppMembership` to be created by this mutation. */ - appMembership: AppMembershipInput; + /** The `BillingModule` to be created by this mutation. */ + billingModule: BillingModuleInput; } -/** An input for mutations affecting `AppMembership` */ -export interface AppMembershipInput { +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + recordUsageFunction?: string; + prefix?: string; +} +export interface CreateOrgMembershipInput { + clientMutationId?: string; + /** The `OrgMembership` to be created by this mutation. */ + orgMembership: OrgMembershipInput; +} +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { id?: string; createdAt?: string; updatedAt?: string; @@ -14912,10 +15414,10 @@ export interface AppMembershipInput { isBanned?: boolean; /** Whether this membership is temporarily disabled */ isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether the actor has admin privileges on this entity */ @@ -14926,6 +15428,10 @@ export interface AppMembershipInput { granted?: string; /** References the user who holds this membership */ actorId: string; + /** References the entity (org or group) this membership belongs to */ + entityId: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; profileId?: string; } export interface CreateSchemaInput { @@ -14977,20 +15483,18 @@ export interface IndexInput { createdAt?: string; updatedAt?: string; } -export interface CreateOrgInviteInput { +export interface CreateAppInviteInput { clientMutationId?: string; - /** The `OrgInvite` to be created by this mutation. */ - orgInvite: OrgInviteInput; + /** The `AppInvite` to be created by this mutation. */ + appInvite: AppInviteInput; } -/** An input for mutations affecting `OrgInvite` */ -export interface OrgInviteInput { +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { id?: string; /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; /** User ID of the member who sent this invitation */ senderId?: string; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string; /** Unique random hex token used to redeem this invitation */ inviteToken?: string; /** Whether this invitation is still valid and can be redeemed */ @@ -15005,13 +15509,10 @@ export interface OrgInviteInput { data?: unknown; /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ profileId?: string; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; - entityId: string; } export interface CreateBillingProviderModuleInput { clientMutationId?: string; @@ -15145,44 +15646,6 @@ export interface ProfilesModuleInput { membershipsTableId?: string; prefix?: string; } -export interface CreateOrgMembershipInput { - clientMutationId?: string; - /** The `OrgMembership` to be created by this mutation. */ - orgMembership: OrgMembershipInput; -} -/** An input for mutations affecting `OrgMembership` */ -export interface OrgMembershipInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId: string; - /** References the entity (org or group) this membership belongs to */ - entityId: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; -} export interface CreateEmbeddingChunkInput { clientMutationId?: string; /** The `EmbeddingChunk` to be created by this mutation. */ @@ -15238,6 +15701,42 @@ export interface ForeignKeyConstraintInput { createdAt?: string; updatedAt?: string; } +export interface CreateOrgInviteInput { + clientMutationId?: string; + /** The `OrgInvite` to be created by this mutation. */ + orgInvite: OrgInviteInput; +} +/** An input for mutations affecting `OrgInvite` */ +export interface OrgInviteInput { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Whether the resulting membership should be read-only when this invite is claimed */ + isReadOnly?: boolean; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} export interface CreateRelationProvisionInput { clientMutationId?: string; /** The `RelationProvision` to be created by this mutation. */ @@ -15462,36 +15961,34 @@ export interface EntityTypeProvisionInput { */ hasInviteAchievements?: boolean; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: unknown; /** @@ -15708,47 +16205,6 @@ export interface LimitsModuleInput { entityTableId?: string; actorTableId?: string; } -export interface CreateStorageModuleInput { - clientMutationId?: string; - /** The `StorageModule` to be created by this mutation. */ - storageModule: StorageModuleInput; -} -/** An input for mutations affecting `StorageModule` */ -export interface StorageModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - membershipType?: number; - policies?: unknown; - skipDefaultPolicyTables?: string[]; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; -} export interface CreateMembershipsModuleInput { clientMutationId?: string; /** The `MembershipsModule` to be created by this mutation. */ @@ -15791,6 +16247,48 @@ export interface MembershipsModuleInput { entityIdsFunction?: string; memberProfilesTableId?: string; } +export interface CreateStorageModuleInput { + clientMutationId?: string; + /** The `StorageModule` to be created by this mutation. */ + storageModule: StorageModuleInput; +} +/** An input for mutations affecting `StorageModule` */ +export interface StorageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + membershipType?: number; + storageKey?: string; + policies?: unknown; + skipDefaultPolicyTables?: string[]; + entityTableId?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; +} export interface CreateEventsModuleInput { clientMutationId?: string; /** The `EventsModule` to be created by this mutation. */ @@ -15849,17 +16347,6 @@ export interface DefaultIdsModulePatch { id?: string; databaseId?: string; } -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - /** An object where the defined keys will be set on the `RoleType` being updated. */ - roleTypePatch: RoleTypePatch; -} -/** Represents an update to a `RoleType`. Fields that are set will be updated. */ -export interface RoleTypePatch { - id?: number; - name?: string; -} export interface UpdateAppLimitCreditRedemptionInput { clientMutationId?: string; id: string; @@ -15974,7 +16461,7 @@ export interface UpdateRefInput { clientMutationId?: string; /** The primary unique identifier for the ref. */ id: string; - databaseId: string; + scopeId: string; /** An object where the defined keys will be set on the `Ref` being updated. */ refPatch: RefPatch; } @@ -15984,7 +16471,7 @@ export interface RefPatch { id?: string; /** The name of the ref or branch */ name?: string; - databaseId?: string; + scopeId?: string; storeId?: string; commitId?: string; } @@ -16001,20 +16488,34 @@ export interface StorePatch { id?: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string; - /** The database this store belongs to. */ - databaseId?: string; + /** The scope this store belongs to. */ + scopeId?: string; /** The current head tree_id for this store. */ hash?: string; createdAt?: string; } -export interface UpdateEncryptedSecretsModuleInput { +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConfigSecretsOrgModule` being updated. */ + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +/** Represents an update to a `ConfigSecretsOrgModule`. Fields that are set will be updated. */ +export interface ConfigSecretsOrgModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateConfigSecretsUserModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `EncryptedSecretsModule` being updated. */ - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + /** An object where the defined keys will be set on the `ConfigSecretsUserModule` being updated. */ + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; } -/** Represents an update to a `EncryptedSecretsModule`. Fields that are set will be updated. */ -export interface EncryptedSecretsModulePatch { +/** Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. */ +export interface ConfigSecretsUserModulePatch { id?: string; databaseId?: string; schemaId?: string; @@ -16101,23 +16602,16 @@ export interface SiteModulePatch { /** JSON configuration data for this module */ data?: unknown; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateRoleTypeInput { clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ - appLimitCreditCodePatch: AppLimitCreditCodePatch; + id: number; + /** An object where the defined keys will be set on the `RoleType` being updated. */ + roleTypePatch: RoleTypePatch; } -/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ -export interface AppLimitCreditCodePatch { - id?: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string; +/** Represents an update to a `RoleType`. Fields that are set will be updated. */ +export interface RoleTypePatch { + id?: number; + name?: string; } export interface UpdateSchemaGrantInput { clientMutationId?: string; @@ -16246,124 +16740,6 @@ export interface OrgPermissionDefaultPatch { /** References the entity these default permissions apply to */ entityId?: string; } -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppPermission` being updated. */ - appPermissionPatch: AppPermissionPatch; -} -/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ -export interface AppPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermission` being updated. */ - orgPermissionPatch: OrgPermissionPatch; -} -/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ -export interface OrgPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface UpdateAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. */ - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; -} -/** Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. */ -export interface AppLimitCapsDefaultPatch { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface UpdateOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. */ - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; -} -/** Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. */ -export interface OrgLimitCapsDefaultPatch { - id?: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string; -} -export interface UpdateAppLimitCapInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimitCap` being updated. */ - appLimitCapPatch: AppLimitCapPatch; -} -/** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */ -export interface AppLimitCapPatch { - id?: string; - /** Name identifier of the cap being overridden */ - name?: string; - /** Entity this cap override applies to */ - entityId?: string; - /** Override cap value for this entity */ - max?: string; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitCap` being updated. */ - orgLimitCapPatch: OrgLimitCapPatch; -} -/** Represents an update to a `OrgLimitCap`. Fields that are set will be updated. */ -export interface OrgLimitCapPatch { - id?: string; - /** Name identifier of the cap being overridden */ - name?: string; - /** Entity this cap override applies to */ - entityId?: string; - /** Override cap value for this entity */ - max?: string; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** An object where the defined keys will be set on the `MembershipType` being updated. */ - membershipTypePatch: MembershipTypePatch; -} -/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ -export interface MembershipTypePatch { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id?: number; - /** Human-readable name of the membership type */ - name?: string; - /** Description of what this membership type represents */ - description?: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; -} export interface UpdateDefaultPrivilegeInput { clientMutationId?: string; id: string; @@ -16517,6 +16893,24 @@ export interface WebauthnCredentialsModulePatch { ownerTableId?: string; tableName?: string; } +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ +export interface AppMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; @@ -16536,6 +16930,24 @@ export interface OrgAdminGrantPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ +export interface OrgMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ + entityId?: string; +} export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; @@ -16571,73 +16983,65 @@ export interface NodeTypeRegistryPatch { parameterSchema?: unknown; tags?: string[]; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateAppLimitCapsDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ - appLimitDefaultPatch: AppLimitDefaultPatch; + /** An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. */ + appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch; } -/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ -export interface AppLimitDefaultPatch { +/** Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. */ +export interface AppLimitCapsDefaultPatch { id?: string; - /** Name identifier of the limit this default applies to */ + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ name?: string; - /** Default maximum usage allowed for this limit */ + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateOrgLimitCapsDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; + /** An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. */ + orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch; } -/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ -export interface OrgLimitDefaultPatch { +/** Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. */ +export interface OrgLimitCapsDefaultPatch { id?: string; - /** Name identifier of the limit this default applies to */ + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ name?: string; - /** Default maximum usage allowed for this limit */ + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ max?: string; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; } -export interface UpdateAppLimitCreditCodeItemInput { +export interface UpdateAppLimitCapInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; + /** An object where the defined keys will be set on the `AppLimitCap` being updated. */ + appLimitCapPatch: AppLimitCapPatch; } -/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ -export interface AppLimitCreditCodeItemPatch { +/** Represents an update to a `AppLimitCap`. Fields that are set will be updated. */ +export interface AppLimitCapPatch { id?: string; - /** FK to credit_codes — which code this item belongs to */ - creditCodeId?: string; - /** FK to default_limits — which limit this item grants credits for */ - defaultLimitId?: string; - /** Number of credits this item grants per redemption */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; + /** Name identifier of the cap being overridden */ + name?: string; + /** Entity this cap override applies to */ + entityId?: string; + /** Override cap value for this entity */ + max?: string; } -export interface UpdateAppLimitWarningInput { +export interface UpdateOrgLimitCapInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */ - appLimitWarningPatch: AppLimitWarningPatch; + /** An object where the defined keys will be set on the `OrgLimitCap` being updated. */ + orgLimitCapPatch: OrgLimitCapPatch; } -/** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */ -export interface AppLimitWarningPatch { +/** Represents an update to a `OrgLimitCap`. Fields that are set will be updated. */ +export interface OrgLimitCapPatch { id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ + /** Name identifier of the cap being overridden */ name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; + /** Entity this cap override applies to */ + entityId?: string; + /** Override cap value for this entity */ + max?: string; } export interface UpdateDatabaseInput { clientMutationId?: string; @@ -16673,6 +17077,28 @@ export interface CryptoAddressesModulePatch { tableName?: string; cryptoNetwork?: string; } +export interface UpdateOrgChartEdgeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ + orgChartEdgePatch: OrgChartEdgePatch; +} +/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ +export interface OrgChartEdgePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId?: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} export interface UpdateCryptoAddressInput { clientMutationId?: string; id: string; @@ -16694,132 +17120,144 @@ export interface CryptoAddressPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AgentMessage` being updated. */ - agentMessagePatch: AgentMessagePatch; -} -/** Represents an update to a `AgentMessage`. Fields that are set will be updated. */ -export interface AgentMessagePatch { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId?: string; - /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ - entityId?: string; - /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ - authorRole?: string; - id?: string; - /** Timestamp when this record was created */ - createdAt?: string; - /** Timestamp when this record was last updated */ - updatedAt?: string; - /** User who owns this record */ - ownerId?: string; - /** JSON metadata for extensible key-value storage */ - parts?: unknown; -} -export interface UpdateAppLimitCreditInput { +export interface UpdateAppLimitCreditCodeItemInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */ - appLimitCreditPatch: AppLimitCreditPatch; + /** An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. */ + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch; } -/** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */ -export interface AppLimitCreditPatch { +/** Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. */ +export interface AppLimitCreditCodeItemPatch { id?: string; - /** FK to default_limits — which limit definition this credit applies to */ + /** FK to credit_codes — which code this item belongs to */ + creditCodeId?: string; + /** FK to default_limits — which limit this item grants credits for */ defaultLimitId?: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ + /** Number of credits this item grants per redemption */ amount?: string; /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateAppLimitDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ - orgLimitWarningPatch: OrgLimitWarningPatch; + /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ + appLimitDefaultPatch: AppLimitDefaultPatch; } -/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ -export interface OrgLimitWarningPatch { +/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ +export interface AppLimitDefaultPatch { id?: string; - /** Limit name this warning applies to (must match a default_limits entry) */ + /** Name identifier of the limit this default applies to */ name?: string; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; } -export interface UpdateOrgLimitCreditInput { +export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */ - orgLimitCreditPatch: OrgLimitCreditPatch; + /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ + orgLimitDefaultPatch: OrgLimitDefaultPatch; } -/** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */ -export interface OrgLimitCreditPatch { +/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ +export interface OrgLimitDefaultPatch { id?: string; - /** FK to default_limits — which limit definition this credit applies to */ - defaultLimitId?: string; - /** User this credit is for; NULL for aggregate entity-level credits */ - actorId?: string; - /** Entity this credit applies to; NULL for actor-only credits */ - entityId?: string; - /** Number of credits to grant (positive to add, negative to revoke) */ - amount?: string; - /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ - creditType?: string; - /** Optional reason for the credit grant (promo code, admin grant, etc.) */ - reason?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; } export interface UpdateObjectInput { clientMutationId?: string; id: string; - databaseId: string; + scopeId: string; /** An object where the defined keys will be set on the `Object` being updated. */ objectPatch: ObjectPatch; } /** Represents an update to a `Object`. Fields that are set will be updated. */ export interface ObjectPatch { id?: string; - databaseId?: string; + scopeId?: string; kids?: string[]; ktree?: string[]; data?: unknown; frzn?: boolean; createdAt?: string; } -export interface UpdateSiteMetadatumInput { +export interface UpdateAppPermissionInput { clientMutationId?: string; - /** Unique identifier for this metadata record */ id: string; - /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ - siteMetadatumPatch: SiteMetadatumPatch; + /** An object where the defined keys will be set on the `AppPermission` being updated. */ + appPermissionPatch: AppPermissionPatch; } -/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ -export interface SiteMetadatumPatch { - /** Unique identifier for this metadata record */ +/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ +export interface AppPermissionPatch { id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Site this metadata belongs to */ - siteId?: string; - /** Page title for SEO (max 120 characters) */ - title?: string; - /** Meta description for SEO and social sharing (max 120 characters) */ + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ description?: string; - /** Open Graph image for social media previews */ - ogImage?: ConstructiveInternalTypeImage; - /** Upload for Open Graph image for social media previews */ - ogImageUpload?: File; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermission` being updated. */ + orgPermissionPatch: OrgPermissionPatch; +} +/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ +export interface OrgPermissionPatch { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitCreditCode` being updated. */ + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +/** Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. */ +export interface AppLimitCreditCodePatch { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; +} +export interface UpdateAppLimitWarningInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppLimitWarning` being updated. */ + appLimitWarningPatch: AppLimitWarningPatch; +} +/** Represents an update to a `AppLimitWarning`. Fields that are set will be updated. */ +export interface AppLimitWarningPatch { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string; } export interface UpdateFullTextSearchInput { clientMutationId?: string; @@ -16861,8 +17299,8 @@ export interface UpdateCommitInput { clientMutationId?: string; /** The primary unique identifier for the commit. */ id: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; /** An object where the defined keys will be set on the `Commit` being updated. */ commitPatch: CommitPatch; } @@ -16872,8 +17310,8 @@ export interface CommitPatch { id?: string; /** The commit message */ message?: string; - /** The repository identifier */ - databaseId?: string; + /** The scope identifier */ + scopeId?: string; storeId?: string; /** Parent commits */ parentIds?: string[]; @@ -16885,6 +17323,30 @@ export interface CommitPatch { treeId?: string; date?: string; } +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; + /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ + siteMetadatumPatch: SiteMetadatumPatch; +} +/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ +export interface SiteMetadatumPatch { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this metadata belongs to */ + siteId?: string; + /** Page title for SEO (max 120 characters) */ + title?: string; + /** Meta description for SEO and social sharing (max 120 characters) */ + description?: string; + /** Open Graph image for social media previews */ + ogImage?: ConstructiveInternalTypeImage; + /** Upload for Open Graph image for social media previews */ + ogImageUpload?: File; +} export interface UpdatePubkeySettingInput { clientMutationId?: string; /** Unique identifier for this pubkey settings record */ @@ -16980,25 +17442,47 @@ export interface PhoneNumberPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateUsageSnapshotInput { +export interface UpdateAppLimitCreditInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `UsageSnapshot` being updated. */ - usageSnapshotPatch: UsageSnapshotPatch; + /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */ + appLimitCreditPatch: AppLimitCreditPatch; } -/** Represents an update to a `UsageSnapshot`. Fields that are set will be updated. */ -export interface UsageSnapshotPatch { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: unknown; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string; +/** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */ +export interface AppLimitCreditPatch { id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +export interface UpdateOrgLimitCreditInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */ + orgLimitCreditPatch: OrgLimitCreditPatch; +} +/** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */ +export interface OrgLimitCreditPatch { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId?: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount?: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; } export interface UpdateAppClaimedInviteInput { clientMutationId?: string; @@ -17018,65 +17502,47 @@ export interface AppClaimedInvitePatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateOrgLimitWarningInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + /** An object where the defined keys will be set on the `OrgLimitWarning` being updated. */ + orgLimitWarningPatch: OrgLimitWarningPatch; } -/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ -export interface OrgMembershipDefaultPatch { +/** Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. */ +export interface OrgLimitWarningPatch { id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string; + /** Per-entity override (NULL = scope default for all entities) */ entityId?: string; } -export interface UpdateAuditLogInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AuditLog` being updated. */ - auditLogPatch: AuditLogPatch; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** An object where the defined keys will be set on the `MembershipType` being updated. */ + membershipTypePatch: MembershipTypePatch; } -/** Represents an update to a `AuditLog`. Fields that are set will be updated. */ -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; NULL if user was deleted */ - actorId?: string; - /** 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?: string; - /** Whether the authentication attempt succeeded */ - success?: boolean; - /** Timestamp when the audit event was recorded */ - createdAt?: string; +/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ +export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id?: number; + /** Human-readable name of the membership type */ + name?: string; + /** Description of what this membership type represents */ + description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; } export interface UpdateDomainInput { clientMutationId?: string; @@ -17130,83 +17596,6 @@ export interface RlsSettingPatch { /** Reference to the current_ip_address function (FK to metaschema_public.function) */ currentIpAddressFunctionId?: string; } -export interface UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AgentTask` being updated. */ - agentTaskPatch: AgentTaskPatch; -} -/** Represents an update to a `AgentTask`. Fields that are set will be updated. */ -export interface AgentTaskPatch { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId?: string; - /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ - entityId?: string; - /** Natural-language description of the work to do. Required. */ - description?: string; - /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ - source?: string; - /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ - error?: string; - id?: string; - /** Timestamp when this record was created */ - createdAt?: string; - /** Timestamp when this record was last updated */ - updatedAt?: string; - /** User who owns this record */ - ownerId?: string; - /** Current status of this record */ - status?: string; -} -export interface UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AgentThread` being updated. */ - agentThreadPatch: AgentThreadPatch; -} -/** Represents an update to a `AgentThread`. Fields that are set will be updated. */ -export interface AgentThreadPatch { - /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ - title?: string; - /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ - mode?: string; - /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ - model?: string; - /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ - systemPrompt?: string; - id?: string; - /** Timestamp when this record was created */ - createdAt?: string; - /** Timestamp when this record was last updated */ - updatedAt?: string; - /** User who owns this record within the entity */ - ownerId?: string; - /** Entity this record belongs to */ - entityId?: string; - /** Current status of this record */ - status?: string; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Email` being updated. */ - emailPatch: EmailPatch; -} -/** Represents an update to a `Email`. Fields that are set will be updated. */ -export interface EmailPatch { - id?: string; - ownerId?: string; - /** 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; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} export interface UpdateAppGrantInput { clientMutationId?: string; id: string; @@ -17245,47 +17634,31 @@ export interface OrgClaimedInvitePatch { updatedAt?: string; entityId?: string; } -export interface UpdateOrgChartEdgeInput { +export interface UpdateAuditLogAuthInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; - /** An object where the defined keys will be set on the `OrgChartEdge` being updated. */ - orgChartEdgePatch: OrgChartEdgePatch; + /** An object where the defined keys will be set on the `AuditLogAuth` being updated. */ + auditLogAuthPatch: AuditLogAuthPatch; } -/** Represents an update to a `OrgChartEdge`. Fields that are set will be updated. */ -export interface OrgChartEdgePatch { - id?: string; +/** Represents an update to a `AuditLogAuth`. Fields that are set will be updated. */ +export interface AuditLogAuthPatch { createdAt?: string; - updatedAt?: string; - /** Organization this hierarchy edge belongs to */ - entityId?: string; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string; - /** Job title or role name for this position in the org chart */ - positionTitle?: string; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number; -} -export interface UpdatePartitionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Partition` being updated. */ - partitionPatch: PartitionPatch; -} -/** Represents an update to a `Partition`. Fields that are set will be updated. */ -export interface PartitionPatch { + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id?: string; - databaseId?: string; - tableId?: string; - strategy?: string; - partitionKeyId?: string; - interval?: string; - retention?: string; - premake?: number; - namingPattern?: string; - createdAt?: string; - updatedAt?: string; + /** 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?: string; + /** 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?: string; + /** Whether the authentication attempt succeeded */ + success?: boolean; } export interface UpdateBlueprintConstructionInput { clientMutationId?: string; @@ -17359,6 +17732,36 @@ export interface SessionsModulePatch { sessionCredentialsTable?: string; authSettingsTable?: string; } +export interface UpdateOrgMemberProfileInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */ + orgMemberProfilePatch: OrgMemberProfilePatch; +} +/** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */ +export interface OrgMemberProfilePatch { + id?: string; + createdAt?: string; + updatedAt?: string; + /** References the membership this profile belongs to (1:1) */ + membershipId?: string; + /** References the entity this profile belongs to (used for RLS lookups) */ + entityId?: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string; + /** Display name shown to other entity members */ + displayName?: string; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string; + /** Job title or role description visible to other entity members */ + title?: string; + /** Short biography visible to other entity members */ + bio?: string; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage; + /** Upload for Profile picture visible to other entity members */ + profilePictureUpload?: File; +} export interface UpdateOrgGrantInput { clientMutationId?: string; id: string; @@ -17380,6 +17783,48 @@ export interface OrgGrantPatch { createdAt?: string; updatedAt?: string; } +export interface UpdatePartitionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Partition` being updated. */ + partitionPatch: PartitionPatch; +} +/** Represents an update to a `Partition`. Fields that are set will be updated. */ +export interface PartitionPatch { + id?: string; + databaseId?: string; + tableId?: string; + strategy?: string; + partitionKeyId?: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAgentChatModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentChatModule` being updated. */ + agentChatModulePatch: AgentChatModulePatch; +} +/** Represents an update to a `AgentChatModule`. Fields that are set will be updated. */ +export interface AgentChatModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + apiId?: string; + threadTableId?: string; + threadTableName?: string; + messageTableId?: string; + messageTableName?: string; + taskTableId?: string; + taskTableName?: string; + prefix?: string; +} export interface UpdateBlueprintInput { clientMutationId?: string; /** Unique identifier for this blueprint. */ @@ -17499,65 +17944,90 @@ export interface PlansModulePatch { applyPlanAggregateFunction?: string; prefix?: string; } -export interface UpdateAppLimitInput { +export interface UpdateEmailInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimit` being updated. */ - appLimitPatch: AppLimitPatch; + /** An object where the defined keys will be set on the `Email` being updated. */ + emailPatch: EmailPatch; } -/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ -export interface AppLimitPatch { +/** Represents an update to a `Email`. Fields that are set will be updated. */ +export interface EmailPatch { + id?: string; + ownerId?: string; + /** 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; + /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ + name?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ + id: string; + /** An object where the defined keys will be set on the `AppLimitEvent` being updated. */ + appLimitEventPatch: AppLimitEventPatch; +} +/** Represents an update to a `AppLimitEvent`. Fields that are set will be updated. */ +export interface AppLimitEventPatch { + createdAt?: string; + /** Unique identifier for each limit event */ id?: string; - /** Name identifier of the limit being tracked */ + /** Limit name this event applies to */ name?: string; - /** User whose usage is being tracked against this limit */ + /** User who triggered this event; NULL for system/aggregate events */ actorId?: string; - /** Current usage count for this actor and limit */ - num?: string; - /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; } -export interface UpdateOrgMemberProfileInput { +export interface UpdateOrgLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; - /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */ - orgMemberProfilePatch: OrgMemberProfilePatch; + /** An object where the defined keys will be set on the `OrgLimitEvent` being updated. */ + orgLimitEventPatch: OrgLimitEventPatch; } -/** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */ -export interface OrgMemberProfilePatch { - id?: string; +/** Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. */ +export interface OrgLimitEventPatch { createdAt?: string; - updatedAt?: string; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string; - /** References the user who owns this profile (for self-edit RLS) */ + /** Unique identifier for each limit event */ + id?: string; + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ actorId?: string; - /** Display name shown to other entity members */ - displayName?: string; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string; - /** Job title or role description visible to other entity members */ - title?: string; - /** Short biography visible to other entity members */ - bio?: string; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage; - /** Upload for Profile picture visible to other entity members */ - profilePictureUpload?: File; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; } export interface UpdateDatabaseTransferInput { clientMutationId?: string; @@ -17620,29 +18090,6 @@ export interface DatabaseSettingPatch { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: unknown; } -export interface UpdateBillingModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `BillingModule` being updated. */ - billingModulePatch: BillingModulePatch; -} -/** Represents an update to a `BillingModule`. Fields that are set will be updated. */ -export interface BillingModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - recordUsageFunction?: string; - prefix?: string; -} export interface UpdateCryptoAuthModuleInput { clientMutationId?: string; id: string; @@ -17683,7 +18130,7 @@ export interface DatabaseProvisionModulePatch { subdomain?: string; /** Base domain for the database (e.g., example.com) */ domain?: string; - /** Array of module IDs to install, or ["all"] for all modules */ + /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ modules?: string[]; /** Additional configuration options for provisioning */ options?: unknown; @@ -17721,6 +18168,38 @@ export interface InvitesModulePatch { membershipType?: number; entityTableId?: string; } +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ +export interface OrgMembershipSettingPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId?: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} export interface UpdateSecureTableProvisionInput { clientMutationId?: string; /** Unique identifier for this provision row. */ @@ -17753,46 +18232,14 @@ export interface SecureTableProvisionPatch { /** 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 nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ outFields?: string[]; } -export interface UpdateOrgLimitAggregateInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */ - orgLimitAggregatePatch: OrgLimitAggregatePatch; -} -/** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */ -export interface OrgLimitAggregatePatch { - id?: string; - /** Name identifier of the aggregate limit being tracked */ - name?: string; - /** Entity (org) whose aggregate usage is being tracked */ - entityId?: string; - /** Current aggregate usage count for this entity and limit */ - num?: string; - /** Maximum allowed aggregate usage; negative means unlimited */ - max?: string; - /** Soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string; - /** Start of the current metering window; NULL means no time window */ - windowStart?: string; - /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ - windowDuration?: IntervalInput; - /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ - planMax?: string; - /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ - purchasedCredits?: string; - /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ - periodCredits?: string; - /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ - reserved?: string; -} -export interface UpdateOrgLimitInput { +export interface UpdateAppLimitInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimit` being updated. */ - orgLimitPatch: OrgLimitPatch; + /** An object where the defined keys will be set on the `AppLimit` being updated. */ + appLimitPatch: AppLimitPatch; } -/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ -export interface OrgLimitPatch { +/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ +export interface AppLimitPatch { id?: string; /** Name identifier of the limit being tracked */ name?: string; @@ -17814,7 +18261,6 @@ export interface OrgLimitPatch { purchasedCredits?: string; /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string; - entityId?: string; } export interface UpdateApiSettingInput { clientMutationId?: string; @@ -17856,6 +18302,102 @@ export interface ApiSettingPatch { /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: unknown; } +export interface UpdateComputeLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ComputeLogModule` being updated. */ + computeLogModulePatch: ComputeLogModulePatch; +} +/** Represents an update to a `ComputeLogModule`. Fields that are set will be updated. */ +export interface ComputeLogModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `InferenceLogModule` being updated. */ + inferenceLogModulePatch: InferenceLogModulePatch; +} +/** Represents an update to a `InferenceLogModule`. Fields that are set will be updated. */ +export interface InferenceLogModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; +} +export interface UpdateStorageLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `StorageLogModule` being updated. */ + storageLogModulePatch: StorageLogModulePatch; +} +/** Represents an update to a `StorageLogModule`. Fields that are set will be updated. */ +export interface StorageLogModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `TransferLogModule` being updated. */ + transferLogModulePatch: TransferLogModulePatch; +} +/** Represents an update to a `TransferLogModule`. Fields that are set will be updated. */ +export interface TransferLogModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; +} export interface UpdateEnumInput { clientMutationId?: string; id: string; @@ -17877,23 +18419,68 @@ export interface EnumPatch { scope?: number; tags?: string[]; } -export interface UpdateUserInput { +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */ + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +/** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */ +export interface OrgLimitAggregatePatch { + id?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string; +} +export interface UpdateOrgLimitInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `User` being updated. */ - userPatch: UserPatch; + /** An object where the defined keys will be set on the `OrgLimit` being updated. */ + orgLimitPatch: OrgLimitPatch; } -/** Represents an update to a `User`. Fields that are set will be updated. */ -export interface UserPatch { +/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ +export interface OrgLimitPatch { id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - createdAt?: string; - updatedAt?: string; - /** File upload for the `profilePicture` field. */ - profilePictureUpload?: File; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId?: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + entityId?: string; } export interface UpdateViewInput { clientMutationId?: string; @@ -17945,69 +18532,58 @@ export interface WebauthnAuthModulePatch { residentKey?: string; challengeExpiry?: IntervalInput; } -export interface UpdateAppInviteInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppInvite` being updated. */ - appInvitePatch: AppInvitePatch; + /** An object where the defined keys will be set on the `AppMembership` being updated. */ + appMembershipPatch: AppMembershipPatch; } -/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ -export interface AppInvitePatch { +/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ +export interface AppMembershipPatch { id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId?: string; + profileId?: string; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateUserInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ - orgMembershipSettingPatch: OrgMembershipSettingPatch; + /** An object where the defined keys will be set on the `User` being updated. */ + userPatch: UserPatch; } -/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ -export interface OrgMembershipSettingPatch { +/** Represents an update to a `User`. Fields that are set will be updated. */ +export interface UserPatch { id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ - entityId?: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string; + /** File upload for the `profilePicture` field. */ + profilePictureUpload?: File; } export interface UpdateAppInput { clientMutationId?: string; @@ -18075,6 +18651,32 @@ export interface SitePatch { /** Upload for Primary logo image for the site */ logoUpload?: File; } +export interface UpdateDbUsageModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DbUsageModule` being updated. */ + dbUsageModulePatch: DbUsageModulePatch; +} +/** Represents an update to a `DbUsageModule`. Fields that are set will be updated. */ +export interface DbUsageModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; +} export interface UpdateNotificationsModuleInput { clientMutationId?: string; id: string; @@ -18346,14 +18948,41 @@ export interface WebauthnSettingPatch { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string; } -export interface UpdateAppMembershipInput { +export interface UpdateBillingModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppMembership` being updated. */ - appMembershipPatch: AppMembershipPatch; + /** An object where the defined keys will be set on the `BillingModule` being updated. */ + billingModulePatch: BillingModulePatch; } -/** Represents an update to a `AppMembership`. Fields that are set will be updated. */ -export interface AppMembershipPatch { +/** Represents an update to a `BillingModule`. Fields that are set will be updated. */ +export interface BillingModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + recordUsageFunction?: string; + prefix?: string; +} +export interface UpdateOrgMembershipInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembership` being updated. */ + orgMembershipPatch: OrgMembershipPatch; +} +/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ +export interface OrgMembershipPatch { id?: string; createdAt?: string; updatedAt?: string; @@ -18365,10 +18994,10 @@ export interface AppMembershipPatch { isBanned?: boolean; /** Whether this membership is temporarily disabled */ isDisabled?: boolean; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether the actor has admin privileges on this entity */ @@ -18379,6 +19008,10 @@ export interface AppMembershipPatch { granted?: string; /** References the user who holds this membership */ actorId?: string; + /** References the entity (org or group) this membership belongs to */ + entityId?: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; profileId?: string; } export interface UpdateSchemaInput { @@ -18432,21 +19065,19 @@ export interface IndexPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateOrgInviteInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgInvite` being updated. */ - orgInvitePatch: OrgInvitePatch; + /** An object where the defined keys will be set on the `AppInvite` being updated. */ + appInvitePatch: AppInvitePatch; } -/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ -export interface OrgInvitePatch { +/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ +export interface AppInvitePatch { id?: string; /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; /** User ID of the member who sent this invitation */ senderId?: string; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string; /** Unique random hex token used to redeem this invitation */ inviteToken?: string; /** Whether this invitation is still valid and can be redeemed */ @@ -18461,13 +19092,10 @@ export interface OrgInvitePatch { data?: unknown; /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ profileId?: string; - /** Whether the resulting membership should be read-only when this invite is claimed */ - isReadOnly?: boolean; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; - entityId?: string; } export interface UpdateBillingProviderModuleInput { clientMutationId?: string; @@ -18583,68 +19211,29 @@ export interface UpdateProfilesModuleInput { /** An object where the defined keys will be set on the `ProfilesModule` being updated. */ profilesModulePatch: ProfilesModulePatch; } -/** Represents an update to a `ProfilesModule`. Fields that are set will be updated. */ -export interface ProfilesModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - profileTemplatesTableId?: string; - profileTemplatesTableName?: string; - membershipType?: number; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembership` being updated. */ - orgMembershipPatch: OrgMembershipPatch; -} -/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ -export interface OrgMembershipPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId?: string; - /** References the entity (org or group) this membership belongs to */ - entityId?: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; -} +/** Represents an update to a `ProfilesModule`. Fields that are set will be updated. */ +export interface ProfilesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + membershipType?: number; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + prefix?: string; +} export interface UpdateEmbeddingChunkInput { clientMutationId?: string; id: string; @@ -18702,6 +19291,43 @@ export interface ForeignKeyConstraintPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateOrgInviteInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgInvite` being updated. */ + orgInvitePatch: OrgInvitePatch; +} +/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ +export interface OrgInvitePatch { + id?: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Whether the resulting membership should be read-only when this invite is claimed */ + isReadOnly?: boolean; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} export interface UpdateRelationProvisionInput { clientMutationId?: string; /** Unique identifier for this relation provision row. */ @@ -18930,36 +19556,34 @@ export interface EntityTypeProvisionPatch { */ hasInviteAchievements?: boolean; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: unknown; /** @@ -19180,48 +19804,6 @@ export interface LimitsModulePatch { entityTableId?: string; actorTableId?: string; } -export interface UpdateStorageModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `StorageModule` being updated. */ - storageModulePatch: StorageModulePatch; -} -/** Represents an update to a `StorageModule`. Fields that are set will be updated. */ -export interface StorageModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - membershipType?: number; - policies?: unknown; - skipDefaultPolicyTables?: string[]; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; -} export interface UpdateMembershipsModuleInput { clientMutationId?: string; id: string; @@ -19265,6 +19847,49 @@ export interface MembershipsModulePatch { entityIdsFunction?: string; memberProfilesTableId?: string; } +export interface UpdateStorageModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `StorageModule` being updated. */ + storageModulePatch: StorageModulePatch; +} +/** Represents an update to a `StorageModule`. Fields that are set will be updated. */ +export interface StorageModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + membershipType?: number; + storageKey?: string; + policies?: unknown; + skipDefaultPolicyTables?: string[]; + entityTableId?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; +} export interface UpdateEventsModuleInput { clientMutationId?: string; id: string; @@ -19317,10 +19942,6 @@ export interface DeleteDefaultIdsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} export interface DeleteAppLimitCreditRedemptionInput { clientMutationId?: string; id: string; @@ -19356,14 +19977,18 @@ export interface DeleteRefInput { clientMutationId?: string; /** The primary unique identifier for the ref. */ id: string; - databaseId: string; + scopeId: string; } export interface DeleteStoreInput { clientMutationId?: string; /** The primary unique identifier for the store. */ id: string; } -export interface DeleteEncryptedSecretsModuleInput { +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteConfigSecretsUserModuleInput { clientMutationId?: string; id: string; } @@ -19389,9 +20014,9 @@ export interface DeleteSiteModuleInput { /** Unique identifier for this site module record */ id: string; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteRoleTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface DeleteSchemaGrantInput { clientMutationId?: string; @@ -19425,35 +20050,6 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgPermissionInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitCapsDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; -} export interface DeleteDefaultPrivilegeInput { clientMutationId?: string; id: string; @@ -19491,10 +20087,18 @@ export interface DeleteWebauthnCredentialsModuleInput { clientMutationId?: string; id: string; } +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; @@ -19503,19 +20107,19 @@ export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; name: string; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteAppLimitCapsDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteOrgLimitCapsDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditCodeItemInput { +export interface DeleteAppLimitCapInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitWarningInput { +export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } @@ -19527,34 +20131,45 @@ export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteCryptoAddressInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface DeleteAgentMessageInput { +export interface DeleteCryptoAddressInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitCreditInput { +export interface DeleteAppLimitCreditCodeItemInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitCreditInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } export interface DeleteObjectInput { clientMutationId?: string; id: string; - databaseId: string; + scopeId: string; } -export interface DeleteSiteMetadatumInput { +export interface DeleteAppPermissionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgPermissionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppLimitWarningInput { clientMutationId?: string; - /** Unique identifier for this metadata record */ id: string; } export interface DeleteFullTextSearchInput { @@ -19569,8 +20184,13 @@ export interface DeleteCommitInput { clientMutationId?: string; /** The primary unique identifier for the commit. */ id: string; - /** The repository identifier */ - databaseId: string; + /** The scope identifier */ + scopeId: string; +} +export interface DeleteSiteMetadatumInput { + clientMutationId?: string; + /** Unique identifier for this metadata record */ + id: string; } export interface DeletePubkeySettingInput { clientMutationId?: string; @@ -19589,25 +20209,26 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface DeleteUsageSnapshotInput { +export interface DeleteAppLimitCreditInput { clientMutationId?: string; id: string; } -export interface DeleteAppClaimedInviteInput { +export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface DeleteAuditLogInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; } export interface DeleteDomainInput { clientMutationId?: string; @@ -19619,48 +20240,46 @@ export interface DeleteRlsSettingInput { /** Unique identifier for this RLS settings record */ id: string; } -export interface DeleteAgentTaskInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAgentThreadInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } -export interface DeleteEmailInput { +export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface DeleteAppGrantInput { +export interface DeleteAuditLogAuthInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; } -export interface DeleteOrgClaimedInviteInput { +export interface DeleteBlueprintConstructionInput { clientMutationId?: string; + /** Unique identifier for this construction attempt. */ id: string; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } -export interface DeletePartitionInput { +export interface DeleteSessionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteBlueprintConstructionInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; - /** Unique identifier for this construction attempt. */ id: string; } -export interface DeleteRlsModuleInput { +export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } -export interface DeleteSessionsModuleInput { +export interface DeletePartitionInput { clientMutationId?: string; id: string; } -export interface DeleteOrgGrantInput { +export interface DeleteAgentChatModuleInput { clientMutationId?: string; id: string; } @@ -19685,25 +20304,29 @@ export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMemberProfileInput { +export interface DeleteAppLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; } -export interface DeleteDatabaseTransferInput { +export interface DeleteOrgLimitEventInput { clientMutationId?: string; + createdAt: string; + /** Unique identifier for each limit event */ id: string; } -export interface DeleteDatabaseSettingInput { +export interface DeleteDatabaseTransferInput { clientMutationId?: string; - /** Unique identifier for this settings record */ id: string; } -export interface DeleteBillingModuleInput { +export interface DeleteDatabaseSettingInput { clientMutationId?: string; + /** Unique identifier for this settings record */ id: string; } export interface DeleteCryptoAuthModuleInput { @@ -19718,16 +20341,16 @@ export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteSecureTableProvisionInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; - /** Unique identifier for this provision row. */ id: string; } -export interface DeleteOrgLimitAggregateInput { +export interface DeleteSecureTableProvisionInput { clientMutationId?: string; + /** Unique identifier for this provision row. */ id: string; } -export interface DeleteOrgLimitInput { +export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } @@ -19736,11 +20359,31 @@ export interface DeleteApiSettingInput { /** Unique identifier for this API settings record */ id: string; } +export interface DeleteComputeLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteTransferLogModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteEnumInput { clientMutationId?: string; id: string; } -export interface DeleteUserInput { +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } @@ -19752,11 +20395,11 @@ export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppInviteInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteUserInput { clientMutationId?: string; id: string; } @@ -19770,6 +20413,10 @@ export interface DeleteSiteInput { /** Unique identifier for this site */ id: string; } +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; @@ -19811,7 +20458,11 @@ export interface DeleteWebauthnSettingInput { /** Unique identifier for this WebAuthn settings record */ id: string; } -export interface DeleteAppMembershipInput { +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } @@ -19823,7 +20474,7 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface DeleteOrgInviteInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } @@ -19844,15 +20495,15 @@ export interface DeleteProfilesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipInput { +export interface DeleteEmbeddingChunkInput { clientMutationId?: string; id: string; } -export interface DeleteEmbeddingChunkInput { +export interface DeleteForeignKeyConstraintInput { clientMutationId?: string; id: string; } -export interface DeleteForeignKeyConstraintInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } @@ -19882,11 +20533,11 @@ export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteStorageModuleInput { +export interface DeleteMembershipsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipsModuleInput { +export interface DeleteStorageModuleInput { clientMutationId?: string; id: string; } @@ -19924,6 +20575,13 @@ export interface GetAllConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; @@ -19938,13 +20596,6 @@ export interface OrgPermissionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `DefaultIdsModule` values. */ export interface DefaultIdsModuleConnection { nodes: DefaultIdsModule[]; @@ -19952,13 +20603,6 @@ export interface DefaultIdsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RoleType` values. */ -export interface RoleTypeConnection { - nodes: RoleType[]; - edges: RoleTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppLimitCreditRedemption` values. */ export interface AppLimitCreditRedemptionConnection { nodes: AppLimitCreditRedemption[]; @@ -20029,10 +20673,17 @@ export interface StoreConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `EncryptedSecretsModule` values. */ -export interface EncryptedSecretsModuleConnection { - nodes: EncryptedSecretsModule[]; - edges: EncryptedSecretsModuleEdge[]; +/** A connection to a list of `ConfigSecretsOrgModule` values. */ +export interface ConfigSecretsOrgModuleConnection { + nodes: ConfigSecretsOrgModule[]; + edges: ConfigSecretsOrgModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `ConfigSecretsUserModule` values. */ +export interface ConfigSecretsUserModuleConnection { + nodes: ConfigSecretsUserModule[]; + edges: ConfigSecretsUserModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20071,10 +20722,10 @@ export interface SiteModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCode` values. */ -export interface AppLimitCreditCodeConnection { - nodes: AppLimitCreditCode[]; - edges: AppLimitCreditCodeEdge[]; +/** A connection to a list of `RoleType` values. */ +export interface RoleTypeConnection { + nodes: RoleType[]; + edges: RoleTypeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20134,41 +20785,6 @@ export interface OrgPermissionDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCapsDefault` values. */ -export interface AppLimitCapsDefaultConnection { - nodes: AppLimitCapsDefault[]; - edges: AppLimitCapsDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitCapsDefault` values. */ -export interface OrgLimitCapsDefaultConnection { - nodes: OrgLimitCapsDefault[]; - edges: OrgLimitCapsDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppLimitCap` values. */ -export interface AppLimitCapConnection { - nodes: AppLimitCap[]; - edges: AppLimitCapEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitCap` values. */ -export interface OrgLimitCapConnection { - nodes: OrgLimitCap[]; - edges: OrgLimitCapEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MembershipType` values. */ -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `MigrateFile` values. */ export interface MigrateFileConnection { nodes: MigrateFile[]; @@ -20239,6 +20855,13 @@ export interface WebauthnCredentialsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppMembershipDefault` values. */ +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgAdminGrant` values. */ export interface OrgAdminGrantConnection { nodes: OrgAdminGrant[]; @@ -20246,6 +20869,13 @@ export interface OrgAdminGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgMembershipDefault` values. */ +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgOwnerGrant` values. */ export interface OrgOwnerGrantConnection { nodes: OrgOwnerGrant[]; @@ -20260,31 +20890,31 @@ export interface NodeTypeRegistryConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitDefault` values. */ -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; +/** A connection to a list of `AppLimitCapsDefault` values. */ +export interface AppLimitCapsDefaultConnection { + nodes: AppLimitCapsDefault[]; + edges: AppLimitCapsDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitDefault` values. */ -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; +/** A connection to a list of `OrgLimitCapsDefault` values. */ +export interface OrgLimitCapsDefaultConnection { + nodes: OrgLimitCapsDefault[]; + edges: OrgLimitCapsDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCreditCodeItem` values. */ -export interface AppLimitCreditCodeItemConnection { - nodes: AppLimitCreditCodeItem[]; - edges: AppLimitCreditCodeItemEdge[]; +/** A connection to a list of `AppLimitCap` values. */ +export interface AppLimitCapConnection { + nodes: AppLimitCap[]; + edges: AppLimitCapEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitWarning` values. */ -export interface AppLimitWarningConnection { - nodes: AppLimitWarning[]; - edges: AppLimitWarningEdge[]; +/** A connection to a list of `OrgLimitCap` values. */ +export interface OrgLimitCapConnection { + nodes: OrgLimitCap[]; + edges: OrgLimitCapEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20309,6 +20939,13 @@ export interface CryptoAddressesModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgChartEdge` values. */ +export interface OrgChartEdgeConnection { + nodes: OrgChartEdge[]; + edges: OrgChartEdgeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `CryptoAddress` values. */ export interface CryptoAddressConnection { nodes: CryptoAddress[]; @@ -20316,38 +20953,38 @@ export interface CryptoAddressConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AgentMessage` values. */ -export interface AgentMessageConnection { - nodes: AgentMessage[]; - edges: AgentMessageEdge[]; +/** A connection to a list of `AppLimitCreditCodeItem` values. */ +export interface AppLimitCreditCodeItemConnection { + nodes: AppLimitCreditCodeItem[]; + edges: AppLimitCreditCodeItemEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitCredit` values. */ -export interface AppLimitCreditConnection { - nodes: AppLimitCredit[]; - edges: AppLimitCreditEdge[]; +/** A connection to a list of `AppLimitDefault` values. */ +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitWarning` values. */ -export interface OrgLimitWarningConnection { - nodes: OrgLimitWarning[]; - edges: OrgLimitWarningEdge[]; +/** A connection to a list of `OrgLimitDefault` values. */ +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitCredit` values. */ -export interface OrgLimitCreditConnection { - nodes: OrgLimitCredit[]; - edges: OrgLimitCreditEdge[]; +/** A connection to a list of `AppLimitCreditCode` values. */ +export interface AppLimitCreditCodeConnection { + nodes: AppLimitCreditCode[]; + edges: AppLimitCreditCodeEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SiteMetadatum` values. */ -export interface SiteMetadatumConnection { - nodes: SiteMetadatum[]; - edges: SiteMetadatumEdge[]; +/** A connection to a list of `AppLimitWarning` values. */ +export interface AppLimitWarningConnection { + nodes: AppLimitWarning[]; + edges: AppLimitWarningEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20372,6 +21009,13 @@ export interface CommitConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SiteMetadatum` values. */ +export interface SiteMetadatumConnection { + nodes: SiteMetadatum[]; + edges: SiteMetadatumEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PubkeySetting` values. */ export interface PubkeySettingConnection { nodes: PubkeySetting[]; @@ -20400,10 +21044,17 @@ export interface PhoneNumberConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `UsageSnapshot` values. */ -export interface UsageSnapshotConnection { - nodes: UsageSnapshot[]; - edges: UsageSnapshotEdge[]; +/** A connection to a list of `AppLimitCredit` values. */ +export interface AppLimitCreditConnection { + nodes: AppLimitCredit[]; + edges: AppLimitCreditEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitCredit` values. */ +export interface OrgLimitCreditConnection { + nodes: OrgLimitCredit[]; + edges: OrgLimitCreditEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20414,24 +21065,17 @@ export interface AppClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppMembershipDefault` values. */ -export interface AppMembershipDefaultConnection { - nodes: AppMembershipDefault[]; - edges: AppMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembershipDefault` values. */ -export interface OrgMembershipDefaultConnection { - nodes: OrgMembershipDefault[]; - edges: OrgMembershipDefaultEdge[]; +/** A connection to a list of `OrgLimitWarning` values. */ +export interface OrgLimitWarningConnection { + nodes: OrgLimitWarning[]; + edges: OrgLimitWarningEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AuditLog` values. */ -export interface AuditLogConnection { - nodes: AuditLog[]; - edges: AuditLogEdge[]; +/** A connection to a list of `MembershipType` values. */ +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20449,27 +21093,6 @@ export interface RlsSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AgentTask` values. */ -export interface AgentTaskConnection { - nodes: AgentTask[]; - edges: AgentTaskEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AgentThread` values. */ -export interface AgentThreadConnection { - nodes: AgentThread[]; - edges: AgentThreadEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Email` values. */ -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppGrant` values. */ export interface AppGrantConnection { nodes: AppGrant[]; @@ -20484,31 +21107,10 @@ export interface OrgClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitEvent` values. */ -export interface AppLimitEventConnection { - nodes: AppLimitEvent[]; - edges: AppLimitEventEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgLimitEvent` values. */ -export interface OrgLimitEventConnection { - nodes: OrgLimitEvent[]; - edges: OrgLimitEventEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgChartEdge` values. */ -export interface OrgChartEdgeConnection { - nodes: OrgChartEdge[]; - edges: OrgChartEdgeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Partition` values. */ -export interface PartitionConnection { - nodes: Partition[]; - edges: PartitionEdge[]; +/** A connection to a list of `AuditLogAuth` values. */ +export interface AuditLogAuthConnection { + nodes: AuditLogAuth[]; + edges: AuditLogAuthEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20533,6 +21135,13 @@ export interface SessionsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgMemberProfile` values. */ +export interface OrgMemberProfileConnection { + nodes: OrgMemberProfile[]; + edges: OrgMemberProfileEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgGrant` values. */ export interface OrgGrantConnection { nodes: OrgGrant[]; @@ -20540,6 +21149,20 @@ export interface OrgGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Partition` values. */ +export interface PartitionConnection { + nodes: Partition[]; + edges: PartitionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AgentChatModule` values. */ +export interface AgentChatModuleConnection { + nodes: AgentChatModule[]; + edges: AgentChatModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Blueprint` values. */ export interface BlueprintConnection { nodes: Blueprint[]; @@ -20575,17 +21198,10 @@ export interface PlansModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimit` values. */ -export interface AppLimitConnection { - nodes: AppLimit[]; - edges: AppLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMemberProfile` values. */ -export interface OrgMemberProfileConnection { - nodes: OrgMemberProfile[]; - edges: OrgMemberProfileEdge[]; +/** A connection to a list of `Email` values. */ +export interface EmailConnection { + nodes: Email[]; + edges: EmailEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20596,6 +21212,20 @@ export interface SqlActionConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLimitEvent` values. */ +export interface AppLimitEventConnection { + nodes: AppLimitEvent[]; + edges: AppLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitEvent` values. */ +export interface OrgLimitEventConnection { + nodes: OrgLimitEvent[]; + edges: OrgLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `DatabaseTransfer` values. */ export interface DatabaseTransferConnection { nodes: DatabaseTransfer[]; @@ -20610,13 +21240,6 @@ export interface DatabaseSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `BillingModule` values. */ -export interface BillingModuleConnection { - nodes: BillingModule[]; - edges: BillingModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `CryptoAuthModule` values. */ export interface CryptoAuthModuleConnection { nodes: CryptoAuthModule[]; @@ -20638,6 +21261,13 @@ export interface InvitesModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgMembershipSetting` values. */ +export interface OrgMembershipSettingConnection { + nodes: OrgMembershipSetting[]; + edges: OrgMembershipSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `SecureTableProvision` values. */ export interface SecureTableProvisionConnection { nodes: SecureTableProvision[]; @@ -20645,31 +21275,45 @@ export interface SecureTableProvisionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitAggregate` values. */ -export interface OrgLimitAggregateConnection { - nodes: OrgLimitAggregate[]; - edges: OrgLimitAggregateEdge[]; +/** A connection to a list of `AppLimit` values. */ +export interface AppLimitConnection { + nodes: AppLimit[]; + edges: AppLimitEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimit` values. */ -export interface OrgLimitConnection { - nodes: OrgLimit[]; - edges: OrgLimitEdge[]; +/** A connection to a list of `ApiSetting` values. */ +export interface ApiSettingConnection { + nodes: ApiSetting[]; + edges: ApiSettingEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AstMigration` values. */ -export interface AstMigrationConnection { - nodes: AstMigration[]; - edges: AstMigrationEdge[]; +/** A connection to a list of `ComputeLogModule` values. */ +export interface ComputeLogModuleConnection { + nodes: ComputeLogModule[]; + edges: ComputeLogModuleEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ApiSetting` values. */ -export interface ApiSettingConnection { - nodes: ApiSetting[]; - edges: ApiSettingEdge[]; +/** A connection to a list of `InferenceLogModule` values. */ +export interface InferenceLogModuleConnection { + nodes: InferenceLogModule[]; + edges: InferenceLogModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `StorageLogModule` values. */ +export interface StorageLogModuleConnection { + nodes: StorageLogModule[]; + edges: StorageLogModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `TransferLogModule` values. */ +export interface TransferLogModuleConnection { + nodes: TransferLogModule[]; + edges: TransferLogModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20680,10 +21324,17 @@ export interface EnumConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `User` values. */ -export interface UserConnection { - nodes: User[]; - edges: UserEdge[]; +/** A connection to a list of `OrgLimitAggregate` values. */ +export interface OrgLimitAggregateConnection { + nodes: OrgLimitAggregate[]; + edges: OrgLimitAggregateEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimit` values. */ +export interface OrgLimitConnection { + nodes: OrgLimit[]; + edges: OrgLimitEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20701,17 +21352,17 @@ export interface WebauthnAuthModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppInvite` values. */ -export interface AppInviteConnection { - nodes: AppInvite[]; - edges: AppInviteEdge[]; +/** A connection to a list of `AppMembership` values. */ +export interface AppMembershipConnection { + nodes: AppMembership[]; + edges: AppMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembershipSetting` values. */ -export interface OrgMembershipSettingConnection { - nodes: OrgMembershipSetting[]; - edges: OrgMembershipSettingEdge[]; +/** A connection to a list of `User` values. */ +export interface UserConnection { + nodes: User[]; + edges: UserEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20729,6 +21380,13 @@ export interface SiteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `DbUsageModule` values. */ +export interface DbUsageModuleConnection { + nodes: DbUsageModule[]; + edges: DbUsageModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `NotificationsModule` values. */ export interface NotificationsModuleConnection { nodes: NotificationsModule[]; @@ -20743,6 +21401,13 @@ export interface PermissionsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AstMigration` values. */ +export interface AstMigrationConnection { + nodes: AstMigration[]; + edges: AstMigrationEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `WebauthnCredential` values. */ export interface WebauthnCredentialConnection { nodes: WebauthnCredential[]; @@ -20799,10 +21464,17 @@ export interface WebauthnSettingConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppMembership` values. */ -export interface AppMembershipConnection { - nodes: AppMembership[]; - edges: AppMembershipEdge[]; +/** A connection to a list of `BillingModule` values. */ +export interface BillingModuleConnection { + nodes: BillingModule[]; + edges: BillingModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMembership` values. */ +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20820,10 +21492,10 @@ export interface IndexConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgInvite` values. */ -export interface OrgInviteConnection { - nodes: OrgInvite[]; - edges: OrgInviteEdge[]; +/** A connection to a list of `AppInvite` values. */ +export interface AppInviteConnection { + nodes: AppInvite[]; + edges: AppInviteEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20855,13 +21527,6 @@ export interface ProfilesModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembership` values. */ -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `EmbeddingChunk` values. */ export interface EmbeddingChunkConnection { nodes: EmbeddingChunk[]; @@ -20876,6 +21541,13 @@ export interface ForeignKeyConstraintConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgInvite` values. */ +export interface OrgInviteConnection { + nodes: OrgInvite[]; + edges: OrgInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `RelationProvision` values. */ export interface RelationProvisionConnection { nodes: RelationProvision[]; @@ -20918,13 +21590,6 @@ export interface LimitsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `StorageModule` values. */ -export interface StorageModuleConnection { - nodes: StorageModule[]; - edges: StorageModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `MembershipsModule` values. */ export interface MembershipsModuleConnection { nodes: MembershipsModule[]; @@ -20932,6 +21597,13 @@ export interface MembershipsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `StorageModule` values. */ +export interface StorageModuleConnection { + nodes: StorageModule[]; + edges: StorageModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `EventsModule` values. */ export interface EventsModuleConnection { nodes: EventsModule[]; @@ -21035,10 +21707,22 @@ export interface ProvisionSpatialRelationPayload { clientMutationId?: string | null; result?: string | null; } +export interface SignInCrossOriginPayload { + clientMutationId?: string | null; + result?: SignInCrossOriginRecord | null; +} export interface BootstrapUserPayload { clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; } +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -21087,10 +21771,6 @@ export interface ProvisionRelationPayload { export interface ApplyRlsPayload { clientMutationId?: string | null; } -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} export interface CreateUserDatabasePayload { clientMutationId?: string | null; result?: string | null; @@ -21101,43 +21781,29 @@ export interface ExtendTokenExpiresPayload { } export interface CreateApiKeyPayload { clientMutationId?: string | null; - result?: CreateApiKeyRecord | null; -} -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export interface SignUpPayload { - clientMutationId?: string | null; - result?: SignUpRecord | null; + result?: CreateApiKeyRecord | null; } export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; result?: string | null; } -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} export interface ProvisionTablePayload { clientMutationId?: string | null; result?: ProvisionTableRecord[] | null; } +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} export interface CreateDefaultIdsModulePayload { clientMutationId?: string | null; /** The `DefaultIdsModule` that was created by this mutation. */ defaultIdsModule?: DefaultIdsModule | null; defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} export interface CreateAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was created by this mutation. */ @@ -21197,11 +21863,17 @@ export interface CreateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface CreateEncryptedSecretsModulePayload { +export interface CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export interface CreateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was created by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } export interface CreateMembershipTypesModulePayload { clientMutationId?: string | null; @@ -21233,11 +21905,11 @@ export interface CreateSiteModulePayload { siteModule?: SiteModule | null; siteModuleEdge?: SiteModuleEdge | null; } -export interface CreateAppLimitCreditCodePayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } export interface CreateSchemaGrantPayload { clientMutationId?: string | null; @@ -21287,48 +21959,6 @@ export interface CreateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface CreateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was created by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export interface CreateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was created by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export interface CreateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was created by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface CreateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was created by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} export interface CreateMigrateFilePayload { clientMutationId?: string | null; /** The `MigrateFile` that was created by this mutation. */ @@ -21388,12 +22018,24 @@ export interface CreateWebauthnCredentialsModulePayload { webauthnCredentialsModule?: WebauthnCredentialsModule | null; webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was created by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; /** The `OrgOwnerGrant` that was created by this mutation. */ @@ -21406,29 +22048,29 @@ export interface CreateNodeTypeRegistryPayload { nodeTypeRegistry?: NodeTypeRegistry | null; nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } -export interface CreateAppLimitDefaultPayload { +export interface CreateAppLimitCapsDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppLimitCapsDefault` that was created by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; } -export interface CreateOrgLimitDefaultPayload { +export interface CreateOrgLimitCapsDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgLimitCapsDefault` that was created by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; } -export interface CreateAppLimitCreditCodeItemPayload { +export interface CreateAppLimitCapPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was created by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppLimitCap` that was created by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; } -export interface CreateAppLimitWarningPayload { +export interface CreateOrgLimitCapPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was created by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgLimitCap` that was created by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; @@ -21447,35 +22089,35 @@ export interface CreateCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } +export interface CreateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface CreateCryptoAddressPayload { clientMutationId?: string | null; /** The `CryptoAddress` that was created by this mutation. */ cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface CreateAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export interface CreateAppLimitCreditPayload { +export interface CreateAppLimitCreditCodeItemPayload { clientMutationId?: string | null; - /** The `AppLimitCredit` that was created by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; + /** The `AppLimitCreditCodeItem` that was created by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; } -export interface CreateOrgLimitWarningPayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export interface CreateOrgLimitCreditPayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was created by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface CreateObjectPayload { clientMutationId?: string | null; @@ -21483,11 +22125,29 @@ export interface CreateObjectPayload { object?: Object | null; objectEdge?: ObjectEdge | null; } -export interface CreateSiteMetadatumPayload { +export interface CreateAppPermissionPayload { clientMutationId?: string | null; - /** The `SiteMetadatum` that was created by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export interface CreateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was created by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; } export interface CreateFullTextSearchPayload { clientMutationId?: string | null; @@ -21507,6 +22167,12 @@ export interface CreateCommitPayload { commit?: Commit | null; commitEdge?: CommitEdge | null; } +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was created by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} export interface CreatePubkeySettingPayload { clientMutationId?: string | null; /** The `PubkeySetting` that was created by this mutation. */ @@ -21531,11 +22197,17 @@ export interface CreatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } -export interface CreateUsageSnapshotPayload { +export interface CreateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was created by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export interface CreateOrgLimitCreditPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was created by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `OrgLimitCredit` that was created by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; } export interface CreateAppClaimedInvitePayload { clientMutationId?: string | null; @@ -21543,23 +22215,17 @@ export interface CreateAppClaimedInvitePayload { appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface CreateOrgMembershipDefaultPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface CreateAuditLogPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } export interface CreateDomainPayload { clientMutationId?: string | null; @@ -21573,24 +22239,6 @@ export interface CreateRlsSettingPayload { rlsSetting?: RlsSetting | null; rlsSettingEdge?: RlsSettingEdge | null; } -export interface CreateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was created by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export interface CreateAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was created by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface CreateAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was created by this mutation. */ @@ -21603,27 +22251,11 @@ export interface CreateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export interface CreateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface CreatePartitionPayload { +export interface CreateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `Partition` that was created by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; + /** The `AuditLogAuth` that was created by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } export interface CreateBlueprintConstructionPayload { clientMutationId?: string | null; @@ -21643,12 +22275,30 @@ export interface CreateSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } +export interface CreateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface CreatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was created by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export interface CreateAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was created by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} export interface CreateBlueprintPayload { clientMutationId?: string | null; /** The `Blueprint` that was created by this mutation. */ @@ -21679,23 +22329,29 @@ export interface CreatePlansModulePayload { plansModule?: PlansModule | null; plansModuleEdge?: PlansModuleEdge | null; } -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface CreateOrgMemberProfilePayload { +export interface CreateEmailPayload { clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } export interface CreateSqlActionPayload { clientMutationId?: string | null; /** The `SqlAction` that was created by this mutation. */ sqlAction?: SqlAction | null; } +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} export interface CreateDatabaseTransferPayload { clientMutationId?: string | null; /** The `DatabaseTransfer` that was created by this mutation. */ @@ -21708,12 +22364,6 @@ export interface CreateDatabaseSettingPayload { databaseSetting?: DatabaseSetting | null; databaseSettingEdge?: DatabaseSettingEdge | null; } -export interface CreateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} export interface CreateCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was created by this mutation. */ @@ -21732,28 +22382,23 @@ export interface CreateInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was created by this mutation. */ secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface CreateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was created by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface CreateAstMigrationPayload { +export interface CreateAppLimitPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } export interface CreateApiSettingPayload { clientMutationId?: string | null; @@ -21761,17 +22406,47 @@ export interface CreateApiSettingPayload { apiSetting?: ApiSetting | null; apiSettingEdge?: ApiSettingEdge | null; } +export interface CreateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was created by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export interface CreateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was created by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export interface CreateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was created by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} export interface CreateEnumPayload { clientMutationId?: string | null; /** The `Enum` that was created by this mutation. */ enum?: Enum | null; enumEdge?: EnumEdge | null; } -export interface CreateUserPayload { +export interface CreateOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `User` that was created by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } export interface CreateViewPayload { clientMutationId?: string | null; @@ -21785,17 +22460,17 @@ export interface CreateWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface CreateAppInvitePayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export interface CreateOrgMembershipSettingPayload { +export interface CreateUserPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `User` that was created by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface CreateAppPayload { clientMutationId?: string | null; @@ -21809,6 +22484,12 @@ export interface CreateSitePayload { site?: Site | null; siteEdge?: SiteEdge | null; } +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} export interface CreateNotificationsModulePayload { clientMutationId?: string | null; /** The `NotificationsModule` that was created by this mutation. */ @@ -21821,6 +22502,11 @@ export interface CreatePermissionsModulePayload { permissionsModule?: PermissionsModule | null; permissionsModuleEdge?: PermissionsModuleEdge | null; } +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; +} export interface CreateWebauthnCredentialPayload { clientMutationId?: string | null; /** The `WebauthnCredential` that was created by this mutation. */ @@ -21869,11 +22555,17 @@ export interface CreateWebauthnSettingPayload { webauthnSetting?: WebauthnSetting | null; webauthnSettingEdge?: WebauthnSettingEdge | null; } -export interface CreateAppMembershipPayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export interface CreateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } export interface CreateSchemaPayload { clientMutationId?: string | null; @@ -21887,11 +22579,11 @@ export interface CreateIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface CreateOrgInvitePayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `OrgInvite` that was created by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; @@ -21917,12 +22609,6 @@ export interface CreateProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface CreateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was created by this mutation. */ @@ -21935,6 +22621,12 @@ export interface CreateForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface CreateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was created by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface CreateRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was created by this mutation. */ @@ -21971,18 +22663,18 @@ export interface CreateLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface CreateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was created by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} export interface CreateMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was created by this mutation. */ membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface CreateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was created by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} export interface CreateEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was created by this mutation. */ @@ -21995,12 +22687,6 @@ export interface UpdateDefaultIdsModulePayload { defaultIdsModule?: DefaultIdsModule | null; defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} export interface UpdateAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was updated by this mutation. */ @@ -22055,11 +22741,17 @@ export interface UpdateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface UpdateEncryptedSecretsModulePayload { +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export interface UpdateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was updated by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } export interface UpdateMembershipTypesModulePayload { clientMutationId?: string | null; @@ -22091,11 +22783,11 @@ export interface UpdateSiteModulePayload { siteModule?: SiteModule | null; siteModuleEdge?: SiteModuleEdge | null; } -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } export interface UpdateSchemaGrantPayload { clientMutationId?: string | null; @@ -22145,48 +22837,6 @@ export interface UpdateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface UpdateAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was updated by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export interface UpdateOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was updated by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export interface UpdateAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was updated by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} export interface UpdateDefaultPrivilegePayload { clientMutationId?: string | null; /** The `DefaultPrivilege` that was updated by this mutation. */ @@ -22241,12 +22891,24 @@ export interface UpdateWebauthnCredentialsModulePayload { webauthnCredentialsModule?: WebauthnCredentialsModule | null; webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was updated by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; /** The `OrgOwnerGrant` that was updated by this mutation. */ @@ -22259,29 +22921,29 @@ export interface UpdateNodeTypeRegistryPayload { nodeTypeRegistry?: NodeTypeRegistry | null; nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } -export interface UpdateAppLimitDefaultPayload { +export interface UpdateAppLimitCapsDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppLimitCapsDefault` that was updated by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; } -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateOrgLimitCapsDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgLimitCapsDefault` that was updated by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; } -export interface UpdateAppLimitCreditCodeItemPayload { +export interface UpdateAppLimitCapPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppLimitCap` that was updated by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; } -export interface UpdateAppLimitWarningPayload { +export interface UpdateOrgLimitCapPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was updated by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } export interface UpdateDatabasePayload { clientMutationId?: string | null; @@ -22295,35 +22957,35 @@ export interface UpdateCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface UpdateCryptoAddressPayload { clientMutationId?: string | null; /** The `CryptoAddress` that was updated by this mutation. */ cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface UpdateAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was updated by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export interface UpdateAppLimitCreditPayload { - clientMutationId?: string | null; - /** The `AppLimitCredit` that was updated by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; +export interface UpdateAppLimitCreditCodeItemPayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCodeItem` that was updated by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; } -export interface UpdateOrgLimitWarningPayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export interface UpdateOrgLimitCreditPayload { +export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was updated by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface UpdateObjectPayload { clientMutationId?: string | null; @@ -22331,11 +22993,29 @@ export interface UpdateObjectPayload { object?: Object | null; objectEdge?: ObjectEdge | null; } -export interface UpdateSiteMetadatumPayload { +export interface UpdateAppPermissionPayload { clientMutationId?: string | null; - /** The `SiteMetadatum` that was updated by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export interface UpdateAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was updated by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; } export interface UpdateFullTextSearchPayload { clientMutationId?: string | null; @@ -22355,6 +23035,12 @@ export interface UpdateCommitPayload { commit?: Commit | null; commitEdge?: CommitEdge | null; } +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was updated by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} export interface UpdatePubkeySettingPayload { clientMutationId?: string | null; /** The `PubkeySetting` that was updated by this mutation. */ @@ -22379,11 +23065,17 @@ export interface UpdatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } -export interface UpdateUsageSnapshotPayload { +export interface UpdateAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was updated by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export interface UpdateOrgLimitCreditPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was updated by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `OrgLimitCredit` that was updated by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; } export interface UpdateAppClaimedInvitePayload { clientMutationId?: string | null; @@ -22391,23 +23083,17 @@ export interface UpdateAppClaimedInvitePayload { appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface UpdateAuditLogPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } export interface UpdateDomainPayload { clientMutationId?: string | null; @@ -22421,24 +23107,6 @@ export interface UpdateRlsSettingPayload { rlsSetting?: RlsSetting | null; rlsSettingEdge?: RlsSettingEdge | null; } -export interface UpdateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was updated by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export interface UpdateAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was updated by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface UpdateAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was updated by this mutation. */ @@ -22451,17 +23119,11 @@ export interface UpdateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } -export interface UpdateOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface UpdatePartitionPayload { +export interface UpdateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `Partition` that was updated by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; + /** The `AuditLogAuth` that was updated by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } export interface UpdateBlueprintConstructionPayload { clientMutationId?: string | null; @@ -22481,12 +23143,30 @@ export interface UpdateSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } +export interface UpdateOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} export interface UpdateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was updated by this mutation. */ orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface UpdatePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was updated by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export interface UpdateAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was updated by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} export interface UpdateBlueprintPayload { clientMutationId?: string | null; /** The `Blueprint` that was updated by this mutation. */ @@ -22517,17 +23197,23 @@ export interface UpdatePlansModulePayload { plansModule?: PlansModule | null; plansModuleEdge?: PlansModuleEdge | null; } -export interface UpdateAppLimitPayload { +export interface UpdateEmailPayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export interface UpdateOrgMemberProfilePayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } export interface UpdateDatabaseTransferPayload { clientMutationId?: string | null; @@ -22541,12 +23227,6 @@ export interface UpdateDatabaseSettingPayload { databaseSetting?: DatabaseSetting | null; databaseSettingEdge?: DatabaseSettingEdge | null; } -export interface UpdateBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} export interface UpdateCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was updated by this mutation. */ @@ -22565,23 +23245,23 @@ export interface UpdateInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was updated by this mutation. */ secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface UpdateOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was updated by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface UpdateOrgLimitPayload { +export interface UpdateAppLimitPayload { clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } export interface UpdateApiSettingPayload { clientMutationId?: string | null; @@ -22589,17 +23269,47 @@ export interface UpdateApiSettingPayload { apiSetting?: ApiSetting | null; apiSettingEdge?: ApiSettingEdge | null; } +export interface UpdateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was updated by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export interface UpdateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was updated by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export interface UpdateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was updated by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} export interface UpdateEnumPayload { clientMutationId?: string | null; /** The `Enum` that was updated by this mutation. */ enum?: Enum | null; enumEdge?: EnumEdge | null; } -export interface UpdateUserPayload { +export interface UpdateOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `User` that was updated by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } export interface UpdateViewPayload { clientMutationId?: string | null; @@ -22613,17 +23323,17 @@ export interface UpdateWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface UpdateAppInvitePayload { +export interface UpdateAppMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateUserPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `User` that was updated by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface UpdateAppPayload { clientMutationId?: string | null; @@ -22637,6 +23347,12 @@ export interface UpdateSitePayload { site?: Site | null; siteEdge?: SiteEdge | null; } +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} export interface UpdateNotificationsModulePayload { clientMutationId?: string | null; /** The `NotificationsModule` that was updated by this mutation. */ @@ -22697,11 +23413,17 @@ export interface UpdateWebauthnSettingPayload { webauthnSetting?: WebauthnSetting | null; webauthnSettingEdge?: WebauthnSettingEdge | null; } -export interface UpdateAppMembershipPayload { +export interface UpdateBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } export interface UpdateSchemaPayload { clientMutationId?: string | null; @@ -22715,11 +23437,11 @@ export interface UpdateIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface UpdateOrgInvitePayload { +export interface UpdateAppInvitePayload { clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface UpdateBillingProviderModulePayload { clientMutationId?: string | null; @@ -22745,12 +23467,6 @@ export interface UpdateProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface UpdateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was updated by this mutation. */ @@ -22763,6 +23479,12 @@ export interface UpdateForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface UpdateRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was updated by this mutation. */ @@ -22799,18 +23521,18 @@ export interface UpdateLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface UpdateStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was updated by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} export interface UpdateMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was updated by this mutation. */ membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface UpdateStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was updated by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} export interface UpdateEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was updated by this mutation. */ @@ -22823,12 +23545,6 @@ export interface DeleteDefaultIdsModulePayload { defaultIdsModule?: DefaultIdsModule | null; defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} export interface DeleteAppLimitCreditRedemptionPayload { clientMutationId?: string | null; /** The `AppLimitCreditRedemption` that was deleted by this mutation. */ @@ -22883,11 +23599,17 @@ export interface DeleteStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface DeleteEncryptedSecretsModulePayload { +export interface DeleteConfigSecretsOrgModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was deleted by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export interface DeleteConfigSecretsUserModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } export interface DeleteMembershipTypesModulePayload { clientMutationId?: string | null; @@ -22919,11 +23641,11 @@ export interface DeleteSiteModulePayload { siteModule?: SiteModule | null; siteModuleEdge?: SiteModuleEdge | null; } -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } export interface DeleteSchemaGrantPayload { clientMutationId?: string | null; @@ -22973,48 +23695,6 @@ export interface DeleteOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface DeleteAppLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `AppLimitCapsDefault` that was deleted by this mutation. */ - appLimitCapsDefault?: AppLimitCapsDefault | null; - appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; -} -export interface DeleteOrgLimitCapsDefaultPayload { - clientMutationId?: string | null; - /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ - orgLimitCapsDefault?: OrgLimitCapsDefault | null; - orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; -} -export interface DeleteAppLimitCapPayload { - clientMutationId?: string | null; - /** The `AppLimitCap` that was deleted by this mutation. */ - appLimitCap?: AppLimitCap | null; - appLimitCapEdge?: AppLimitCapEdge | null; -} -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} export interface DeleteDefaultPrivilegePayload { clientMutationId?: string | null; /** The `DefaultPrivilege` that was deleted by this mutation. */ @@ -23069,12 +23749,24 @@ export interface DeleteWebauthnCredentialsModulePayload { webauthnCredentialsModule?: WebauthnCredentialsModule | null; webauthnCredentialsModuleEdge?: WebauthnCredentialsModuleEdge | null; } +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was deleted by this mutation. */ orgAdminGrant?: OrgAdminGrant | null; orgAdminGrantEdge?: OrgAdminGrantEdge | null; } +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; /** The `OrgOwnerGrant` that was deleted by this mutation. */ @@ -23087,29 +23779,29 @@ export interface DeleteNodeTypeRegistryPayload { nodeTypeRegistry?: NodeTypeRegistry | null; nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; } -export interface DeleteAppLimitDefaultPayload { +export interface DeleteAppLimitCapsDefaultPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppLimitCapsDefault` that was deleted by this mutation. */ + appLimitCapsDefault?: AppLimitCapsDefault | null; + appLimitCapsDefaultEdge?: AppLimitCapsDefaultEdge | null; } -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteOrgLimitCapsDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgLimitCapsDefault` that was deleted by this mutation. */ + orgLimitCapsDefault?: OrgLimitCapsDefault | null; + orgLimitCapsDefaultEdge?: OrgLimitCapsDefaultEdge | null; } -export interface DeleteAppLimitCreditCodeItemPayload { +export interface DeleteAppLimitCapPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ - appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; - appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; + /** The `AppLimitCap` that was deleted by this mutation. */ + appLimitCap?: AppLimitCap | null; + appLimitCapEdge?: AppLimitCapEdge | null; } -export interface DeleteAppLimitWarningPayload { +export interface DeleteOrgLimitCapPayload { clientMutationId?: string | null; - /** The `AppLimitWarning` that was deleted by this mutation. */ - appLimitWarning?: AppLimitWarning | null; - appLimitWarningEdge?: AppLimitWarningEdge | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } export interface DeleteDatabasePayload { clientMutationId?: string | null; @@ -23123,35 +23815,35 @@ export interface DeleteCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} export interface DeleteCryptoAddressPayload { clientMutationId?: string | null; /** The `CryptoAddress` that was deleted by this mutation. */ cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface DeleteAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was deleted by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export interface DeleteAppLimitCreditPayload { +export interface DeleteAppLimitCreditCodeItemPayload { clientMutationId?: string | null; - /** The `AppLimitCredit` that was deleted by this mutation. */ - appLimitCredit?: AppLimitCredit | null; - appLimitCreditEdge?: AppLimitCreditEdge | null; + /** The `AppLimitCreditCodeItem` that was deleted by this mutation. */ + appLimitCreditCodeItem?: AppLimitCreditCodeItem | null; + appLimitCreditCodeItemEdge?: AppLimitCreditCodeItemEdge | null; } -export interface DeleteOrgLimitWarningPayload { +export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export interface DeleteOrgLimitCreditPayload { +export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitCredit` that was deleted by this mutation. */ - orgLimitCredit?: OrgLimitCredit | null; - orgLimitCreditEdge?: OrgLimitCreditEdge | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface DeleteObjectPayload { clientMutationId?: string | null; @@ -23159,11 +23851,29 @@ export interface DeleteObjectPayload { object?: Object | null; objectEdge?: ObjectEdge | null; } -export interface DeleteSiteMetadatumPayload { +export interface DeleteAppPermissionPayload { clientMutationId?: string | null; - /** The `SiteMetadatum` that was deleted by this mutation. */ - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export interface DeleteAppLimitWarningPayload { + clientMutationId?: string | null; + /** The `AppLimitWarning` that was deleted by this mutation. */ + appLimitWarning?: AppLimitWarning | null; + appLimitWarningEdge?: AppLimitWarningEdge | null; } export interface DeleteFullTextSearchPayload { clientMutationId?: string | null; @@ -23183,6 +23893,12 @@ export interface DeleteCommitPayload { commit?: Commit | null; commitEdge?: CommitEdge | null; } +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + /** The `SiteMetadatum` that was deleted by this mutation. */ + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} export interface DeletePubkeySettingPayload { clientMutationId?: string | null; /** The `PubkeySetting` that was deleted by this mutation. */ @@ -23207,11 +23923,17 @@ export interface DeletePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } -export interface DeleteUsageSnapshotPayload { +export interface DeleteAppLimitCreditPayload { + clientMutationId?: string | null; + /** The `AppLimitCredit` that was deleted by this mutation. */ + appLimitCredit?: AppLimitCredit | null; + appLimitCreditEdge?: AppLimitCreditEdge | null; +} +export interface DeleteOrgLimitCreditPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was deleted by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `OrgLimitCredit` that was deleted by this mutation. */ + orgLimitCredit?: OrgLimitCredit | null; + orgLimitCreditEdge?: OrgLimitCreditEdge | null; } export interface DeleteAppClaimedInvitePayload { clientMutationId?: string | null; @@ -23219,23 +23941,17 @@ export interface DeleteAppClaimedInvitePayload { appClaimedInvite?: AppClaimedInvite | null; appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export interface DeleteAuditLogPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } export interface DeleteDomainPayload { clientMutationId?: string | null; @@ -23249,24 +23965,6 @@ export interface DeleteRlsSettingPayload { rlsSetting?: RlsSetting | null; rlsSettingEdge?: RlsSettingEdge | null; } -export interface DeleteAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was deleted by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export interface DeleteAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was deleted by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface DeleteAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was deleted by this mutation. */ @@ -23279,17 +23977,11 @@ export interface DeleteOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } -export interface DeleteOrgChartEdgePayload { - clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; -} -export interface DeletePartitionPayload { +export interface DeleteAuditLogAuthPayload { clientMutationId?: string | null; - /** The `Partition` that was deleted by this mutation. */ - partition?: Partition | null; - partitionEdge?: PartitionEdge | null; + /** The `AuditLogAuth` that was deleted by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } export interface DeleteBlueprintConstructionPayload { clientMutationId?: string | null; @@ -23309,12 +24001,30 @@ export interface DeleteSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } +export interface DeleteOrgMemberProfilePayload { + clientMutationId?: string | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; +} export interface DeleteOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was deleted by this mutation. */ orgGrant?: OrgGrant | null; orgGrantEdge?: OrgGrantEdge | null; } +export interface DeletePartitionPayload { + clientMutationId?: string | null; + /** The `Partition` that was deleted by this mutation. */ + partition?: Partition | null; + partitionEdge?: PartitionEdge | null; +} +export interface DeleteAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was deleted by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} export interface DeleteBlueprintPayload { clientMutationId?: string | null; /** The `Blueprint` that was deleted by this mutation. */ @@ -23345,17 +24055,23 @@ export interface DeletePlansModulePayload { plansModule?: PlansModule | null; plansModuleEdge?: PlansModuleEdge | null; } -export interface DeleteAppLimitPayload { +export interface DeleteEmailPayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export interface DeleteOrgMemberProfilePayload { +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; } export interface DeleteDatabaseTransferPayload { clientMutationId?: string | null; @@ -23369,12 +24085,6 @@ export interface DeleteDatabaseSettingPayload { databaseSetting?: DatabaseSetting | null; databaseSettingEdge?: DatabaseSettingEdge | null; } -export interface DeleteBillingModulePayload { - clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; -} export interface DeleteCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was deleted by this mutation. */ @@ -23393,23 +24103,23 @@ export interface DeleteInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was deleted by this mutation. */ secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface DeleteOrgLimitAggregatePayload { - clientMutationId?: string | null; - /** The `OrgLimitAggregate` that was deleted by this mutation. */ - orgLimitAggregate?: OrgLimitAggregate | null; - orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; -} -export interface DeleteOrgLimitPayload { +export interface DeleteAppLimitPayload { clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; } export interface DeleteApiSettingPayload { clientMutationId?: string | null; @@ -23417,17 +24127,47 @@ export interface DeleteApiSettingPayload { apiSetting?: ApiSetting | null; apiSettingEdge?: ApiSettingEdge | null; } +export interface DeleteComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was deleted by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export interface DeleteStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was deleted by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export interface DeleteTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was deleted by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} export interface DeleteEnumPayload { clientMutationId?: string | null; /** The `Enum` that was deleted by this mutation. */ enum?: Enum | null; enumEdge?: EnumEdge | null; } -export interface DeleteUserPayload { +export interface DeleteOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `User` that was deleted by this mutation. */ - user?: User | null; - userEdge?: UserEdge | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } export interface DeleteViewPayload { clientMutationId?: string | null; @@ -23441,17 +24181,17 @@ export interface DeleteWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface DeleteAppInvitePayload { +export interface DeleteAppMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteUserPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `User` that was deleted by this mutation. */ + user?: User | null; + userEdge?: UserEdge | null; } export interface DeleteAppPayload { clientMutationId?: string | null; @@ -23465,6 +24205,12 @@ export interface DeleteSitePayload { site?: Site | null; siteEdge?: SiteEdge | null; } +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} export interface DeleteNotificationsModulePayload { clientMutationId?: string | null; /** The `NotificationsModule` that was deleted by this mutation. */ @@ -23525,11 +24271,17 @@ export interface DeleteWebauthnSettingPayload { webauthnSetting?: WebauthnSetting | null; webauthnSettingEdge?: WebauthnSettingEdge | null; } -export interface DeleteAppMembershipPayload { +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } export interface DeleteSchemaPayload { clientMutationId?: string | null; @@ -23543,11 +24295,11 @@ export interface DeleteIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface DeleteOrgInvitePayload { +export interface DeleteAppInvitePayload { clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } export interface DeleteBillingProviderModulePayload { clientMutationId?: string | null; @@ -23573,12 +24325,6 @@ export interface DeleteProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} export interface DeleteEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was deleted by this mutation. */ @@ -23591,6 +24337,12 @@ export interface DeleteForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} export interface DeleteRelationProvisionPayload { clientMutationId?: string | null; /** The `RelationProvision` that was deleted by this mutation. */ @@ -23627,18 +24379,18 @@ export interface DeleteLimitsModulePayload { limitsModule?: LimitsModule | null; limitsModuleEdge?: LimitsModuleEdge | null; } -export interface DeleteStorageModulePayload { - clientMutationId?: string | null; - /** The `StorageModule` that was deleted by this mutation. */ - storageModule?: StorageModule | null; - storageModuleEdge?: StorageModuleEdge | null; -} export interface DeleteMembershipsModulePayload { clientMutationId?: string | null; /** The `MembershipsModule` that was deleted by this mutation. */ membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface DeleteStorageModulePayload { + clientMutationId?: string | null; + /** The `StorageModule` that was deleted by this mutation. */ + storageModule?: StorageModule | null; + storageModuleEdge?: StorageModuleEdge | null; +} export interface DeleteEventsModulePayload { clientMutationId?: string | null; /** The `EventsModule` that was deleted by this mutation. */ @@ -23688,6 +24440,12 @@ export interface GetAllEdge { /** The `GetAllRecord` at the end of the edge. */ node?: GetAllRecord | null; } +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -23700,24 +24458,12 @@ export interface OrgPermissionEdge { /** The `OrgPermission` at the end of the edge. */ node?: OrgPermission | null; } -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; -} /** A `DefaultIdsModule` edge in the connection. */ export interface DefaultIdsModuleEdge { cursor?: string | null; /** The `DefaultIdsModule` at the end of the edge. */ node?: DefaultIdsModule | null; } -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { - cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; -} /** A `AppLimitCreditRedemption` edge in the connection. */ export interface AppLimitCreditRedemptionEdge { cursor?: string | null; @@ -23778,11 +24524,17 @@ export interface StoreEdge { /** The `Store` at the end of the edge. */ node?: Store | null; } -/** A `EncryptedSecretsModule` edge in the connection. */ -export interface EncryptedSecretsModuleEdge { +/** A `ConfigSecretsOrgModule` edge in the connection. */ +export interface ConfigSecretsOrgModuleEdge { cursor?: string | null; - /** The `EncryptedSecretsModule` at the end of the edge. */ - node?: EncryptedSecretsModule | null; + /** The `ConfigSecretsOrgModule` at the end of the edge. */ + node?: ConfigSecretsOrgModule | null; +} +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; } /** A `MembershipTypesModule` edge in the connection. */ export interface MembershipTypesModuleEdge { @@ -23814,11 +24566,11 @@ export interface SiteModuleEdge { /** The `SiteModule` at the end of the edge. */ node?: SiteModule | null; } -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { @@ -23868,36 +24620,6 @@ export interface OrgPermissionDefaultEdge { /** The `OrgPermissionDefault` at the end of the edge. */ node?: OrgPermissionDefault | null; } -/** A `AppLimitCapsDefault` edge in the connection. */ -export interface AppLimitCapsDefaultEdge { - cursor?: string | null; - /** The `AppLimitCapsDefault` at the end of the edge. */ - node?: AppLimitCapsDefault | null; -} -/** A `OrgLimitCapsDefault` edge in the connection. */ -export interface OrgLimitCapsDefaultEdge { - cursor?: string | null; - /** The `OrgLimitCapsDefault` at the end of the edge. */ - node?: OrgLimitCapsDefault | null; -} -/** A `AppLimitCap` edge in the connection. */ -export interface AppLimitCapEdge { - cursor?: string | null; - /** The `AppLimitCap` at the end of the edge. */ - node?: AppLimitCap | null; -} -/** A `OrgLimitCap` edge in the connection. */ -export interface OrgLimitCapEdge { - cursor?: string | null; - /** The `OrgLimitCap` at the end of the edge. */ - node?: OrgLimitCap | null; -} -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} /** A `MigrateFile` edge in the connection. */ export interface MigrateFileEdge { cursor?: string | null; @@ -23958,12 +24680,24 @@ export interface WebauthnCredentialsModuleEdge { /** The `WebauthnCredentialsModule` at the end of the edge. */ node?: WebauthnCredentialsModule | null; } +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { + cursor?: string | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; /** The `OrgAdminGrant` at the end of the edge. */ node?: OrgAdminGrant | null; } +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} /** A `OrgOwnerGrant` edge in the connection. */ export interface OrgOwnerGrantEdge { cursor?: string | null; @@ -23976,29 +24710,29 @@ export interface NodeTypeRegistryEdge { /** The `NodeTypeRegistry` at the end of the edge. */ node?: NodeTypeRegistry | null; } -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `AppLimitCapsDefault` edge in the connection. */ +export interface AppLimitCapsDefaultEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `AppLimitCapsDefault` at the end of the edge. */ + node?: AppLimitCapsDefault | null; } -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `OrgLimitCapsDefault` edge in the connection. */ +export interface OrgLimitCapsDefaultEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `OrgLimitCapsDefault` at the end of the edge. */ + node?: OrgLimitCapsDefault | null; } -/** A `AppLimitCreditCodeItem` edge in the connection. */ -export interface AppLimitCreditCodeItemEdge { +/** A `AppLimitCap` edge in the connection. */ +export interface AppLimitCapEdge { cursor?: string | null; - /** The `AppLimitCreditCodeItem` at the end of the edge. */ - node?: AppLimitCreditCodeItem | null; + /** The `AppLimitCap` at the end of the edge. */ + node?: AppLimitCap | null; } -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { +/** A `OrgLimitCap` edge in the connection. */ +export interface OrgLimitCapEdge { cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; + /** The `OrgLimitCap` at the end of the edge. */ + node?: OrgLimitCap | null; } /** A `UserConnectedAccount` edge in the connection. */ export interface UserConnectedAccountEdge { @@ -24018,41 +24752,47 @@ export interface CryptoAddressesModuleEdge { /** The `CryptoAddressesModule` at the end of the edge. */ node?: CryptoAddressesModule | null; } +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { + cursor?: string | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; +} /** A `CryptoAddress` edge in the connection. */ export interface CryptoAddressEdge { cursor?: string | null; /** The `CryptoAddress` at the end of the edge. */ node?: CryptoAddress | null; } -/** A `AgentMessage` edge in the connection. */ -export interface AgentMessageEdge { +/** A `AppLimitCreditCodeItem` edge in the connection. */ +export interface AppLimitCreditCodeItemEdge { cursor?: string | null; - /** The `AgentMessage` at the end of the edge. */ - node?: AgentMessage | null; + /** The `AppLimitCreditCodeItem` at the end of the edge. */ + node?: AppLimitCreditCodeItem | null; } -/** A `AppLimitCredit` edge in the connection. */ -export interface AppLimitCreditEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `AppLimitCredit` at the end of the edge. */ - node?: AppLimitCredit | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; } -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; } -/** A `OrgLimitCredit` edge in the connection. */ -export interface OrgLimitCreditEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `OrgLimitCredit` at the end of the edge. */ - node?: OrgLimitCredit | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; } -/** A `SiteMetadatum` edge in the connection. */ -export interface SiteMetadatumEdge { +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { cursor?: string | null; - /** The `SiteMetadatum` at the end of the edge. */ - node?: SiteMetadatum | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; } /** A `FullTextSearch` edge in the connection. */ export interface FullTextSearchEdge { @@ -24072,6 +24812,12 @@ export interface CommitEdge { /** The `Commit` at the end of the edge. */ node?: Commit | null; } +/** A `SiteMetadatum` edge in the connection. */ +export interface SiteMetadatumEdge { + cursor?: string | null; + /** The `SiteMetadatum` at the end of the edge. */ + node?: SiteMetadatum | null; +} /** A `PubkeySetting` edge in the connection. */ export interface PubkeySettingEdge { cursor?: string | null; @@ -24096,11 +24842,17 @@ export interface PhoneNumberEdge { /** The `PhoneNumber` at the end of the edge. */ node?: PhoneNumber | null; } -/** A `UsageSnapshot` edge in the connection. */ -export interface UsageSnapshotEdge { +/** A `AppLimitCredit` edge in the connection. */ +export interface AppLimitCreditEdge { + cursor?: string | null; + /** The `AppLimitCredit` at the end of the edge. */ + node?: AppLimitCredit | null; +} +/** A `OrgLimitCredit` edge in the connection. */ +export interface OrgLimitCreditEdge { cursor?: string | null; - /** The `UsageSnapshot` at the end of the edge. */ - node?: UsageSnapshot | null; + /** The `OrgLimitCredit` at the end of the edge. */ + node?: OrgLimitCredit | null; } /** A `AppClaimedInvite` edge in the connection. */ export interface AppClaimedInviteEdge { @@ -24108,23 +24860,17 @@ export interface AppClaimedInviteEdge { /** The `AppClaimedInvite` at the end of the edge. */ node?: AppClaimedInvite | null; } -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } /** A `Domain` edge in the connection. */ export interface DomainEdge { @@ -24138,24 +24884,6 @@ export interface RlsSettingEdge { /** The `RlsSetting` at the end of the edge. */ node?: RlsSetting | null; } -/** A `AgentTask` edge in the connection. */ -export interface AgentTaskEdge { - cursor?: string | null; - /** The `AgentTask` at the end of the edge. */ - node?: AgentTask | null; -} -/** A `AgentThread` edge in the connection. */ -export interface AgentThreadEdge { - cursor?: string | null; - /** The `AgentThread` at the end of the edge. */ - node?: AgentThread | null; -} -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} /** A `AppGrant` edge in the connection. */ export interface AppGrantEdge { cursor?: string | null; @@ -24168,29 +24896,11 @@ export interface OrgClaimedInviteEdge { /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } -/** A `AppLimitEvent` edge in the connection. */ -export interface AppLimitEventEdge { - cursor?: string | null; - /** The `AppLimitEvent` at the end of the edge. */ - node?: AppLimitEvent | null; -} -/** A `OrgLimitEvent` edge in the connection. */ -export interface OrgLimitEventEdge { - cursor?: string | null; - /** The `OrgLimitEvent` at the end of the edge. */ - node?: OrgLimitEvent | null; -} -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { - cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; -} -/** A `Partition` edge in the connection. */ -export interface PartitionEdge { +/** A `AuditLogAuth` edge in the connection. */ +export interface AuditLogAuthEdge { cursor?: string | null; - /** The `Partition` at the end of the edge. */ - node?: Partition | null; + /** The `AuditLogAuth` at the end of the edge. */ + node?: AuditLogAuth | null; } /** A `BlueprintConstruction` edge in the connection. */ export interface BlueprintConstructionEdge { @@ -24210,12 +24920,30 @@ export interface SessionsModuleEdge { /** The `SessionsModule` at the end of the edge. */ node?: SessionsModule | null; } +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { + cursor?: string | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; +} /** A `OrgGrant` edge in the connection. */ export interface OrgGrantEdge { cursor?: string | null; /** The `OrgGrant` at the end of the edge. */ node?: OrgGrant | null; } +/** A `Partition` edge in the connection. */ +export interface PartitionEdge { + cursor?: string | null; + /** The `Partition` at the end of the edge. */ + node?: Partition | null; +} +/** A `AgentChatModule` edge in the connection. */ +export interface AgentChatModuleEdge { + cursor?: string | null; + /** The `AgentChatModule` at the end of the edge. */ + node?: AgentChatModule | null; +} /** A `Blueprint` edge in the connection. */ export interface BlueprintEdge { cursor?: string | null; @@ -24246,17 +24974,11 @@ export interface PlansModuleEdge { /** The `PlansModule` at the end of the edge. */ node?: PlansModule | null; } -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } /** A `SqlAction` edge in the connection. */ export interface SqlActionEdge { @@ -24264,6 +24986,18 @@ export interface SqlActionEdge { /** The `SqlAction` at the end of the edge. */ node?: SqlAction | null; } +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { + cursor?: string | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; +} +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} /** A `DatabaseTransfer` edge in the connection. */ export interface DatabaseTransferEdge { cursor?: string | null; @@ -24276,12 +25010,6 @@ export interface DatabaseSettingEdge { /** The `DatabaseSetting` at the end of the edge. */ node?: DatabaseSetting | null; } -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { - cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; -} /** A `CryptoAuthModule` edge in the connection. */ export interface CryptoAuthModuleEdge { cursor?: string | null; @@ -24300,29 +25028,23 @@ export interface InvitesModuleEdge { /** The `InvitesModule` at the end of the edge. */ node?: InvitesModule | null; } +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | 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 `OrgLimitAggregate` edge in the connection. */ -export interface OrgLimitAggregateEdge { - cursor?: string | null; - /** The `OrgLimitAggregate` at the end of the edge. */ - node?: OrgLimitAggregate | null; -} -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -/** A `AstMigration` edge in the connection. */ -export interface AstMigrationEdge { +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { cursor?: string | null; - /** The `AstMigration` at the end of the edge. */ - node?: AstMigration | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; } /** A `ApiSetting` edge in the connection. */ export interface ApiSettingEdge { @@ -24330,17 +25052,47 @@ export interface ApiSettingEdge { /** The `ApiSetting` at the end of the edge. */ node?: ApiSetting | null; } +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { + cursor?: string | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; +} +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { + cursor?: string | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; +} +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { + cursor?: string | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | 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 `User` edge in the connection. */ -export interface UserEdge { +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; } /** A `View` edge in the connection. */ export interface ViewEdge { @@ -24354,17 +25106,17 @@ export interface WebauthnAuthModuleEdge { /** The `WebauthnAuthModule` at the end of the edge. */ node?: WebauthnAuthModule | null; } -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; } -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `User` edge in the connection. */ +export interface UserEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `User` at the end of the edge. */ + node?: User | null; } /** A `App` edge in the connection. */ export interface AppEdge { @@ -24378,6 +25130,12 @@ export interface SiteEdge { /** The `Site` at the end of the edge. */ node?: Site | null; } +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; +} /** A `NotificationsModule` edge in the connection. */ export interface NotificationsModuleEdge { cursor?: string | null; @@ -24390,6 +25148,12 @@ export interface PermissionsModuleEdge { /** The `PermissionsModule` at the end of the edge. */ node?: PermissionsModule | null; } +/** A `AstMigration` edge in the connection. */ +export interface AstMigrationEdge { + cursor?: string | null; + /** The `AstMigration` at the end of the edge. */ + node?: AstMigration | null; +} /** A `WebauthnCredential` edge in the connection. */ export interface WebauthnCredentialEdge { cursor?: string | null; @@ -24438,11 +25202,17 @@ export interface WebauthnSettingEdge { /** The `WebauthnSetting` at the end of the edge. */ node?: WebauthnSetting | null; } -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; +} +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { + cursor?: string | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } /** A `Schema` edge in the connection. */ export interface SchemaEdge { @@ -24456,11 +25226,11 @@ export interface IndexEdge { /** The `Index` at the end of the edge. */ node?: Index | null; } -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; } /** A `BillingProviderModule` edge in the connection. */ export interface BillingProviderModuleEdge { @@ -24486,12 +25256,6 @@ export interface ProfilesModuleEdge { /** The `ProfilesModule` at the end of the edge. */ node?: ProfilesModule | null; } -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} /** A `EmbeddingChunk` edge in the connection. */ export interface EmbeddingChunkEdge { cursor?: string | null; @@ -24504,6 +25268,12 @@ export interface ForeignKeyConstraintEdge { /** The `ForeignKeyConstraint` at the end of the edge. */ node?: ForeignKeyConstraint | null; } +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { + cursor?: string | null; + /** The `OrgInvite` at the end of the edge. */ + node?: OrgInvite | null; +} /** A `RelationProvision` edge in the connection. */ export interface RelationProvisionEdge { cursor?: string | null; @@ -24540,18 +25310,18 @@ export interface LimitsModuleEdge { /** The `LimitsModule` at the end of the edge. */ node?: LimitsModule | null; } -/** A `StorageModule` edge in the connection. */ -export interface StorageModuleEdge { - cursor?: string | null; - /** The `StorageModule` at the end of the edge. */ - node?: StorageModule | null; -} /** A `MembershipsModule` edge in the connection. */ export interface MembershipsModuleEdge { cursor?: string | null; /** The `MembershipsModule` at the end of the edge. */ node?: MembershipsModule | null; } +/** A `StorageModule` edge in the connection. */ +export interface StorageModuleEdge { + cursor?: string | null; + /** The `StorageModule` at the end of the edge. */ + node?: StorageModule | null; +} /** A `EventsModule` edge in the connection. */ export interface EventsModuleEdge { cursor?: string | null; @@ -24572,6 +25342,14 @@ export interface MetaTable { inflection: MetaInflection; query: MetaQuery; } +export interface SignInCrossOriginRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} export interface BootstrapUserRecord { outUserId?: string | null; outEmail?: string | null; @@ -24582,6 +25360,24 @@ export interface BootstrapUserRecord { outIsSudo?: boolean | null; outApiKey?: string | null; } +export interface SignUpRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; +} +export interface SignInRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; + mfaRequired?: boolean | null; + mfaChallengeToken?: string | null; +} export interface ProvisionDatabaseWithUserRecord { outDatabaseId?: string | null; outApiKey?: string | null; @@ -24592,14 +25388,6 @@ export interface ProvisionRelationRecord { outSourceFieldId?: string | null; outTargetFieldId?: string | null; } -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} export interface ExtendTokenExpiresRecord { id?: string | null; sessionId?: string | null; @@ -24610,24 +25398,6 @@ export interface CreateApiKeyRecord { keyId?: string | null; expiresAt?: string | null; } -export interface SignUpRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export interface SignInRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; - mfaRequired?: boolean | null; - mfaChallengeToken?: string | null; -} export interface ProvisionTableRecord { outTableId?: string | null; outFields?: string[] | null; diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts index 9fd52432c6..10f5af2edf 100644 --- a/sdk/constructive-react/src/public/types.ts +++ b/sdk/constructive-react/src/public/types.ts @@ -24,6 +24,16 @@ export interface GetAllRecord { path: string[] | null; data: unknown | null; } +export interface Object { + hashUuid: string | null; + id: string | null; + scopeId: string | null; + kids: string[] | null; + ktree: string[] | null; + data: unknown | null; + frzn: boolean | null; + createdAt: string | null; +} export interface AppPermission { id: string | null; name: string | null; @@ -38,16 +48,6 @@ export interface OrgPermission { bitstr: string | null; description: string | null; } -export interface Object { - hashUuid: string | null; - id: string | null; - databaseId: string | null; - kids: string[] | null; - ktree: string[] | null; - data: unknown | null; - frzn: boolean | null; - createdAt: string | null; -} export interface Database { id: string | null; ownerId: string | null; @@ -419,6 +419,13 @@ export interface RealtimeModule { interval: string | null; notifyChannel: string | null; } +export interface ConfigSecretsOrgModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + tableId: string | null; + tableName: string | null; +} export interface SchemaGrant { id: string | null; databaseId: string | null; @@ -536,6 +543,7 @@ export interface Partition { partitionKeyId: string | null; interval: string | null; retention: string | null; + retentionKeepTable: boolean | null; premake: number | null; namingPattern: string | null; createdAt: string | null; @@ -651,7 +659,7 @@ export interface EmailsModule { ownerTableId: string | null; tableName: string | null; } -export interface EncryptedSecretsModule { +export interface ConfigSecretsUserModule { id: string | null; databaseId: string | null; schemaId: string | null; @@ -958,6 +966,7 @@ export interface StorageModule { bucketsTableName: string | null; filesTableName: string | null; membershipType: number | null; + storageKey: string | null; policies: unknown | null; skipDefaultPolicyTables: string[] | null; entityTableId: string | null; @@ -1057,6 +1066,93 @@ export interface NotificationsModule { hasDigestMetadata: boolean | null; hasSubscriptions: boolean | null; } +export interface InferenceLogModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + inferenceLogTableId: string | null; + inferenceLogTableName: string | null; + usageDailyTableId: string | null; + usageDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + actorFkTableId: string | null; + entityFkTableId: string | null; + prefix: string | null; +} +export interface ComputeLogModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + computeLogTableId: string | null; + computeLogTableName: string | null; + usageDailyTableId: string | null; + usageDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + actorFkTableId: string | null; + entityFkTableId: string | null; + prefix: string | null; +} +export interface TransferLogModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + transferLogTableId: string | null; + transferLogTableName: string | null; + usageDailyTableId: string | null; + usageDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + actorFkTableId: string | null; + entityFkTableId: string | null; + prefix: string | null; +} +export interface StorageLogModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + storageLogTableId: string | null; + storageLogTableName: string | null; + usageDailyTableId: string | null; + usageDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + actorFkTableId: string | null; + entityFkTableId: string | null; + prefix: string | null; +} +export interface DbUsageModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + tableStatsLogTableId: string | null; + tableStatsLogTableName: string | null; + tableStatsDailyTableId: string | null; + tableStatsDailyTableName: string | null; + queryStatsLogTableId: string | null; + queryStatsLogTableName: string | null; + queryStatsDailyTableId: string | null; + queryStatsDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; + prefix: string | null; +} export interface DatabaseProvisionModule { id: string | null; databaseName: string | null; @@ -1366,7 +1462,8 @@ export interface OrgClaimedInvite { updatedAt: string | null; entityId: string | null; } -export interface AuditLog { +export interface AuditLogAuth { + createdAt: string | null; id: string | null; event: string | null; actorId: string | null; @@ -1374,45 +1471,6 @@ export interface AuditLog { userAgent: string | null; ipAddress: string | null; success: boolean | null; - createdAt: string | null; -} -export interface AgentThread { - title: string | null; - mode: string | null; - model: string | null; - systemPrompt: string | null; - id: string | null; - createdAt: string | null; - updatedAt: string | null; - ownerId: string | null; - entityId: string | null; - status: string | null; -} -export interface AgentMessage { - threadId: string | null; - entityId: string | null; - authorRole: string | null; - id: string | null; - createdAt: string | null; - updatedAt: string | null; - ownerId: string | null; - parts: unknown | null; -} -export interface AgentTask { - threadId: string | null; - entityId: string | null; - description: string | null; - source: string | null; - error: string | null; - id: string | null; - createdAt: string | null; - updatedAt: string | null; - ownerId: string | null; - status: string | null; -} -export interface RoleType { - id: number | null; - name: string | null; } export interface IdentityProvider { slug: string | null; @@ -1424,14 +1482,14 @@ export interface IdentityProvider { export interface Ref { id: string | null; name: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; commitId: string | null; } export interface Store { id: string | null; name: string | null; - databaseId: string | null; + scopeId: string | null; hash: string | null; createdAt: string | null; } @@ -1439,42 +1497,9 @@ export interface AppPermissionDefault { id: string | null; permissions: string | null; } -export interface AppLimitCreditCode { - id: string | null; - code: string | null; - maxRedemptions: number | null; - currentRedemptions: number | null; - expiresAt: string | null; -} -export interface AppLimitCapsDefault { - id: string | null; - name: string | null; - max: string | null; -} -export interface OrgLimitCapsDefault { - id: string | null; - name: string | null; - max: string | null; -} -export interface AppLimitCap { - id: string | null; - name: string | null; - entityId: string | null; - max: string | null; -} -export interface OrgLimitCap { - id: string | null; - name: string | null; - entityId: string | null; - max: string | null; -} -export interface MembershipType { +export interface RoleType { id: number | null; name: string | null; - description: string | null; - prefix: string | null; - parentMembershipType: number | null; - hasUsersTableEntry: boolean | null; } export interface MigrateFile { id: string | null; @@ -1490,6 +1515,24 @@ export interface DevicesModule { userDevicesTable: string | null; deviceSettingsTable: string | null; } +export interface AppMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isVerified: boolean | null; +} +export interface OrgMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + entityId: string | null; +} export interface NodeTypeRegistry { name: string | null; slug: string | null; @@ -1499,24 +1542,27 @@ export interface NodeTypeRegistry { parameterSchema: unknown | null; tags: string[] | null; } -export interface AppLimitDefault { +export interface AppLimitCapsDefault { id: string | null; name: string | null; max: string | null; - softMax: string | null; } -export interface OrgLimitDefault { +export interface OrgLimitCapsDefault { id: string | null; name: string | null; max: string | null; - softMax: string | null; } -export interface AppLimitWarning { +export interface AppLimitCap { id: string | null; name: string | null; - warningType: string | null; - thresholdValue: string | null; - taskIdentifier: string | null; + entityId: string | null; + max: string | null; +} +export interface OrgLimitCap { + id: string | null; + name: string | null; + entityId: string | null; + max: string | null; } export interface UserConnectedAccount { id: string | null; @@ -1528,10 +1574,36 @@ export interface UserConnectedAccount { createdAt: string | null; updatedAt: string | null; } +export interface AppLimitDefault { + id: string | null; + name: string | null; + max: string | null; + softMax: string | null; +} +export interface OrgLimitDefault { + id: string | null; + name: string | null; + max: string | null; + softMax: string | null; +} +export interface AppLimitCreditCode { + id: string | null; + code: string | null; + maxRedemptions: number | null; + currentRedemptions: number | null; + expiresAt: string | null; +} +export interface AppLimitWarning { + id: string | null; + name: string | null; + warningType: string | null; + thresholdValue: string | null; + taskIdentifier: string | null; +} export interface Commit { id: string | null; message: string | null; - databaseId: string | null; + scopeId: string | null; storeId: string | null; parentIds: string[] | null; authorId: string | null; @@ -1561,31 +1633,13 @@ export interface RateLimitsModule { ipRateLimitsTable: string | null; rateLimitsTable: string | null; } -export interface UsageSnapshot { - databaseId: string | null; - metricName: string | null; - metricValue: string | null; - dimensions: unknown | null; - capturedAt: string | null; - id: string | null; -} -export interface AppMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isVerified: boolean | null; -} -export interface OrgMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - entityId: string | null; +export interface MembershipType { + id: number | null; + name: string | null; + description: string | null; + prefix: string | null; + parentMembershipType: number | null; + hasUsersTableEntry: boolean | null; } export interface RlsSetting { id: string | null; @@ -1599,28 +1653,6 @@ export interface RlsSetting { currentUserAgentFunctionId: string | null; currentIpAddressFunctionId: string | null; } -export interface AppLimitEvent { - name: string | null; - actorId: string | null; - entityId: string | null; - eventType: string | null; - delta: string | null; - numBefore: string | null; - numAfter: string | null; - maxAtEvent: string | null; - reason: string | null; -} -export interface OrgLimitEvent { - name: string | null; - actorId: string | null; - entityId: string | null; - eventType: string | null; - delta: string | null; - numBefore: string | null; - numAfter: string | null; - maxAtEvent: string | null; - reason: string | null; -} export interface RlsModule { id: string | null; databaseId: string | null; @@ -1634,6 +1666,20 @@ export interface RlsModule { currentRole: string | null; currentRoleId: string | null; } +export interface AgentChatModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + apiId: string | null; + threadTableId: string | null; + threadTableName: string | null; + messageTableId: string | null; + messageTableName: string | null; + taskTableId: string | null; + taskTableName: string | null; + prefix: string | null; +} export interface RateLimitMetersModule { id: string | null; databaseId: string | null; @@ -1678,6 +1724,32 @@ export interface SqlAction { actionId: string | null; actorId: string | null; } +export interface AppLimitEvent { + createdAt: string | null; + id: string | null; + name: string | null; + actorId: string | null; + entityId: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} +export interface OrgLimitEvent { + createdAt: string | null; + id: string | null; + name: string | null; + actorId: string | null; + entityId: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} export interface DatabaseSetting { id: string | null; databaseId: string | null; @@ -1694,36 +1766,39 @@ export interface DatabaseSetting { enableBulk: boolean | null; options: unknown | null; } -export interface BillingModule { +export interface OrgMembershipSetting { id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - metersTableId: string | null; - metersTableName: string | null; - planSubscriptionsTableId: string | null; - planSubscriptionsTableName: string | null; - ledgerTableId: string | null; - ledgerTableName: string | null; - balancesTableId: string | null; - balancesTableName: string | null; - recordUsageFunction: string | null; - prefix: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + entityId: string | null; + deleteMemberCascadeChildren: boolean | null; + createChildCascadeOwners: boolean | null; + createChildCascadeAdmins: boolean | null; + createChildCascadeMembers: boolean | null; + allowExternalMembers: boolean | null; + inviteProfileAssignmentMode: string | null; + populateMemberEmail: boolean | null; + limitAllocationMode: string | null; } -export interface AstMigration { - id: number | null; - databaseId: string | null; - name: string | null; - requires: string[] | null; - payload: unknown | null; - deploys: string | null; - deploy: unknown | null; - revert: unknown | null; - verify: unknown | null; +export interface AppMembership { + id: string | null; createdAt: string | null; - action: string | null; - actionId: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isBanned: boolean | null; + isDisabled: boolean | null; + isVerified: boolean | null; + isActive: boolean | null; + isOwner: boolean | null; + isAdmin: boolean | null; + permissions: string | null; + granted: string | null; actorId: string | null; + profileId: string | null; } export interface User { id: string | null; @@ -1738,21 +1813,20 @@ export interface User { displayNameTrgmSimilarity: number | null; searchScore: number | null; } -export interface OrgMembershipSetting { - id: string | null; +export interface AstMigration { + id: number | null; + databaseId: string | null; + name: string | null; + requires: string[] | null; + payload: unknown | null; + deploys: string | null; + deploy: unknown | null; + revert: unknown | null; + verify: unknown | null; createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - entityId: string | null; - deleteMemberCascadeChildren: boolean | null; - createChildCascadeOwners: boolean | null; - createChildCascadeAdmins: boolean | null; - createChildCascadeMembers: boolean | null; - allowExternalMembers: boolean | null; - inviteProfileAssignmentMode: string | null; - populateMemberEmail: boolean | null; - limitAllocationMode: string | null; + action: string | null; + actionId: string | null; + actorId: string | null; } export interface WebauthnSetting { id: string | null; @@ -1774,23 +1848,25 @@ export interface WebauthnSetting { residentKey: string | null; challengeExpirySeconds: string | null; } -export interface AppMembership { +export interface BillingModule { id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isBanned: boolean | null; - isDisabled: boolean | null; - isVerified: boolean | null; - isActive: boolean | null; - isOwner: boolean | null; - isAdmin: boolean | null; - permissions: string | null; - granted: string | null; - actorId: string | null; - profileId: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + metersTableId: string | null; + metersTableName: string | null; + planSubscriptionsTableId: string | null; + planSubscriptionsTableName: string | null; + ledgerTableId: string | null; + ledgerTableName: string | null; + balancesTableId: string | null; + balancesTableName: string | null; + meterCreditsTableId: string | null; + meterCreditsTableName: string | null; + meterSourcesTableId: string | null; + meterSourcesTableName: string | null; + recordUsageFunction: string | null; + prefix: string | null; } export interface BillingProviderModule { id: string | null; diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index 263d6bf043..5695400c6f 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -171,8 +171,8 @@ type Query { orderBy: [AppPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): AppPermissionDefaultConnection - """Reads and enables pagination through a set of `AppLimitCreditCode`.""" - appLimitCreditCodes( + """Reads and enables pagination through a set of `AppAdminGrant`.""" + appAdminGrants( """Only read the first `n` values of the set.""" first: Int @@ -194,11 +194,40 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeFilter + where: AppAdminGrantFilter - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeConnection + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAdminGrantConnection + + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrants( + """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 `OrgPermissionDefault`.""" orgPermissionDefaults( @@ -229,8 +258,8 @@ type Query { orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): OrgPermissionDefaultConnection - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissions( + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -252,14 +281,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionFilter + where: AppMembershipDefaultFilter - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionConnection + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultConnection - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissions( + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrants( """Only read the first `n` values of the set.""" first: Int @@ -281,14 +310,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgPermissionFilter + where: OrgAdminGrantFilter - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionConnection + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgAdminGrantConnection - """Reads and enables pagination through a set of `AppAdminGrant`.""" - appAdminGrants( + """Reads and enables pagination through a set of `OrgMembershipDefault`.""" + orgMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -310,14 +339,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppAdminGrantFilter + where: OrgMembershipDefaultFilter - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppAdminGrantConnection + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultConnection - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrants( + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" + orgOwnerGrants( """Only read the first `n` values of the set.""" first: Int @@ -339,11 +368,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppOwnerGrantFilter + where: OrgOwnerGrantFilter - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppOwnerGrantConnection + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantConnection """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" appLimitCapsDefaults( @@ -461,8 +490,8 @@ type Query { orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] ): OrgLimitCapConnection - """Reads and enables pagination through a set of `OrgAdminGrant`.""" - orgAdminGrants( + """Reads and enables pagination through a set of `OrgChartEdge`.""" + orgChartEdges( """Only read the first `n` values of the set.""" first: Int @@ -484,14 +513,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgAdminGrantFilter + where: OrgChartEdgeFilter - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgAdminGrantConnection + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeConnection - """Reads and enables pagination through a set of `OrgOwnerGrant`.""" - orgOwnerGrants( + """ + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + """ + appLimitCreditCodeItems( """Only read the first `n` values of the set.""" first: Int @@ -513,14 +544,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgOwnerGrantFilter + where: AppLimitCreditCodeItemFilter - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantConnection + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemConnection - """Reads and enables pagination through a set of `MembershipType`.""" - membershipTypes( + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -542,14 +573,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipTypeFilter + where: AppLimitDefaultFilter - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypeConnection + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -571,14 +602,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitDefaultFilter + where: OrgLimitDefaultFilter - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitDefaultConnection + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissions( """Only read the first `n` values of the set.""" first: Int @@ -600,16 +631,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitDefaultFilter + where: AppPermissionFilter - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultConnection + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionConnection - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItems( + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissions( """Only read the first `n` values of the set.""" first: Int @@ -631,14 +660,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeItemFilter + where: OrgPermissionFilter - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionConnection - """Reads and enables pagination through a set of `AppLimitWarning`.""" - appLimitWarnings( + """Reads and enables pagination through a set of `AppLimitCreditCode`.""" + appLimitCreditCodes( """Only read the first `n` values of the set.""" first: Int @@ -660,14 +689,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitWarningFilter + where: AppLimitCreditCodeFilter - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitWarningConnection + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeConnection - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCredits( + """Reads and enables pagination through a set of `AppLimitWarning`.""" + appLimitWarnings( """Only read the first `n` values of the set.""" first: Int @@ -689,14 +718,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditFilter + where: AppLimitWarningFilter - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditConnection + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitWarningConnection - """Reads and enables pagination through a set of `OrgLimitWarning`.""" - orgLimitWarnings( + """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" + orgChartEdgeGrants( """Only read the first `n` values of the set.""" first: Int @@ -718,14 +747,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitWarningFilter + where: OrgChartEdgeGrantFilter - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitWarningConnection + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantConnection - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCredits( + """Reads and enables pagination through a set of `AppLimitCredit`.""" + appLimitCredits( """Only read the first `n` values of the set.""" first: Int @@ -747,14 +776,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCreditFilter + where: AppLimitCreditFilter - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditConnection - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - orgChartEdgeGrants( + """Reads and enables pagination through a set of `OrgLimitCredit`.""" + orgLimitCredits( """Only read the first `n` values of the set.""" first: Int @@ -776,11 +805,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeGrantFilter + where: OrgLimitCreditFilter - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCreditConnection """Reads and enables pagination through a set of `AppClaimedInvite`.""" appClaimedInvites( @@ -811,8 +840,8 @@ type Query { orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] ): AppClaimedInviteConnection - """Reads and enables pagination through a set of `AppGrant`.""" - appGrants( + """Reads and enables pagination through a set of `OrgLimitWarning`.""" + orgLimitWarnings( """Only read the first `n` values of the set.""" first: Int @@ -834,14 +863,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppGrantFilter + where: OrgLimitWarningFilter - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppGrantConnection + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitWarningConnection - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( """Only read the first `n` values of the set.""" first: Int @@ -863,14 +892,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipDefaultFilter + where: MembershipTypeFilter - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultConnection + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypeConnection - """Reads and enables pagination through a set of `OrgMembershipDefault`.""" - orgMembershipDefaults( + """Reads and enables pagination through a set of `AppGrant`.""" + appGrants( """Only read the first `n` values of the set.""" first: Int @@ -892,11 +921,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipDefaultFilter + where: AppGrantFilter - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultConnection + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection """Reads and enables pagination through a set of `OrgClaimedInvite`.""" orgClaimedInvites( @@ -927,8 +956,8 @@ type Query { orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] ): OrgClaimedInviteConnection - """Reads and enables pagination through a set of `AppLimitEvent`.""" - appLimitEvents( + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrants( """Only read the first `n` values of the set.""" first: Int @@ -950,14 +979,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitEventFilter + where: OrgGrantFilter - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!] = [NATURAL] - ): AppLimitEventConnection + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection - """Reads and enables pagination through a set of `OrgLimitEvent`.""" - orgLimitEvents( + """Reads and enables pagination through a set of `AppLimitEvent`.""" + appLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -979,14 +1008,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitEventFilter + where: AppLimitEventFilter - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!] = [NATURAL] - ): OrgLimitEventConnection + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitEventConnection - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrants( + """Reads and enables pagination through a set of `OrgLimitEvent`.""" + orgLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -1008,14 +1037,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgGrantFilter + where: OrgLimitEventFilter - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitEventConnection - """Reads and enables pagination through a set of `OrgChartEdge`.""" - orgChartEdges( + """Reads and enables pagination through a set of `OrgMembershipSetting`.""" + orgMembershipSettings( """Only read the first `n` values of the set.""" first: Int @@ -1037,14 +1066,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeFilter + where: OrgMembershipSettingFilter - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingConnection - """Reads and enables pagination through a set of `UsageSnapshot`.""" - usageSnapshots( + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( """Only read the first `n` values of the set.""" first: Int @@ -1066,11 +1095,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UsageSnapshotFilter + where: AppMembershipFilter - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!] = [PRIMARY_KEY_ASC] - ): UsageSnapshotConnection + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipConnection """Reads and enables pagination through a set of `AppLimit`.""" appLimits( @@ -1101,8 +1130,8 @@ type Query { orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] ): AppLimitConnection - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMemberships( """Only read the first `n` values of the set.""" first: Int @@ -1124,14 +1153,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppInviteFilter + where: OrgMembershipFilter - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppInviteConnection + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection - """Reads and enables pagination through a set of `OrgMembershipSetting`.""" - orgMembershipSettings( + """Reads and enables pagination through a set of `OrgMemberProfile`.""" + orgMemberProfiles( """Only read the first `n` values of the set.""" first: Int @@ -1153,11 +1182,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipSettingFilter + where: OrgMemberProfileFilter - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingConnection + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberProfileConnection """Reads and enables pagination through a set of `OrgLimitAggregate`.""" orgLimitAggregates( @@ -1217,37 +1246,8 @@ type Query { orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] ): OrgLimitConnection - """Reads and enables pagination through a set of `OrgMemberProfile`.""" - orgMemberProfiles( - """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: OrgMemberProfileFilter - - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberProfileConnection - - """Reads and enables pagination through a set of `AppMembership`.""" - appMemberships( + """Reads and enables pagination through a set of `AppInvite`.""" + appInvites( """Only read the first `n` values of the set.""" first: Int @@ -1269,11 +1269,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipFilter + where: AppInviteFilter - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipConnection + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppInviteConnection """Reads and enables pagination through a set of `OrgInvite`.""" orgInvites( @@ -1304,35 +1304,6 @@ type Query { orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] ): OrgInviteConnection - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMemberships( - """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: OrgMembershipFilter - - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection - """ Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. """ @@ -2686,278 +2657,64 @@ enum AppPermissionDefaultOrderBy { PERMISSIONS_DESC } -"""A connection to a list of `AppLimitCreditCode` values.""" -type AppLimitCreditCodeConnection { - """A list of `AppLimitCreditCode` objects.""" - nodes: [AppLimitCreditCode]! - - """ - A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. - """ - edges: [AppLimitCreditCodeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitCreditCode` you could get from the connection. - """ - totalCount: Int! -} - -"""A `AppLimitCreditCode` edge in the connection.""" -type AppLimitCreditCodeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitCreditCode` at the end of the edge.""" - node: AppLimitCreditCode -} - -"""Methods to use when ordering `AppLimitCreditCode`.""" -enum AppLimitCreditCodeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CODE_ASC - CODE_DESC - MAX_REDEMPTIONS_ASC - MAX_REDEMPTIONS_DESC - CURRENT_REDEMPTIONS_ASC - CURRENT_REDEMPTIONS_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC -} - -"""A connection to a list of `OrgPermissionDefault` values.""" -type OrgPermissionDefaultConnection { - """A list of `OrgPermissionDefault` objects.""" - nodes: [OrgPermissionDefault]! +"""A connection to a list of `AppAdminGrant` values.""" +type AppAdminGrantConnection { + """A list of `AppAdminGrant` objects.""" + nodes: [AppAdminGrant]! """ - A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. + A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. """ - edges: [OrgPermissionDefaultEdge]! + edges: [AppAdminGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgPermissionDefault` you could get from the connection. - """ + """The count of *all* `AppAdminGrant` you could get from the connection.""" totalCount: Int! } -""" -Stores the default permission bitmask assigned to new members upon joining -""" -type OrgPermissionDefault { +"""Records of admin role grants and revocations between members""" +type AppAdminGrant { id: UUID! - """Default permission bitmask applied to new members""" - permissions: BitString! + """True to grant admin, false to revoke admin""" + isGrant: Boolean! - """References the entity these default permissions apply to""" - entityId: UUID! + """The member receiving or losing the admin grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `OrgPermissionDefault` edge in the connection.""" -type OrgPermissionDefaultEdge { +"""A `AppAdminGrant` edge in the connection.""" +type AppAdminGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgPermissionDefault` at the end of the edge.""" - node: OrgPermissionDefault + """The `AppAdminGrant` at the end of the edge.""" + node: AppAdminGrant } """ -A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ """ -input OrgPermissionDefaultFilter { +input AppAdminGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Checks for all expressions in this list.""" - and: [OrgPermissionDefaultFilter!] + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Checks for any expressions in this list.""" - or: [OrgPermissionDefaultFilter!] - - """Negates the expression.""" - not: OrgPermissionDefaultFilter -} - -"""Methods to use when ordering `OrgPermissionDefault`.""" -enum OrgPermissionDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -""" -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ -""" -input 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 -} - -"""Methods to use when ordering `AppPermission`.""" -enum AppPermissionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC -} - -""" -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ -""" -input 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 -} - -"""Methods to use when ordering `OrgPermission`.""" -enum OrgPermissionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC -} - -"""A connection to a list of `AppAdminGrant` values.""" -type AppAdminGrantConnection { - """A list of `AppAdminGrant` objects.""" - nodes: [AppAdminGrant]! - - """ - A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. - """ - edges: [AppAdminGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppAdminGrant` you could get from the connection.""" - totalCount: Int! -} - -"""Records of admin role grants and revocations between members""" -type AppAdminGrant { - id: UUID! - - """True to grant admin, false to revoke admin""" - isGrant: Boolean! - - """The member receiving or losing the admin grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""A `AppAdminGrant` edge in the connection.""" -type AppAdminGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppAdminGrant` at the end of the edge.""" - node: AppAdminGrant -} - -""" -A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ -""" -input AppAdminGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter @@ -3082,332 +2839,182 @@ enum AppOwnerGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `AppLimitCapsDefault` values.""" -type AppLimitCapsDefaultConnection { - """A list of `AppLimitCapsDefault` objects.""" - nodes: [AppLimitCapsDefault]! +"""A connection to a list of `OrgPermissionDefault` values.""" +type OrgPermissionDefaultConnection { + """A list of `OrgPermissionDefault` objects.""" + nodes: [OrgPermissionDefault]! """ - A list of edges which contains the `AppLimitCapsDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. """ - edges: [AppLimitCapsDefaultEdge]! + edges: [OrgPermissionDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppLimitCapsDefault` you could get from the connection. + The count of *all* `OrgPermissionDefault` you could get from the connection. """ totalCount: Int! } """ -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +Stores the default permission bitmask assigned to new members upon joining """ -type AppLimitCapsDefault { +type OrgPermissionDefault { id: UUID! - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! + """Default permission bitmask applied to new members""" + permissions: BitString! - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt! + """References the entity these default permissions apply to""" + entityId: UUID! } -"""A `AppLimitCapsDefault` edge in the connection.""" -type AppLimitCapsDefaultEdge { +"""A `OrgPermissionDefault` edge in the connection.""" +type OrgPermissionDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCapsDefault` at the end of the edge.""" - node: AppLimitCapsDefault + """The `OrgPermissionDefault` at the end of the edge.""" + node: OrgPermissionDefault } """ -A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitCapsDefaultFilter { +input OrgPermissionDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter """Checks for all expressions in this list.""" - and: [AppLimitCapsDefaultFilter!] + and: [OrgPermissionDefaultFilter!] """Checks for any expressions in this list.""" - or: [AppLimitCapsDefaultFilter!] + or: [OrgPermissionDefaultFilter!] """Negates the expression.""" - not: AppLimitCapsDefaultFilter + not: OrgPermissionDefaultFilter } -"""Methods to use when ordering `AppLimitCapsDefault`.""" -enum AppLimitCapsDefaultOrderBy { +"""Methods to use when ordering `OrgPermissionDefault`.""" +enum OrgPermissionDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `OrgLimitCapsDefault` values.""" -type OrgLimitCapsDefaultConnection { - """A list of `OrgLimitCapsDefault` objects.""" - nodes: [OrgLimitCapsDefault]! +"""A connection to a list of `AppMembershipDefault` values.""" +type AppMembershipDefaultConnection { + """A list of `AppMembershipDefault` objects.""" + nodes: [AppMembershipDefault]! """ - A list of edges which contains the `OrgLimitCapsDefault` and cursor to aid in pagination. + A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. """ - edges: [OrgLimitCapsDefaultEdge]! + edges: [AppMembershipDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgLimitCapsDefault` you could get from the connection. + The count of *all* `AppMembershipDefault` you could get from the connection. """ totalCount: Int! } """ -Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +Default membership settings per entity, controlling initial approval and verification state for new members """ -type OrgLimitCapsDefault { +type AppMembershipDefault { id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt! -} - -"""A `OrgLimitCapsDefault` edge in the connection.""" -type OrgLimitCapsDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgLimitCapsDefault` at the end of the edge.""" - node: OrgLimitCapsDefault -} - -""" -A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCapsDefaultFilter { - """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: BigIntFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitCapsDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitCapsDefaultFilter!] - - """Negates the expression.""" - not: OrgLimitCapsDefaultFilter -} - -"""Methods to use when ordering `OrgLimitCapsDefault`.""" -enum OrgLimitCapsDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC -} - -"""A connection to a list of `AppLimitCap` values.""" -type AppLimitCapConnection { - """A list of `AppLimitCap` objects.""" - nodes: [AppLimitCap]! - - """ - A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. - """ - edges: [AppLimitCapEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLimitCap` you could get from the connection.""" - totalCount: Int! -} - -""" -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. -""" -type AppLimitCap { - id: UUID! - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! - """Override cap value for this entity""" - max: BigInt! + """Whether new members are automatically verified upon joining""" + isVerified: Boolean! } -"""A `AppLimitCap` edge in the connection.""" -type AppLimitCapEdge { +"""A `AppMembershipDefault` edge in the connection.""" +type AppMembershipDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCap` at the end of the edge.""" - node: AppLimitCap + """The `AppMembershipDefault` at the end of the edge.""" + node: AppMembershipDefault } """ -A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitCapFilter { +input AppMembershipDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter - - """Checks for all expressions in this list.""" - and: [AppLimitCapFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitCapFilter!] - - """Negates the expression.""" - not: AppLimitCapFilter -} - -"""Methods to use when ordering `AppLimitCap`.""" -enum AppLimitCapOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC -} - -"""A connection to a list of `OrgLimitCap` values.""" -type OrgLimitCapConnection { - """A list of `OrgLimitCap` objects.""" - nodes: [OrgLimitCap]! - - """ - A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. - """ - edges: [OrgLimitCapEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgLimitCap` you could get from the connection.""" - totalCount: Int! -} - -""" -Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. -""" -type OrgLimitCap { - id: UUID! - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt! -} - -"""A `OrgLimitCap` edge in the connection.""" -type OrgLimitCapEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """The `OrgLimitCap` at the end of the edge.""" - node: OrgLimitCap -} + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter -""" -A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitCapFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter """Checks for all expressions in this list.""" - and: [OrgLimitCapFilter!] + and: [AppMembershipDefaultFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitCapFilter!] + or: [AppMembershipDefaultFilter!] """Negates the expression.""" - not: OrgLimitCapFilter + not: AppMembershipDefaultFilter } -"""Methods to use when ordering `OrgLimitCap`.""" -enum OrgLimitCapOrderBy { +"""Methods to use when ordering `AppMembershipDefault`.""" +enum AppMembershipDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - MAX_ASC - MAX_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC } """A connection to a list of `OrgAdminGrant` values.""" @@ -3509,28 +3116,129 @@ enum OrgAdminGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `OrgOwnerGrant` values.""" -type OrgOwnerGrantConnection { - """A list of `OrgOwnerGrant` objects.""" - nodes: [OrgOwnerGrant]! +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! """ - A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. """ - edges: [OrgOwnerGrantEdge]! + edges: [OrgMembershipDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + """ + The count of *all* `OrgMembershipDefault` you could get from the connection. + """ totalCount: Int! } -"""Records of ownership transfers and grants between members""" -type OrgOwnerGrant { +""" +Default membership settings per entity, controlling initial approval and verification state for new members +""" +type OrgMembershipDefault { id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """True to grant ownership, false to revoke ownership""" + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! + + """References the entity these membership defaults apply to""" + entityId: UUID! +} + +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault +} + +""" +A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgMembershipDefaultFilter { + """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 `entityId` field.""" + entityId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [OrgMembershipDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [OrgMembershipDefaultFilter!] + + """Negates the expression.""" + not: OrgMembershipDefaultFilter +} + +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum OrgMembershipDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC +} + +"""A connection to a list of `OrgOwnerGrant` values.""" +type OrgOwnerGrantConnection { + """A list of `OrgOwnerGrant` objects.""" + nodes: [OrgOwnerGrant]! + + """ + A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. + """ + edges: [OrgOwnerGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + totalCount: Int! +} + +"""Records of ownership transfers and grants between members""" +type OrgOwnerGrant { + id: UUID! + + """True to grant ownership, false to revoke ownership""" isGrant: Boolean! """The member receiving or losing the ownership grant""" @@ -3608,97 +3316,76 @@ enum OrgOwnerGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! +"""A connection to a list of `AppLimitCapsDefault` values.""" +type AppLimitCapsDefaultConnection { + """A list of `AppLimitCapsDefault` objects.""" + nodes: [AppLimitCapsDefault]! """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCapsDefault` and cursor to aid in pagination. """ - edges: [MembershipTypeEdge]! + edges: [AppLimitCapsDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `MembershipType` you could get from the connection.""" + """ + The count of *all* `AppLimitCapsDefault` you could get from the connection. + """ totalCount: Int! } """ -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. """ -type MembershipType { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! +type AppLimitCapsDefault { + id: UUID! """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) """ - parentMembershipType: Int + name: String! """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. """ - hasUsersTableEntry: Boolean! + max: BigInt! } -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { +"""A `AppLimitCapsDefault` edge in the connection.""" +type AppLimitCapsDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MembershipType` at the end of the edge.""" - node: MembershipType + """The `AppLimitCapsDefault` at the end of the edge.""" + node: AppLimitCapsDefault } """ -A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ """ -input MembershipTypeFilter { +input AppLimitCapsDefaultFilter { """Filter by the object’s `id` field.""" - id: IntFilter + 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 `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `parentMembershipType` field.""" - parentMembershipType: IntFilter - - """Filter by the object’s `hasUsersTableEntry` field.""" - hasUsersTableEntry: BooleanFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter """Checks for all expressions in this list.""" - and: [MembershipTypeFilter!] + and: [AppLimitCapsDefaultFilter!] """Checks for any expressions in this list.""" - or: [MembershipTypeFilter!] + or: [AppLimitCapsDefaultFilter!] """Negates the expression.""" - not: MembershipTypeFilter + not: AppLimitCapsDefaultFilter } -"""Methods to use when ordering `MembershipType`.""" -enum MembershipTypeOrderBy { +"""Methods to use when ordering `AppLimitCapsDefault`.""" +enum AppLimitCapsDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -3706,46 +3393,80 @@ enum MembershipTypeOrderBy { ID_DESC NAME_ASC NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PREFIX_ASC - PREFIX_DESC - PARENT_MEMBERSHIP_TYPE_ASC - PARENT_MEMBERSHIP_TYPE_DESC - HAS_USERS_TABLE_ENTRY_ASC - HAS_USERS_TABLE_ENTRY_DESC + MAX_ASC + MAX_DESC } -"""A connection to a list of `AppLimitDefault` values.""" -type AppLimitDefaultConnection { - """A list of `AppLimitDefault` objects.""" - nodes: [AppLimitDefault]! +"""A connection to a list of `OrgLimitCapsDefault` values.""" +type OrgLimitCapsDefaultConnection { + """A list of `OrgLimitCapsDefault` objects.""" + nodes: [OrgLimitCapsDefault]! """ - A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitCapsDefault` and cursor to aid in pagination. """ - edges: [AppLimitDefaultEdge]! + edges: [OrgLimitCapsDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppLimitDefault` you could get from the connection. + The count of *all* `OrgLimitCapsDefault` you could get from the connection. """ totalCount: Int! } -"""A `AppLimitDefault` edge in the connection.""" -type AppLimitDefaultEdge { +""" +Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. +""" +type OrgLimitCapsDefault { + id: UUID! + + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ + name: String! + + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ + max: BigInt! +} + +"""A `OrgLimitCapsDefault` edge in the connection.""" +type OrgLimitCapsDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitDefault` at the end of the edge.""" - node: AppLimitDefault + """The `OrgLimitCapsDefault` at the end of the edge.""" + node: OrgLimitCapsDefault } -"""Methods to use when ordering `AppLimitDefault`.""" -enum AppLimitDefaultOrderBy { +""" +A filter to be used against `OrgLimitCapsDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitCapsDefaultFilter { + """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: BigIntFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitCapsDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitCapsDefaultFilter!] + + """Negates the expression.""" + not: OrgLimitCapsDefaultFilter +} + +"""Methods to use when ordering `OrgLimitCapsDefault`.""" +enum OrgLimitCapsDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -3755,446 +3476,317 @@ enum AppLimitDefaultOrderBy { NAME_DESC MAX_ASC MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC } -"""A connection to a list of `OrgLimitDefault` values.""" -type OrgLimitDefaultConnection { - """A list of `OrgLimitDefault` objects.""" - nodes: [OrgLimitDefault]! +"""A connection to a list of `AppLimitCap` values.""" +type AppLimitCapConnection { + """A list of `AppLimitCap` objects.""" + nodes: [AppLimitCap]! """ - A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCap` and cursor to aid in pagination. """ - edges: [OrgLimitDefaultEdge]! + edges: [AppLimitCapEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgLimitDefault` you could get from the connection. - """ + """The count of *all* `AppLimitCap` you could get from the connection.""" totalCount: Int! } """ -Default maximum values for each named limit, applied when no per-actor override exists +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. """ -type OrgLimitDefault { +type AppLimitCap { id: UUID! - """Name identifier of the limit this default applies to""" + """Name identifier of the cap being overridden""" name: String! - """Default maximum usage allowed for this limit""" - max: BigInt + """Entity this cap override applies to""" + entityId: UUID! - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """Override cap value for this entity""" + max: BigInt! +} - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCreditsByDefaultLimitId( - """Only read the first `n` values of the set.""" - first: Int +"""A `AppLimitCap` edge in the connection.""" +type AppLimitCapEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Only read the last `n` values of the set.""" - last: Int + """The `AppLimitCap` at the end of the edge.""" + node: AppLimitCap +} - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int +""" +A filter to be used against `AppLimitCap` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitCapFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Read all values in the set before (above) this cursor.""" - before: Cursor + """Filter by the object’s `name` field.""" + name: StringFilter - """Read all values in the set after (below) this cursor.""" - after: Cursor + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: OrgLimitCreditFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection! + """Checks for all expressions in this list.""" + and: [AppLimitCapFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitCapFilter!] + + """Negates the expression.""" + not: AppLimitCapFilter } -"""A connection to a list of `OrgLimitCredit` values.""" -type OrgLimitCreditConnection { - """A list of `OrgLimitCredit` objects.""" - nodes: [OrgLimitCredit]! +"""Methods to use when ordering `AppLimitCap`.""" +enum AppLimitCapOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + MAX_ASC + MAX_DESC +} + +"""A connection to a list of `OrgLimitCap` values.""" +type OrgLimitCapConnection { + """A list of `OrgLimitCap` objects.""" + nodes: [OrgLimitCap]! """ - A list of edges which contains the `OrgLimitCredit` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitCap` and cursor to aid in pagination. """ - edges: [OrgLimitCreditEdge]! + edges: [OrgLimitCapEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgLimitCredit` you could get from the connection.""" + """The count of *all* `OrgLimitCap` you could get from the connection.""" totalCount: Int! } """ -Append-only ledger of credit grants that automatically update limit ceilings +Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. """ -type OrgLimitCredit { +type OrgLimitCap { id: UUID! - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String! + """Name identifier of the cap being overridden""" + name: String! - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """Entity this cap override applies to""" + entityId: UUID! - """ - Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. - """ - defaultLimit: OrgLimitDefault + """Override cap value for this entity""" + max: BigInt! } -"""A `OrgLimitCredit` edge in the connection.""" -type OrgLimitCreditEdge { +"""A `OrgLimitCap` edge in the connection.""" +type OrgLimitCapEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitCredit` at the end of the edge.""" - node: OrgLimitCredit + """The `OrgLimitCap` at the end of the edge.""" + node: OrgLimitCap } """ -A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitCap` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitCreditFilter { +input OrgLimitCapFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `defaultLimitId` field.""" - defaultLimitId: UUIDFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `amount` field.""" - amount: BigIntFilter - - """Filter by the object’s `creditType` field.""" - creditType: StringFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitCreditFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitCreditFilter!] - - """Negates the expression.""" - not: OrgLimitCreditFilter - - """Filter by the object’s `defaultLimit` relation.""" - defaultLimit: OrgLimitDefaultFilter -} - -""" -A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ -""" -input 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: BigIntFilter - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter - """Checks for all expressions in this list.""" - and: [OrgLimitDefaultFilter!] + and: [OrgLimitCapFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitDefaultFilter!] + or: [OrgLimitCapFilter!] """Negates the expression.""" - not: OrgLimitDefaultFilter - - """Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation.""" - orgLimitCreditsByDefaultLimitId: OrgLimitDefaultToManyOrgLimitCreditFilter - - """`orgLimitCreditsByDefaultLimitId` exist.""" - orgLimitCreditsByDefaultLimitIdExist: Boolean -} - -""" -A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitDefaultToManyOrgLimitCreditFilter { - """Filters to entities where at least one related entity matches.""" - some: OrgLimitCreditFilter - - """Filters to entities where every related entity matches.""" - every: OrgLimitCreditFilter - - """Filters to entities where no related entity matches.""" - none: OrgLimitCreditFilter + not: OrgLimitCapFilter } -"""Methods to use when ordering `OrgLimitCredit`.""" -enum OrgLimitCreditOrderBy { +"""Methods to use when ordering `OrgLimitCap`.""" +enum OrgLimitCapOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DEFAULT_LIMIT_ID_ASC - DEFAULT_LIMIT_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC + NAME_ASC + NAME_DESC ENTITY_ID_ASC ENTITY_ID_DESC - AMOUNT_ASC - AMOUNT_DESC - CREDIT_TYPE_ASC - CREDIT_TYPE_DESC - REASON_ASC - REASON_DESC + MAX_ASC + MAX_DESC } -"""A `OrgLimitDefault` edge in the connection.""" -type OrgLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""A connection to a list of `OrgChartEdge` values.""" +type OrgChartEdgeConnection { + """A list of `OrgChartEdge` objects.""" + nodes: [OrgChartEdge]! - """The `OrgLimitDefault` at the end of the edge.""" - node: OrgLimitDefault -} - -"""Methods to use when ordering `OrgLimitDefault`.""" -enum OrgLimitDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC -} - -"""A connection to a list of `AppLimitWarning` values.""" -type AppLimitWarningConnection { - """A list of `AppLimitWarning` objects.""" - nodes: [AppLimitWarning]! - - """ - A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. - """ - edges: [AppLimitWarningEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppLimitWarning` you could get from the connection. - """ - totalCount: Int! + """ + A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. + """ + edges: [OrgChartEdgeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgChartEdge` you could get from the connection.""" + totalCount: Int! } """ -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. +Organizational chart edges defining parent-child reporting relationships between members within an entity """ -type AppLimitWarning { +type OrgChartEdge { id: UUID! + createdAt: Datetime + updatedAt: Datetime - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! + """Organization this hierarchy edge belongs to""" + entityId: UUID! - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + User ID of the manager; NULL indicates a top-level position with no direct report """ - thresholdValue: BigInt! + parentId: UUID - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int } -"""A `AppLimitWarning` edge in the connection.""" -type AppLimitWarningEdge { +"""A `OrgChartEdge` edge in the connection.""" +type OrgChartEdgeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitWarning` at the end of the edge.""" - node: AppLimitWarning + """The `OrgChartEdge` at the end of the edge.""" + node: OrgChartEdge } """ -A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitWarningFilter { +input OrgChartEdgeFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `warningType` field.""" - warningType: StringFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter + """Filter by the object’s `childId` field.""" + childId: UUIDFilter + + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter + + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter + + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter """Checks for all expressions in this list.""" - and: [AppLimitWarningFilter!] + and: [OrgChartEdgeFilter!] """Checks for any expressions in this list.""" - or: [AppLimitWarningFilter!] + or: [OrgChartEdgeFilter!] """Negates the expression.""" - not: AppLimitWarningFilter + not: OrgChartEdgeFilter } -"""Methods to use when ordering `AppLimitWarning`.""" -enum AppLimitWarningOrderBy { +"""Methods to use when ordering `OrgChartEdge`.""" +enum OrgChartEdgeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + CHILD_ID_ASC + CHILD_ID_DESC + PARENT_ID_ASC + PARENT_ID_DESC + POSITION_TITLE_ASC + POSITION_TITLE_DESC + POSITION_LEVEL_ASC + POSITION_LEVEL_DESC } -"""A connection to a list of `OrgLimitWarning` values.""" -type OrgLimitWarningConnection { - """A list of `OrgLimitWarning` objects.""" - nodes: [OrgLimitWarning]! +"""A connection to a list of `AppLimitDefault` values.""" +type AppLimitDefaultConnection { + """A list of `AppLimitDefault` objects.""" + nodes: [AppLimitDefault]! """ - A list of edges which contains the `OrgLimitWarning` and cursor to aid in pagination. + A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. """ - edges: [OrgLimitWarningEdge]! + edges: [AppLimitDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgLimitWarning` you could get from the connection. + The count of *all* `AppLimitDefault` you could get from the connection. """ totalCount: Int! } -""" -Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. -""" -type OrgLimitWarning { - id: UUID! - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! - - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! - - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID -} - -"""A `OrgLimitWarning` edge in the connection.""" -type OrgLimitWarningEdge { +"""A `AppLimitDefault` edge in the connection.""" +type AppLimitDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitWarning` at the end of the edge.""" - node: OrgLimitWarning -} - -""" -A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ -""" -input OrgLimitWarningFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `warningType` field.""" - warningType: StringFilter - - """Filter by the object’s `thresholdValue` field.""" - thresholdValue: BigIntFilter - - """Filter by the object’s `taskIdentifier` field.""" - taskIdentifier: StringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgLimitWarningFilter!] - - """Checks for any expressions in this list.""" - or: [OrgLimitWarningFilter!] - - """Negates the expression.""" - not: OrgLimitWarningFilter + """The `AppLimitDefault` at the end of the edge.""" + node: AppLimitDefault } -"""Methods to use when ordering `OrgLimitWarning`.""" -enum OrgLimitWarningOrderBy { +"""Methods to use when ordering `AppLimitDefault`.""" +enum AppLimitDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -4202,1803 +3794,1522 @@ enum OrgLimitWarningOrderBy { ID_DESC NAME_ASC NAME_DESC - WARNING_TYPE_ASC - WARNING_TYPE_DESC - THRESHOLD_VALUE_ASC - THRESHOLD_VALUE_DESC - TASK_IDENTIFIER_ASC - TASK_IDENTIFIER_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } -"""A connection to a list of `OrgChartEdgeGrant` values.""" -type OrgChartEdgeGrantConnection { - """A list of `OrgChartEdgeGrant` objects.""" - nodes: [OrgChartEdgeGrant]! +"""A connection to a list of `OrgLimitDefault` values.""" +type OrgLimitDefaultConnection { + """A list of `OrgLimitDefault` objects.""" + nodes: [OrgLimitDefault]! """ - A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. """ - edges: [OrgChartEdgeGrantEdge]! + edges: [OrgLimitDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgChartEdgeGrant` you could get from the connection. + The count of *all* `OrgLimitDefault` you could get from the connection. """ totalCount: Int! } """ -Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +Default maximum values for each named limit, applied when no per-actor override exists """ -type OrgChartEdgeGrant { +type OrgLimitDefault { id: UUID! - """Organization this grant applies to""" - entityId: UUID! + """Name identifier of the limit this default applies to""" + name: String! - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! + """Default maximum usage allowed for this limit""" + max: BigInt - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID + """Reads and enables pagination through a set of `OrgLimitCredit`.""" + orgLimitCreditsByDefaultLimitId( + """Only read the first `n` values of the set.""" + first: Int - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean! + """Only read the last `n` values of the set.""" + last: Int - """Job title or role name being assigned in this grant""" - positionTitle: String + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Numeric seniority level being assigned in this grant""" - positionLevel: Int + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime! -} + """Read all values in the set after (below) this cursor.""" + after: Cursor -"""A `OrgChartEdgeGrant` edge in the connection.""" -type OrgChartEdgeGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitCreditFilter - """The `OrgChartEdgeGrant` at the end of the edge.""" - node: OrgChartEdgeGrant + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCreditConnection! } -""" -A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgChartEdgeGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `childId` field.""" - childId: UUIDFilter - - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter +"""A connection to a list of `OrgLimitCredit` values.""" +type OrgLimitCreditConnection { + """A list of `OrgLimitCredit` objects.""" + nodes: [OrgLimitCredit]! - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter + """ + A list of edges which contains the `OrgLimitCredit` and cursor to aid in pagination. + """ + edges: [OrgLimitCreditEdge]! - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """The count of *all* `OrgLimitCredit` you could get from the connection.""" + totalCount: Int! +} - """Checks for all expressions in this list.""" - and: [OrgChartEdgeGrantFilter!] +""" +Append-only ledger of credit grants that automatically update limit ceilings +""" +type OrgLimitCredit { + id: UUID! - """Checks for any expressions in this list.""" - or: [OrgChartEdgeGrantFilter!] + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! - """Negates the expression.""" - not: OrgChartEdgeGrantFilter -} + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID -"""Methods to use when ordering `OrgChartEdgeGrant`.""" -enum OrgChartEdgeGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - CHILD_ID_ASC - CHILD_ID_DESC - 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 -} + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID -"""A connection to a list of `AppClaimedInvite` values.""" -type AppClaimedInviteConnection { - """A list of `AppClaimedInvite` objects.""" - nodes: [AppClaimedInvite]! + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! """ - A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - edges: [AppClaimedInviteEdge]! + creditType: String! - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String """ - The count of *all* `AppClaimedInvite` you could get from the connection. + Reads a single `OrgLimitDefault` that is related to this `OrgLimitCredit`. """ - totalCount: Int! + defaultLimit: OrgLimitDefault +} + +"""A `OrgLimitCredit` edge in the connection.""" +type OrgLimitCreditEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitCredit` at the end of the edge.""" + node: OrgLimitCredit } """ -Records of successfully claimed invitations, linking senders to receivers +A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ """ -type AppClaimedInvite { - id: UUID! +input OrgLimitCreditFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Filter by the object’s `defaultLimitId` field.""" + defaultLimitId: UUIDFilter - """User ID of the original invitation sender""" - senderId: UUID + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime -} + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON + """Filter by the object’s `amount` field.""" + amount: BigIntFilter -"""A `AppClaimedInvite` edge in the connection.""" -type AppClaimedInviteEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `creditType` field.""" + creditType: StringFilter - """The `AppClaimedInvite` at the end of the edge.""" - node: AppClaimedInvite + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitCreditFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitCreditFilter!] + + """Negates the expression.""" + not: OrgLimitCreditFilter + + """Filter by the object’s `defaultLimit` relation.""" + defaultLimit: OrgLimitDefaultFilter } """ -A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppClaimedInviteFilter { +input OrgLimitDefaultFilter { """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 `name` field.""" + name: StringFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter """Checks for all expressions in this list.""" - and: [AppClaimedInviteFilter!] + and: [OrgLimitDefaultFilter!] """Checks for any expressions in this list.""" - or: [AppClaimedInviteFilter!] + or: [OrgLimitDefaultFilter!] """Negates the expression.""" - not: AppClaimedInviteFilter + not: OrgLimitDefaultFilter + + """Filter by the object’s `orgLimitCreditsByDefaultLimitId` relation.""" + orgLimitCreditsByDefaultLimitId: OrgLimitDefaultToManyOrgLimitCreditFilter + + """`orgLimitCreditsByDefaultLimitId` exist.""" + orgLimitCreditsByDefaultLimitIdExist: Boolean } -"""Methods to use when ordering `AppClaimedInvite`.""" -enum AppClaimedInviteOrderBy { +""" +A filter to be used against many `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitDefaultToManyOrgLimitCreditFilter { + """Filters to entities where at least one related entity matches.""" + some: OrgLimitCreditFilter + + """Filters to entities where every related entity matches.""" + every: OrgLimitCreditFilter + + """Filters to entities where no related entity matches.""" + none: OrgLimitCreditFilter +} + +"""Methods to use when ordering `OrgLimitCredit`.""" +enum OrgLimitCreditOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DATA_ASC - DATA_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppGrant` values.""" -type AppGrantConnection { - """A list of `AppGrant` objects.""" - nodes: [AppGrant]! - - """ - A list of edges which contains the `AppGrant` and cursor to aid in pagination. - """ - edges: [AppGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppGrant` you could get from the connection.""" - totalCount: Int! -} - -""" -Records of individual permission grants and revocations for members via bitmask -""" -type AppGrant { - id: UUID! - - """Bitmask of permissions being granted or revoked""" - permissions: BitString! - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! - - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + DEFAULT_LIMIT_ID_ASC + DEFAULT_LIMIT_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + AMOUNT_ASC + AMOUNT_DESC + CREDIT_TYPE_ASC + CREDIT_TYPE_DESC + REASON_ASC + REASON_DESC } -"""A `AppGrant` edge in the connection.""" -type AppGrantEdge { +"""A `OrgLimitDefault` edge in the connection.""" +type OrgLimitDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppGrant` at the end of the edge.""" - node: AppGrant + """The `OrgLimitDefault` at the end of the edge.""" + node: OrgLimitDefault +} + +"""Methods to use when ordering `OrgLimitDefault`.""" +enum OrgLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } """ -A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ """ -input AppGrantFilter { +input AppPermissionFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `description` field.""" + description: StringFilter """Checks for all expressions in this list.""" - and: [AppGrantFilter!] + and: [AppPermissionFilter!] """Checks for any expressions in this list.""" - or: [AppGrantFilter!] + or: [AppPermissionFilter!] """Negates the expression.""" - not: AppGrantFilter + not: AppPermissionFilter } -"""Methods to use when ordering `AppGrant`.""" -enum AppGrantOrderBy { +"""Methods to use when ordering `AppPermission`.""" +enum AppPermissionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppMembershipDefault` values.""" -type AppMembershipDefaultConnection { - """A list of `AppMembershipDefault` objects.""" - nodes: [AppMembershipDefault]! - - """ - A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. - """ - edges: [AppMembershipDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppMembershipDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Default membership settings per entity, controlling initial approval and verification state for new members -""" -type AppMembershipDefault { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean! -} - -"""A `AppMembershipDefault` edge in the connection.""" -type AppMembershipDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppMembershipDefault` at the end of the edge.""" - node: AppMembershipDefault + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC } """ -A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ """ -input AppMembershipDefaultFilter { +input OrgPermissionFilter { """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 `name` field.""" + name: StringFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter + """Filter by the object’s `description` field.""" + description: StringFilter """Checks for all expressions in this list.""" - and: [AppMembershipDefaultFilter!] + and: [OrgPermissionFilter!] """Checks for any expressions in this list.""" - or: [AppMembershipDefaultFilter!] + or: [OrgPermissionFilter!] """Negates the expression.""" - not: AppMembershipDefaultFilter + not: OrgPermissionFilter } -"""Methods to use when ordering `AppMembershipDefault`.""" -enum AppMembershipDefaultOrderBy { +"""Methods to use when ordering `OrgPermission`.""" +enum OrgPermissionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC } -"""A connection to a list of `OrgMembershipDefault` values.""" -type OrgMembershipDefaultConnection { - """A list of `OrgMembershipDefault` objects.""" - nodes: [OrgMembershipDefault]! +"""A connection to a list of `AppLimitCreditCode` values.""" +type AppLimitCreditCodeConnection { + """A list of `AppLimitCreditCode` objects.""" + nodes: [AppLimitCreditCode]! """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. """ - edges: [OrgMembershipDefaultEdge]! + edges: [AppLimitCreditCodeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgMembershipDefault` you could get from the connection. + The count of *all* `AppLimitCreditCode` you could get from the connection. """ totalCount: Int! } -""" -Default membership settings per entity, controlling initial approval and verification state for new members -""" -type OrgMembershipDefault { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - - """References the entity these membership defaults apply to""" - entityId: UUID! -} - -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { +"""A `AppLimitCreditCode` edge in the connection.""" +type AppLimitCreditCodeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault -} - -""" -A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipDefaultFilter { - """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 `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgMembershipDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgMembershipDefaultFilter!] - - """Negates the expression.""" - not: OrgMembershipDefaultFilter + """The `AppLimitCreditCode` at the end of the edge.""" + node: AppLimitCreditCode } -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { +"""Methods to use when ordering `AppLimitCreditCode`.""" +enum AppLimitCreditCodeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC + CODE_ASC + CODE_DESC + MAX_REDEMPTIONS_ASC + MAX_REDEMPTIONS_DESC + CURRENT_REDEMPTIONS_ASC + CURRENT_REDEMPTIONS_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC } -"""A connection to a list of `OrgClaimedInvite` values.""" -type OrgClaimedInviteConnection { - """A list of `OrgClaimedInvite` objects.""" - nodes: [OrgClaimedInvite]! +"""A connection to a list of `AppLimitWarning` values.""" +type AppLimitWarningConnection { + """A list of `AppLimitWarning` objects.""" + nodes: [AppLimitWarning]! """ - A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. + A list of edges which contains the `AppLimitWarning` and cursor to aid in pagination. """ - edges: [OrgClaimedInviteEdge]! + edges: [AppLimitWarningEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgClaimedInvite` you could get from the connection. + The count of *all* `AppLimitWarning` you could get from the connection. """ totalCount: Int! } """ -Records of successfully claimed invitations, linking senders to receivers +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. """ -type OrgClaimedInvite { +type AppLimitWarning { id: UUID! - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """User ID of the original invitation sender""" - senderId: UUID + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! } -"""A `OrgClaimedInvite` edge in the connection.""" -type OrgClaimedInviteEdge { +"""A `AppLimitWarning` edge in the connection.""" +type AppLimitWarningEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgClaimedInvite` at the end of the edge.""" - node: OrgClaimedInvite + """The `AppLimitWarning` at the end of the edge.""" + node: AppLimitWarning } """ -A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitWarning` object types. All fields are combined with a logical ‘and.’ """ -input OrgClaimedInviteFilter { +input AppLimitWarningFilter { """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 `name` field.""" + name: StringFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `warningType` field.""" + warningType: StringFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter """Checks for all expressions in this list.""" - and: [OrgClaimedInviteFilter!] + and: [AppLimitWarningFilter!] """Checks for any expressions in this list.""" - or: [OrgClaimedInviteFilter!] + or: [AppLimitWarningFilter!] """Negates the expression.""" - not: OrgClaimedInviteFilter + not: AppLimitWarningFilter } -"""Methods to use when ordering `OrgClaimedInvite`.""" -enum OrgClaimedInviteOrderBy { +"""Methods to use when ordering `AppLimitWarning`.""" +enum AppLimitWarningOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DATA_ASC - DATA_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC + NAME_ASC + NAME_DESC + WARNING_TYPE_ASC + WARNING_TYPE_DESC + THRESHOLD_VALUE_ASC + THRESHOLD_VALUE_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC } -"""A connection to a list of `AppLimitEvent` values.""" -type AppLimitEventConnection { - """A list of `AppLimitEvent` objects.""" - nodes: [AppLimitEvent]! +"""A connection to a list of `OrgChartEdgeGrant` values.""" +type OrgChartEdgeGrantConnection { + """A list of `OrgChartEdgeGrant` objects.""" + nodes: [OrgChartEdgeGrant]! """ - A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. """ - edges: [AppLimitEventEdge]! + edges: [OrgChartEdgeGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimitEvent` you could get from the connection.""" + """ + The count of *all* `OrgChartEdgeGrant` you could get from the connection. + """ totalCount: Int! } -"""Append-only log of limit events for historical reporting and audit""" -type AppLimitEvent { - """Limit name this event applies to""" - name: String +""" +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +""" +type OrgChartEdgeGrant { + id: UUID! - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID + """Organization this grant applies to""" + entityId: UUID! - """Entity this event applies to; NULL for app-level events""" - entityId: UUID + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID - """Change amount: positive for increment, negative for decrement""" - delta: BigInt + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ + grantorId: UUID - """Usage count before this event""" - numBefore: BigInt + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean! - """Usage count after this event""" - numAfter: BigInt + """Job title or role name being assigned in this grant""" + positionTitle: String - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt + """Numeric seniority level being assigned in this grant""" + positionLevel: Int - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime! } -"""A `AppLimitEvent` edge in the connection.""" -type AppLimitEventEdge { +"""A `OrgChartEdgeGrant` edge in the connection.""" +type OrgChartEdgeGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitEvent` at the end of the edge.""" - node: AppLimitEvent + """The `OrgChartEdgeGrant` at the end of the edge.""" + node: OrgChartEdgeGrant } """ -A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitEventFilter { - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter +input OrgChartEdgeGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `eventType` field.""" - eventType: StringFilter + """Filter by the object’s `childId` field.""" + childId: UUIDFilter - """Filter by the object’s `delta` field.""" - delta: BigIntFilter + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter - """Filter by the object’s `reason` field.""" - reason: StringFilter + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppLimitEventFilter!] + and: [OrgChartEdgeGrantFilter!] """Checks for any expressions in this list.""" - or: [AppLimitEventFilter!] + or: [OrgChartEdgeGrantFilter!] """Negates the expression.""" - not: AppLimitEventFilter + not: OrgChartEdgeGrantFilter } -"""Methods to use when ordering `AppLimitEvent`.""" -enum AppLimitEventOrderBy { +"""Methods to use when ordering `OrgChartEdgeGrant`.""" +enum OrgChartEdgeGrantOrderBy { NATURAL - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC + CHILD_ID_ASC + CHILD_ID_DESC + 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 } -"""A connection to a list of `OrgLimitEvent` values.""" -type OrgLimitEventConnection { - """A list of `OrgLimitEvent` objects.""" - nodes: [OrgLimitEvent]! +"""A connection to a list of `AppClaimedInvite` values.""" +type AppClaimedInviteConnection { + """A list of `AppClaimedInvite` objects.""" + nodes: [AppClaimedInvite]! """ - A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. + A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. """ - edges: [OrgLimitEventEdge]! + edges: [AppClaimedInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgLimitEvent` you could get from the connection.""" + """ + The count of *all* `AppClaimedInvite` you could get from the connection. + """ totalCount: Int! } -"""Append-only log of limit events for historical reporting and audit""" -type OrgLimitEvent { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt +""" +Records of successfully claimed invitations, linking senders to receivers +""" +type AppClaimedInvite { + id: UUID! - """Usage count after this event""" - numAfter: BigInt + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt + """User ID of the original invitation sender""" + senderId: UUID - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `OrgLimitEvent` edge in the connection.""" -type OrgLimitEventEdge { +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `AppClaimedInvite` edge in the connection.""" +type AppClaimedInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitEvent` at the end of the edge.""" - node: OrgLimitEvent + """The `AppClaimedInvite` at the end of the edge.""" + node: AppClaimedInvite } """ -A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitEventFilter { - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter +input AppClaimedInviteFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `reason` field.""" - reason: StringFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgLimitEventFilter!] + and: [AppClaimedInviteFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitEventFilter!] + or: [AppClaimedInviteFilter!] """Negates the expression.""" - not: OrgLimitEventFilter + not: AppClaimedInviteFilter } -"""Methods to use when ordering `OrgLimitEvent`.""" -enum OrgLimitEventOrderBy { +"""Methods to use when ordering `AppClaimedInvite`.""" +enum AppClaimedInviteOrderBy { NATURAL - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATA_ASC + DATA_DESC + SENDER_ID_ASC + SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -"""A connection to a list of `OrgGrant` values.""" -type OrgGrantConnection { - """A list of `OrgGrant` objects.""" - nodes: [OrgGrant]! +"""A connection to a list of `OrgLimitWarning` values.""" +type OrgLimitWarningConnection { + """A list of `OrgLimitWarning` objects.""" + nodes: [OrgLimitWarning]! """ - A list of edges which contains the `OrgGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitWarning` and cursor to aid in pagination. """ - edges: [OrgGrantEdge]! + edges: [OrgLimitWarningEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgGrant` you could get from the connection.""" + """ + The count of *all* `OrgLimitWarning` you could get from the connection. + """ totalCount: Int! } """ -Records of individual permission grants and revocations for members via bitmask +Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. """ -type OrgGrant { +type OrgLimitWarning { id: UUID! - """Bitmask of permissions being granted or revoked""" - permissions: BitString! + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! - """The member receiving or losing the permission grant""" - actorId: UUID! + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! -"""A `OrgGrant` edge in the connection.""" -type OrgGrantEdge { + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID +} + +"""A `OrgLimitWarning` edge in the connection.""" +type OrgLimitWarningEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgGrant` at the end of the edge.""" - node: OrgGrant + """The `OrgLimitWarning` at the end of the edge.""" + node: OrgLimitWarning } """ -A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitWarning` object types. All fields are combined with a logical ‘and.’ """ -input OrgGrantFilter { +input OrgLimitWarningFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `warningType` field.""" + warningType: StringFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `thresholdValue` field.""" + thresholdValue: BigIntFilter + + """Filter by the object’s `taskIdentifier` field.""" + taskIdentifier: StringFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter - """Filter by the object’s `grantorId` field.""" - grantorId: 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: [OrgGrantFilter!] + and: [OrgLimitWarningFilter!] """Checks for any expressions in this list.""" - or: [OrgGrantFilter!] + or: [OrgLimitWarningFilter!] """Negates the expression.""" - not: OrgGrantFilter + not: OrgLimitWarningFilter } -"""Methods to use when ordering `OrgGrant`.""" -enum OrgGrantOrderBy { +"""Methods to use when ordering `OrgLimitWarning`.""" +enum OrgLimitWarningOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC + NAME_ASC + NAME_DESC + WARNING_TYPE_ASC + WARNING_TYPE_DESC + THRESHOLD_VALUE_ASC + THRESHOLD_VALUE_DESC + TASK_IDENTIFIER_ASC + TASK_IDENTIFIER_DESC ENTITY_ID_ASC ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } -"""A connection to a list of `OrgChartEdge` values.""" -type OrgChartEdgeConnection { - """A list of `OrgChartEdge` objects.""" - nodes: [OrgChartEdge]! +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! """ - A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. + A list of edges which contains the `MembershipType` and cursor to aid in pagination. """ - edges: [OrgChartEdgeEdge]! + edges: [MembershipTypeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgChartEdge` you could get from the connection.""" + """The count of *all* `MembershipType` you could get from the connection.""" totalCount: Int! } """ -Organizational chart edges defining parent-child reporting relationships between members within an entity +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) """ -type OrgChartEdge { - id: UUID! - createdAt: Datetime - updatedAt: Datetime +type MembershipType { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! - """Organization this hierarchy edge belongs to""" - entityId: UUID! + """Human-readable name of the membership type""" + name: String! - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! + """Description of what this membership type represents""" + description: String! """ - User ID of the manager; NULL indicates a top-level position with no direct report + Short prefix used to namespace tables and functions for this membership scope """ - parentId: UUID + prefix: String! - """Job title or role name for this position in the org chart""" - positionTitle: String + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean! } -"""A `OrgChartEdge` edge in the connection.""" -type OrgChartEdgeEdge { +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgChartEdge` at the end of the edge.""" - node: OrgChartEdge + """The `MembershipType` at the end of the edge.""" + node: MembershipType } """ -A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ """ -input OrgChartEdgeFilter { +input MembershipTypeFilter { """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 + id: IntFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `childId` field.""" - childId: UUIDFilter + """Filter by the object’s `description` field.""" + description: StringFilter - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter + """Filter by the object’s `parentMembershipType` field.""" + parentMembershipType: IntFilter - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter + """Filter by the object’s `hasUsersTableEntry` field.""" + hasUsersTableEntry: BooleanFilter """Checks for all expressions in this list.""" - and: [OrgChartEdgeFilter!] + and: [MembershipTypeFilter!] """Checks for any expressions in this list.""" - or: [OrgChartEdgeFilter!] + or: [MembershipTypeFilter!] """Negates the expression.""" - not: OrgChartEdgeFilter + not: MembershipTypeFilter } -"""Methods to use when ordering `OrgChartEdge`.""" -enum OrgChartEdgeOrderBy { +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - CHILD_ID_ASC - CHILD_ID_DESC - PARENT_ID_ASC - PARENT_ID_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PREFIX_ASC + PREFIX_DESC + PARENT_MEMBERSHIP_TYPE_ASC + PARENT_MEMBERSHIP_TYPE_DESC + HAS_USERS_TABLE_ENTRY_ASC + HAS_USERS_TABLE_ENTRY_DESC } -"""A connection to a list of `UsageSnapshot` values.""" -type UsageSnapshotConnection { - """A list of `UsageSnapshot` objects.""" - nodes: [UsageSnapshot]! +"""A connection to a list of `AppGrant` values.""" +type AppGrantConnection { + """A list of `AppGrant` objects.""" + nodes: [AppGrant]! """ - A list of edges which contains the `UsageSnapshot` and cursor to aid in pagination. + A list of edges which contains the `AppGrant` and cursor to aid in pagination. """ - edges: [UsageSnapshotEdge]! + edges: [AppGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `UsageSnapshot` you could get from the connection.""" + """The count of *all* `AppGrant` you could get from the connection.""" totalCount: Int! } """ -Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. +Records of individual permission grants and revocations for members via bitmask """ -type UsageSnapshot { - """ - The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. - """ - databaseId: UUID! - - """ - Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). - """ - metricName: String! +type AppGrant { + id: UUID! - """ - The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). - """ - metricValue: BigInt! + """Bitmask of permissions being granted or revoked""" + permissions: BitString! - """ - Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. - """ - dimensions: JSON! + """True to grant the permissions, false to revoke them""" + isGrant: Boolean! - """ - When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. - """ - capturedAt: Datetime! - id: UUID! + """The member receiving or losing the permission grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `UsageSnapshot` edge in the connection.""" -type UsageSnapshotEdge { +"""A `AppGrant` edge in the connection.""" +type AppGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `UsageSnapshot` at the end of the edge.""" - node: UsageSnapshot + """The `AppGrant` at the end of the edge.""" + node: AppGrant } """ -A filter to be used against `UsageSnapshot` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ """ -input UsageSnapshotFilter { - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter +input AppGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Filter by the object’s `metricName` field.""" - metricName: StringFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Filter by the object’s `metricValue` field.""" - metricValue: BigIntFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `dimensions` field.""" - dimensions: JSONFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Filter by the object’s `capturedAt` field.""" - capturedAt: DatetimeFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [UsageSnapshotFilter!] + and: [AppGrantFilter!] """Checks for any expressions in this list.""" - or: [UsageSnapshotFilter!] + or: [AppGrantFilter!] """Negates the expression.""" - not: UsageSnapshotFilter + not: AppGrantFilter } -""" -A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ -""" -input JSONFilter { +"""Methods to use when ordering `AppGrant`.""" +enum AppGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `OrgClaimedInvite` values.""" +type OrgClaimedInviteConnection { + """A list of `OrgClaimedInvite` objects.""" + nodes: [OrgClaimedInvite]! + """ - Is null (if `true` is specified) or is not null (if `false` is specified). + A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: JSON + edges: [OrgClaimedInviteEdge]! - """Not equal to the specified value.""" - notEqualTo: JSON + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Not equal to the specified value, treating null like an ordinary value. + The count of *all* `OrgClaimedInvite` you could get from the connection. """ - distinctFrom: JSON + totalCount: Int! +} - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: JSON +""" +Records of successfully claimed invitations, linking senders to receivers +""" +type OrgClaimedInvite { + id: UUID! - """Included in the specified list.""" - in: [JSON!] + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Not included in the specified list.""" - notIn: [JSON!] + """User ID of the original invitation sender""" + senderId: UUID - """Less than the specified value.""" - lessThan: JSON + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} - """Less than or equal to the specified value.""" - lessThanOrEqualTo: JSON +"""A `OrgClaimedInvite` edge in the connection.""" +type OrgClaimedInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Greater than the specified value.""" - greaterThan: JSON + """The `OrgClaimedInvite` at the end of the edge.""" + node: OrgClaimedInvite +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: JSON +""" +A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ +""" +input OrgClaimedInviteFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Contains the specified JSON.""" - contains: JSON + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter - """Contains the specified key.""" - containsKey: String + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter - """Contains all of the specified keys.""" - containsAllKeys: [String!] + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Contains any of the specified keys.""" - containsAnyKeys: [String!] + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Contained by the specified JSON.""" - containedBy: JSON + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [OrgClaimedInviteFilter!] + + """Checks for any expressions in this list.""" + or: [OrgClaimedInviteFilter!] + + """Negates the expression.""" + not: OrgClaimedInviteFilter } -"""Methods to use when ordering `UsageSnapshot`.""" -enum UsageSnapshotOrderBy { +"""Methods to use when ordering `OrgClaimedInvite`.""" +enum OrgClaimedInviteOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - METRIC_NAME_ASC - METRIC_NAME_DESC - METRIC_VALUE_ASC - METRIC_VALUE_DESC - DIMENSIONS_ASC - DIMENSIONS_DESC - CAPTURED_AT_ASC - CAPTURED_AT_DESC ID_ASC ID_DESC + DATA_ASC + DATA_DESC + SENDER_ID_ASC + SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `AppLimit` values.""" -type AppLimitConnection { - """A list of `AppLimit` objects.""" - nodes: [AppLimit]! +"""A connection to a list of `OrgGrant` values.""" +type OrgGrantConnection { + """A list of `OrgGrant` objects.""" + nodes: [OrgGrant]! """ - A list of edges which contains the `AppLimit` and cursor to aid in pagination. + A list of edges which contains the `OrgGrant` and cursor to aid in pagination. """ - edges: [AppLimitEdge]! + edges: [OrgGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimit` you could get from the connection.""" + """The count of *all* `OrgGrant` you could get from the connection.""" totalCount: Int! } -"""Tracks per-actor usage counts against configurable maximum limits""" -type AppLimit { - id: UUID! - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: BigInt - - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt - - """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. - """ - softMax: BigInt - - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime - - """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window - """ - windowDuration: Interval - - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt -} - """ -An interval of time that has passed where the smallest distinct unit is a second. +Records of individual permission grants and revocations for members via bitmask """ -type Interval { - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of minutes.""" - minutes: Int +type OrgGrant { + id: UUID! - """A quantity of hours.""" - hours: Int + """Bitmask of permissions being granted or revoked""" + permissions: BitString! - """A quantity of days.""" - days: Int + """True to grant the permissions, false to revoke them""" + isGrant: Boolean! - """A quantity of months.""" - months: Int + """The member receiving or losing the permission grant""" + actorId: UUID! - """A quantity of years.""" - years: Int + """The entity (org or group) this permission grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `AppLimit` edge in the connection.""" -type AppLimitEdge { +"""A `OrgGrant` edge in the connection.""" +type OrgGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimit` at the end of the edge.""" - node: AppLimit + """The `OrgGrant` at the end of the edge.""" + node: OrgGrant } """ -A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitFilter { +input OrgGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Filter by the object’s `actorId` field.""" actorId: UUIDFilter - """Filter by the object’s `num` field.""" - num: BigIntFilter - - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter + """Checks for all expressions in this list.""" + and: [OrgGrantFilter!] - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter - - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter - - """Checks for all expressions in this list.""" - and: [AppLimitFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitFilter!] + """Checks for any expressions in this list.""" + or: [OrgGrantFilter!] """Negates the expression.""" - not: AppLimitFilter -} - -""" -A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ -""" -input IntervalFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: IntervalInput - - """Not equal to the specified value.""" - notEqualTo: IntervalInput - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: IntervalInput - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: IntervalInput - - """Included in the specified list.""" - in: [IntervalInput!] - - """Not included in the specified list.""" - notIn: [IntervalInput!] - - """Less than the specified value.""" - lessThan: IntervalInput - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: IntervalInput - - """Greater than the specified value.""" - greaterThan: IntervalInput - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: IntervalInput -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of minutes.""" - minutes: Int - - """A quantity of hours.""" - hours: Int - - """A quantity of days.""" - days: Int - - """A quantity of months.""" - months: Int - - """A quantity of years.""" - years: Int + not: OrgGrantFilter } -"""Methods to use when ordering `AppLimit`.""" -enum AppLimitOrderBy { +"""Methods to use when ordering `OrgGrant`.""" +enum OrgGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + IS_GRANT_ASC + IS_GRANT_DESC ACTOR_ID_ASC ACTOR_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -"""A connection to a list of `AppInvite` values.""" -type AppInviteConnection { - """A list of `AppInvite` objects.""" - nodes: [AppInvite]! +"""A connection to a list of `AppLimitEvent` values.""" +type AppLimitEventConnection { + """A list of `AppLimitEvent` objects.""" + nodes: [AppLimitEvent]! """ - A list of edges which contains the `AppInvite` and cursor to aid in pagination. + A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. """ - edges: [AppInviteEdge]! + edges: [AppLimitEventEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppInvite` you could get from the connection.""" + """The count of *all* `AppLimitEvent` you could get from the connection.""" totalCount: Int! } -""" -Invitation records sent to prospective members via email, with token-based redemption and expiration -""" -type AppInvite { +"""Append-only log of limit events for historical reporting and audit""" +type AppLimitEvent { + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Limit name this event applies to""" + name: String - """User ID of the member who sent this invitation""" - senderId: UUID! + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """Unique random hex token used to redeem this invitation""" - inviteToken: String! + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean! + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int! + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Running count of how many times this invite has been claimed""" - inviteCount: Int! + """Usage count before this event""" + numBefore: BigInt - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean! + """Usage count after this event""" + numAfter: BigInt - """Optional JSON payload of additional invite metadata""" - data: JSON + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + Optional reason or source: achievement, invite, plan_change, purchase, etc. """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime! - createdAt: Datetime - updatedAt: Datetime + reason: String } -scalar ConstructiveInternalTypeEmail - -"""A `AppInvite` edge in the connection.""" -type AppInviteEdge { +"""A `AppLimitEvent` edge in the connection.""" +type AppLimitEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppInvite` at the end of the edge.""" - node: AppInvite + """The `AppLimitEvent` at the end of the edge.""" + node: AppLimitEvent } """ -A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ """ -input AppInviteFilter { +input AppLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + """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 `name` field.""" + name: StringFilter - """Filter by the object’s `inviteValid` field.""" - inviteValid: BooleanFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `inviteLimit` field.""" - inviteLimit: IntFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `inviteCount` field.""" - inviteCount: IntFilter + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """Filter by the object’s `multiple` field.""" - multiple: BooleanFilter + """Filter by the object’s `delta` field.""" + delta: BigIntFilter - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `reason` field.""" + reason: StringFilter """Checks for all expressions in this list.""" - and: [AppInviteFilter!] + and: [AppLimitEventFilter!] """Checks for any expressions in this list.""" - or: [AppInviteFilter!] + or: [AppLimitEventFilter!] """Negates the expression.""" - not: AppInviteFilter + not: AppLimitEventFilter } -""" -A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ -""" -input 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!] +"""Methods to use when ordering `AppLimitEvent`.""" +enum AppLimitEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC +} - """Not included in the specified list.""" - notIn: [String!] +"""A connection to a list of `OrgLimitEvent` values.""" +type OrgLimitEventConnection { + """A list of `OrgLimitEvent` objects.""" + nodes: [OrgLimitEvent]! - """Less than the specified value.""" - lessThan: String + """ + A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. + """ + edges: [OrgLimitEventEdge]! - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Greater than the specified value.""" - greaterThan: String + """The count of *all* `OrgLimitEvent` you could get from the connection.""" + totalCount: Int! +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String +"""Append-only log of limit events for historical reporting and audit""" +type OrgLimitEvent { + createdAt: Datetime! - """Contains the specified string (case-sensitive).""" - includes: String + """Unique identifier for each limit event""" + id: UUID! - """Does not contain the specified string (case-sensitive).""" - notIncludes: String + """Limit name this event applies to""" + name: String - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeEmail + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeEmail + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """Starts with the specified string (case-sensitive).""" - startsWith: String + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeEmail + """Usage count before this event""" + numBefore: BigInt - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeEmail + """Usage count after this event""" + numAfter: BigInt - """Ends with the specified string (case-sensitive).""" - endsWith: String + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeEmail +"""A `OrgLimitEvent` edge in the connection.""" +type OrgLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeEmail + """The `OrgLimitEvent` at the end of the edge.""" + node: OrgLimitEvent +} - """ - 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 +""" +A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """ - 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 + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - 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 + """Filter by the object’s `name` field.""" + name: StringFilter - """ - 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 + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `delta` field.""" + delta: BigIntFilter - """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - notDistinctFromInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter - """Included in the specified list (case-insensitive).""" - inInsensitive: [ConstructiveInternalTypeEmail!] + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [ConstructiveInternalTypeEmail!] + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `reason` field.""" + reason: StringFilter - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """Checks for all expressions in this list.""" + and: [OrgLimitEventFilter!] - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: ConstructiveInternalTypeEmail + """Checks for any expressions in this list.""" + or: [OrgLimitEventFilter!] - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """Negates the expression.""" + not: OrgLimitEventFilter } -"""Methods to use when ordering `AppInvite`.""" -enum AppInviteOrderBy { +"""Methods to use when ordering `OrgLimitEvent`.""" +enum OrgLimitEventOrderBy { 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 - INVITE_VALID_DESC - INVITE_LIMIT_ASC - INVITE_LIMIT_DESC - INVITE_COUNT_ASC - INVITE_COUNT_DESC - MULTIPLE_ASC - MULTIPLE_DESC - DATA_ASC - DATA_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC CREATED_AT_ASC CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC } """A connection to a list of `OrgMembershipSetting` values.""" @@ -6172,184 +5483,200 @@ enum OrgMembershipSettingOrderBy { LIMIT_ALLOCATION_MODE_DESC } -"""A connection to a list of `OrgLimitAggregate` values.""" -type OrgLimitAggregateConnection { - """A list of `OrgLimitAggregate` objects.""" - nodes: [OrgLimitAggregate]! +"""A connection to a list of `AppMembership` values.""" +type AppMembershipConnection { + """A list of `AppMembership` objects.""" + nodes: [AppMembership]! """ - A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. + A list of edges which contains the `AppMembership` and cursor to aid in pagination. """ - edges: [OrgLimitAggregateEdge]! + edges: [AppMembershipEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgLimitAggregate` you could get from the connection. - """ + """The count of *all* `AppMembership` you could get from the connection.""" totalCount: Int! } """ -Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status """ -type OrgLimitAggregate { +type AppMembership { id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID! - - """Current aggregate usage count for this entity and limit""" - num: BigInt + """Whether this membership has been approved by an admin""" + isApproved: Boolean! - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt + """Whether this member has been banned from the entity""" + isBanned: Boolean! - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """Whether this membership is temporarily disabled""" + isDisabled: Boolean! - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean! """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - windowDuration: Interval + isActive: Boolean! - """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt + """Whether the actor is the owner of this entity""" + isOwner: Boolean! - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean! """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + Aggregated permission bitmask combining profile-based and directly granted permissions """ - periodCredits: BigInt + permissions: BitString! """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + Bitmask of permissions directly granted to this member (not from profiles) """ - reserved: BigInt + granted: BitString! + + """References the user who holds this membership""" + actorId: UUID! + profileId: UUID } -"""A `OrgLimitAggregate` edge in the connection.""" -type OrgLimitAggregateEdge { +"""A `AppMembership` edge in the connection.""" +type AppMembershipEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitAggregate` at the end of the edge.""" - node: OrgLimitAggregate + """The `AppMembership` at the end of the edge.""" + node: AppMembership } """ -A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitAggregateFilter { +input AppMembershipFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `num` field.""" - num: BigIntFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `max` field.""" - max: BigIntFilter + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Filter by the object’s `softMax` field.""" - softMax: BigIntFilter + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter - """Filter by the object’s `windowStart` field.""" - windowStart: DatetimeFilter + """Filter by the object’s `isBanned` field.""" + isBanned: BooleanFilter - """Filter by the object’s `windowDuration` field.""" - windowDuration: IntervalFilter + """Filter by the object’s `isDisabled` field.""" + isDisabled: BooleanFilter - """Filter by the object’s `planMax` field.""" - planMax: BigIntFilter + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter - """Filter by the object’s `purchasedCredits` field.""" - purchasedCredits: BigIntFilter + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter - """Filter by the object’s `periodCredits` field.""" - periodCredits: BigIntFilter + """Filter by the object’s `isOwner` field.""" + isOwner: BooleanFilter - """Filter by the object’s `reserved` field.""" - reserved: BigIntFilter + """Filter by the object’s `isAdmin` field.""" + isAdmin: BooleanFilter + + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `granted` field.""" + granted: BitStringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgLimitAggregateFilter!] + and: [AppMembershipFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitAggregateFilter!] + or: [AppMembershipFilter!] """Negates the expression.""" - not: OrgLimitAggregateFilter + not: AppMembershipFilter } -"""Methods to use when ordering `OrgLimitAggregate`.""" -enum OrgLimitAggregateOrderBy { +"""Methods to use when ordering `AppMembership`.""" +enum AppMembershipOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC - WINDOW_START_ASC - WINDOW_START_DESC - WINDOW_DURATION_ASC - WINDOW_DURATION_DESC - PLAN_MAX_ASC - PLAN_MAX_DESC - PURCHASED_CREDITS_ASC - PURCHASED_CREDITS_DESC - PERIOD_CREDITS_ASC - PERIOD_CREDITS_DESC - RESERVED_ASC - RESERVED_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + 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 } -"""A connection to a list of `OrgLimit` values.""" -type OrgLimitConnection { - """A list of `OrgLimit` objects.""" - nodes: [OrgLimit]! +"""A connection to a list of `AppLimit` values.""" +type AppLimitConnection { + """A list of `AppLimit` objects.""" + nodes: [AppLimit]! """ - A list of edges which contains the `OrgLimit` and cursor to aid in pagination. + A list of edges which contains the `AppLimit` and cursor to aid in pagination. """ - edges: [OrgLimitEdge]! + edges: [AppLimitEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgLimit` you could get from the connection.""" + """The count of *all* `AppLimit` you could get from the connection.""" totalCount: Int! } """Tracks per-actor usage counts against configurable maximum limits""" -type OrgLimit { +type AppLimit { id: UUID! """Name identifier of the limit being tracked""" @@ -6393,22 +5720,48 @@ type OrgLimit { Temporary credits for the current billing window. Resets to 0 on window expiry. """ periodCredits: BigInt - entityId: UUID! } -"""A `OrgLimit` edge in the connection.""" -type OrgLimitEdge { +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +type Interval { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""A `AppLimit` edge in the connection.""" +type AppLimitEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimit` at the end of the edge.""" - node: OrgLimit + """The `AppLimit` at the end of the edge.""" + node: AppLimit } """ -A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitFilter { +input AppLimitFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -6442,25 +5795,91 @@ input OrgLimitFilter { """Filter by the object’s `periodCredits` field.""" periodCredits: BigIntFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - """Checks for all expressions in this list.""" - and: [OrgLimitFilter!] + and: [AppLimitFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitFilter!] + or: [AppLimitFilter!] """Negates the expression.""" - not: OrgLimitFilter + not: AppLimitFilter } -"""Methods to use when ordering `OrgLimit`.""" -enum OrgLimitOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC +""" +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +""" +input IntervalFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: IntervalInput + + """Not equal to the specified value.""" + notEqualTo: IntervalInput + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: IntervalInput + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput + + """Included in the specified list.""" + in: [IntervalInput!] + + """Not included in the specified list.""" + notIn: [IntervalInput!] + + """Less than the specified value.""" + lessThan: IntervalInput + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput + + """Greater than the specified value.""" + greaterThan: IntervalInput + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""Methods to use when ordering `AppLimit`.""" +enum AppLimitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC ID_DESC NAME_ASC NAME_DESC @@ -6482,71 +5901,25 @@ enum OrgLimitOrderBy { PURCHASED_CREDITS_DESC PERIOD_CREDITS_ASC PERIOD_CREDITS_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC } -"""A connection to a list of `OrgMemberProfile` values.""" -type OrgMemberProfileConnection { - """A list of `OrgMemberProfile` objects.""" - nodes: [OrgMemberProfile]! +"""A connection to a list of `OrgMembership` values.""" +type OrgMembershipConnection { + """A list of `OrgMembership` objects.""" + nodes: [OrgMembership]! """ - A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. + A list of edges which contains the `OrgMembership` and cursor to aid in pagination. """ - edges: [OrgMemberProfileEdge]! + edges: [OrgMembershipEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMemberProfile` you could get from the connection. - """ + """The count of *all* `OrgMembership` you could get from the connection.""" totalCount: Int! } -""" -Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) -""" -type OrgMemberProfile { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage - - """ - Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. - """ - membership: OrgMembership -} - -scalar ConstructiveInternalTypeImage - """ Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status """ @@ -6608,19 +5981,61 @@ type OrgMembership { orgMemberProfileByMembershipId: OrgMemberProfile } -"""A `OrgMemberProfile` edge in the connection.""" -type OrgMemberProfileEdge { +""" +Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) +""" +type OrgMemberProfile { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! + + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID! + + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! + + """Display name shown to other entity members""" + displayName: String + + """ + Email address visible to other entity members (auto-populated from verified primary email) + """ + email: String + + """Job title or role description visible to other entity members""" + title: String + + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage + + """ + Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. + """ + membership: OrgMembership +} + +scalar ConstructiveInternalTypeImage + +"""A `OrgMembership` edge in the connection.""" +type OrgMembershipEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMemberProfile` at the end of the edge.""" - node: OrgMemberProfile + """The `OrgMembership` at the end of the edge.""" + node: OrgMembership } """ -A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ """ -input OrgMemberProfileFilter { +input OrgMembershipFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -6630,45 +6045,119 @@ input OrgMemberProfileFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter - """Filter by the object’s `displayName` field.""" - displayName: StringFilter + """Filter by the object’s `isBanned` field.""" + isBanned: BooleanFilter - """Filter by the object’s `email` field.""" - email: StringFilter + """Filter by the object’s `isDisabled` field.""" + isDisabled: BooleanFilter - """Filter by the object’s `title` field.""" - title: StringFilter + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter - """Filter by the object’s `bio` field.""" - bio: StringFilter + """Filter by the object’s `isExternal` field.""" + isExternal: BooleanFilter - """Filter by the object’s `profilePicture` field.""" - profilePicture: ConstructiveInternalTypeImageFilter + """Filter by the object’s `isOwner` field.""" + isOwner: BooleanFilter + + """Filter by the object’s `isAdmin` field.""" + isAdmin: BooleanFilter + + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `granted` field.""" + granted: BitStringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `isReadOnly` field.""" + isReadOnly: BooleanFilter + + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgMemberProfileFilter!] + and: [OrgMembershipFilter!] """Checks for any expressions in this list.""" - or: [OrgMemberProfileFilter!] + or: [OrgMembershipFilter!] """Negates the expression.""" - not: OrgMemberProfileFilter + not: OrgMembershipFilter - """Filter by the object’s `membership` relation.""" - membership: OrgMembershipFilter + """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" + orgMemberProfileByMembershipId: OrgMemberProfileFilter + + """A related `orgMemberProfileByMembershipId` exists.""" + orgMemberProfileByMembershipIdExists: Boolean } """ -A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ +""" +input OrgMemberProfileFilter { + """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 `membershipId` field.""" + membershipId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `email` field.""" + email: StringFilter + + """Filter by the object’s `title` field.""" + title: StringFilter + + """Filter by the object’s `bio` field.""" + bio: StringFilter + + """Filter by the object’s `profilePicture` field.""" + profilePicture: ConstructiveInternalTypeImageFilter + + """Checks for all expressions in this list.""" + and: [OrgMemberProfileFilter!] + + """Checks for any expressions in this list.""" + or: [OrgMemberProfileFilter!] + + """Negates the expression.""" + not: OrgMemberProfileFilter + + """Filter by the object’s `membership` relation.""" + membership: OrgMembershipFilter +} + +""" +A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ """ input ConstructiveInternalTypeImageFilter { """ @@ -6724,78 +6213,75 @@ input ConstructiveInternalTypeImageFilter { containedBy: ConstructiveInternalTypeImage } -""" -A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ -""" -input OrgMembershipFilter { - """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 `isBanned` field.""" - isBanned: BooleanFilter - - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `isExternal` field.""" - isExternal: BooleanFilter - - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter - - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `granted` field.""" - granted: BitStringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter +"""Methods to use when ordering `OrgMembership`.""" +enum OrgMembershipOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + 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_EXTERNAL_ASC + IS_EXTERNAL_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 + ENTITY_ID_DESC + IS_READ_ONLY_ASC + IS_READ_ONLY_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC +} - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter +"""A connection to a list of `OrgMemberProfile` values.""" +type OrgMemberProfileConnection { + """A list of `OrgMemberProfile` objects.""" + nodes: [OrgMemberProfile]! - """Checks for all expressions in this list.""" - and: [OrgMembershipFilter!] + """ + A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. + """ + edges: [OrgMemberProfileEdge]! - """Checks for any expressions in this list.""" - or: [OrgMembershipFilter!] + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Negates the expression.""" - not: OrgMembershipFilter + """ + The count of *all* `OrgMemberProfile` you could get from the connection. + """ + totalCount: Int! +} - """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" - orgMemberProfileByMembershipId: OrgMemberProfileFilter +"""A `OrgMemberProfile` edge in the connection.""" +type OrgMemberProfileEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """A related `orgMemberProfileByMembershipId` exists.""" - orgMemberProfileByMembershipIdExists: Boolean + """The `OrgMemberProfile` at the end of the edge.""" + node: OrgMemberProfile } """Methods to use when ordering `OrgMemberProfile`.""" @@ -6827,179 +6313,602 @@ enum OrgMemberProfileOrderBy { PROFILE_PICTURE_DESC } -"""A connection to a list of `AppMembership` values.""" -type AppMembershipConnection { - """A list of `AppMembership` objects.""" - nodes: [AppMembership]! +"""A connection to a list of `OrgLimitAggregate` values.""" +type OrgLimitAggregateConnection { + """A list of `OrgLimitAggregate` objects.""" + nodes: [OrgLimitAggregate]! """ - A list of edges which contains the `AppMembership` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. """ - edges: [AppMembershipEdge]! + edges: [OrgLimitAggregateEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppMembership` you could get from the connection.""" + """ + The count of *all* `OrgLimitAggregate` you could get from the connection. + """ totalCount: Int! } """ -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) """ -type AppMembership { +type OrgLimitAggregate { id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether this membership has been approved by an admin""" - isApproved: Boolean! + """Name identifier of the aggregate limit being tracked""" + name: String - """Whether this member has been banned from the entity""" - isBanned: Boolean! + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! - """Whether this membership is temporarily disabled""" - isDisabled: Boolean! + """Current aggregate usage count for this entity and limit""" + num: BigInt - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean! + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime """ - Computed field indicating the membership is approved, verified, not banned, and not disabled + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window """ - isActive: Boolean! - - """Whether the actor is the owner of this entity""" - isOwner: Boolean! + windowDuration: Interval - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean! + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. """ - permissions: BitString! + purchasedCredits: BigInt """ - Bitmask of permissions directly granted to this member (not from profiles) + Temporary credits for the current billing window. Resets to 0 on window expiry. """ - granted: BitString! + periodCredits: BigInt - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID + """ + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + """ + reserved: BigInt } -"""A `AppMembership` edge in the connection.""" -type AppMembershipEdge { +"""A `OrgLimitAggregate` edge in the connection.""" +type OrgLimitAggregateEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppMembership` at the end of the edge.""" - node: AppMembership + """The `OrgLimitAggregate` at the end of the edge.""" + node: OrgLimitAggregate } """ -A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ """ -input AppMembershipFilter { +input OrgLimitAggregateFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Filter by the object’s `num` field.""" + num: BigIntFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter - """Filter by the object’s `isBanned` field.""" - isBanned: BooleanFilter + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter + """Filter by the object’s `reserved` field.""" + reserved: BigIntFilter - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Checks for all expressions in this list.""" + and: [OrgLimitAggregateFilter!] - """Filter by the object’s `granted` field.""" - granted: BitStringFilter + """Checks for any expressions in this list.""" + or: [OrgLimitAggregateFilter!] + + """Negates the expression.""" + not: OrgLimitAggregateFilter +} + +"""Methods to use when ordering `OrgLimitAggregate`.""" +enum OrgLimitAggregateOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + RESERVED_ASC + RESERVED_DESC +} + +"""A connection to a list of `OrgLimit` values.""" +type OrgLimitConnection { + """A list of `OrgLimit` objects.""" + nodes: [OrgLimit]! + + """ + A list of edges which contains the `OrgLimit` and cursor to aid in pagination. + """ + edges: [OrgLimitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimit` you could get from the connection.""" + totalCount: Int! +} + +"""Tracks per-actor usage counts against configurable maximum limits""" +type OrgLimit { + id: UUID! + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + entityId: UUID! +} + +"""A `OrgLimit` edge in the connection.""" +type OrgLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimit` at the end of the edge.""" + node: OrgLimit +} + +""" +A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter """Filter by the object’s `actorId` field.""" actorId: UUIDFilter - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """Filter by the object’s `num` field.""" + num: BigIntFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter + + """Filter by the object’s `planMax` field.""" + planMax: BigIntFilter + + """Filter by the object’s `purchasedCredits` field.""" + purchasedCredits: BigIntFilter + + """Filter by the object’s `periodCredits` field.""" + periodCredits: BigIntFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter """Checks for all expressions in this list.""" - and: [AppMembershipFilter!] + and: [OrgLimitFilter!] """Checks for any expressions in this list.""" - or: [AppMembershipFilter!] + or: [OrgLimitFilter!] """Negates the expression.""" - not: AppMembershipFilter + not: OrgLimitFilter } -"""Methods to use when ordering `AppMembership`.""" -enum AppMembershipOrderBy { +"""Methods to use when ordering `OrgLimit`.""" +enum OrgLimitOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - 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 + NAME_ASC + NAME_DESC ACTOR_ID_ASC ACTOR_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + PLAN_MAX_ASC + PLAN_MAX_DESC + PURCHASED_CREDITS_ASC + PURCHASED_CREDITS_DESC + PERIOD_CREDITS_ASC + PERIOD_CREDITS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC +} + +"""A connection to a list of `AppInvite` values.""" +type AppInviteConnection { + """A list of `AppInvite` objects.""" + nodes: [AppInvite]! + + """ + A list of edges which contains the `AppInvite` and cursor to aid in pagination. + """ + edges: [AppInviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppInvite` you could get from the connection.""" + totalCount: Int! +} + +""" +Invitation records sent to prospective members via email, with token-based redemption and expiration +""" +type AppInvite { + id: UUID! + + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID! + + """Unique random hex token used to redeem this invitation""" + inviteToken: String! + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean! + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int! + + """Running count of how many times this invite has been claimed""" + inviteCount: Int! + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean! + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime! + createdAt: Datetime + updatedAt: Datetime +} + +scalar ConstructiveInternalTypeEmail + +"""A `AppInvite` edge in the connection.""" +type AppInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppInvite` at the end of the edge.""" + node: AppInvite +} + +""" +A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ +""" +input AppInviteFilter { + """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 `profileId` field.""" + profileId: UUIDFilter + + """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: [AppInviteFilter!] + + """Checks for any expressions in this list.""" + or: [AppInviteFilter!] + + """Negates the expression.""" + not: AppInviteFilter +} + +""" +A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppInvite`.""" +enum AppInviteOrderBy { + 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 + INVITE_VALID_DESC + INVITE_LIMIT_ASC + INVITE_LIMIT_DESC + INVITE_COUNT_ASC + INVITE_COUNT_DESC + MULTIPLE_ASC + MULTIPLE_DESC + DATA_ASC + DATA_DESC PROFILE_ID_ASC PROFILE_ID_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } """A connection to a list of `OrgInvite` values.""" @@ -7176,75 +7085,6 @@ enum OrgInviteOrderBy { ENTITY_ID_DESC } -"""A connection to a list of `OrgMembership` values.""" -type OrgMembershipConnection { - """A list of `OrgMembership` objects.""" - nodes: [OrgMembership]! - - """ - A list of edges which contains the `OrgMembership` and cursor to aid in pagination. - """ - edges: [OrgMembershipEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgMembership` you could get from the connection.""" - totalCount: Int! -} - -"""A `OrgMembership` edge in the connection.""" -type OrgMembershipEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembership` at the end of the edge.""" - node: OrgMembership -} - -"""Methods to use when ordering `OrgMembership`.""" -enum OrgMembershipOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - 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_EXTERNAL_ASC - IS_EXTERNAL_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 - ENTITY_ID_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC -} - """Root meta schema type""" type MetaSchema { tables: [MetaTable!]! @@ -7436,13 +7276,21 @@ type Mutation { input: CreateAppPermissionDefaultInput! ): CreateAppPermissionDefaultPayload - """Creates a single `AppLimitCreditCode`.""" - createAppLimitCreditCode( + """Creates a single `AppAdminGrant`.""" + createAppAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditCodeInput! - ): CreateAppLimitCreditCodePayload + input: CreateAppAdminGrantInput! + ): CreateAppAdminGrantPayload + + """Creates a single `AppOwnerGrant`.""" + createAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppOwnerGrantInput! + ): CreateAppOwnerGrantPayload """Creates a single `OrgPermissionDefault`.""" createOrgPermissionDefault( @@ -7452,37 +7300,37 @@ type Mutation { input: CreateOrgPermissionDefaultInput! ): CreateOrgPermissionDefaultPayload - """Creates a single `AppPermission`.""" - createAppPermission( + """Creates a single `AppMembershipDefault`.""" + createAppMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppPermissionInput! - ): CreateAppPermissionPayload + input: CreateAppMembershipDefaultInput! + ): CreateAppMembershipDefaultPayload - """Creates a single `OrgPermission`.""" - createOrgPermission( + """Creates a single `OrgAdminGrant`.""" + createOrgAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgPermissionInput! - ): CreateOrgPermissionPayload + input: CreateOrgAdminGrantInput! + ): CreateOrgAdminGrantPayload - """Creates a single `AppAdminGrant`.""" - createAppAdminGrant( + """Creates a single `OrgMembershipDefault`.""" + createOrgMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppAdminGrantInput! - ): CreateAppAdminGrantPayload + input: CreateOrgMembershipDefaultInput! + ): CreateOrgMembershipDefaultPayload - """Creates a single `AppOwnerGrant`.""" - createAppOwnerGrant( + """Creates a single `OrgOwnerGrant`.""" + createOrgOwnerGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppOwnerGrantInput! - ): CreateAppOwnerGrantPayload + input: CreateOrgOwnerGrantInput! + ): CreateOrgOwnerGrantPayload """Creates a single `AppLimitCapsDefault`.""" createAppLimitCapsDefault( @@ -7516,29 +7364,21 @@ type Mutation { input: CreateOrgLimitCapInput! ): CreateOrgLimitCapPayload - """Creates a single `OrgAdminGrant`.""" - createOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgAdminGrantInput! - ): CreateOrgAdminGrantPayload - - """Creates a single `OrgOwnerGrant`.""" - createOrgOwnerGrant( + """Creates a single `OrgChartEdge`.""" + createOrgChartEdge( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgOwnerGrantInput! - ): CreateOrgOwnerGrantPayload + input: CreateOrgChartEdgeInput! + ): CreateOrgChartEdgePayload - """Creates a single `MembershipType`.""" - createMembershipType( + """Creates a single `AppLimitCreditCodeItem`.""" + createAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateMembershipTypeInput! - ): CreateMembershipTypePayload + input: CreateAppLimitCreditCodeItemInput! + ): CreateAppLimitCreditCodeItemPayload """Creates a single `AppLimitDefault`.""" createAppLimitDefault( @@ -7556,13 +7396,29 @@ type Mutation { input: CreateOrgLimitDefaultInput! ): CreateOrgLimitDefaultPayload - """Creates a single `AppLimitCreditCodeItem`.""" - createAppLimitCreditCodeItem( + """Creates a single `AppPermission`.""" + createAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditCodeItemInput! - ): CreateAppLimitCreditCodeItemPayload + input: CreateAppPermissionInput! + ): CreateAppPermissionPayload + + """Creates a single `OrgPermission`.""" + createOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionInput! + ): CreateOrgPermissionPayload + + """Creates a single `AppLimitCreditCode`.""" + createAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditCodeInput! + ): CreateAppLimitCreditCodePayload """Creates a single `AppLimitWarning`.""" createAppLimitWarning( @@ -7572,21 +7428,21 @@ type Mutation { input: CreateAppLimitWarningInput! ): CreateAppLimitWarningPayload - """Creates a single `AppLimitCredit`.""" - createAppLimitCredit( + """Creates a single `OrgChartEdgeGrant`.""" + createOrgChartEdgeGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditInput! - ): CreateAppLimitCreditPayload + input: CreateOrgChartEdgeGrantInput! + ): CreateOrgChartEdgeGrantPayload - """Creates a single `OrgLimitWarning`.""" - createOrgLimitWarning( + """Creates a single `AppLimitCredit`.""" + createAppLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitWarningInput! - ): CreateOrgLimitWarningPayload + input: CreateAppLimitCreditInput! + ): CreateAppLimitCreditPayload """Creates a single `OrgLimitCredit`.""" createOrgLimitCredit( @@ -7596,14 +7452,6 @@ type Mutation { input: CreateOrgLimitCreditInput! ): CreateOrgLimitCreditPayload - """Creates a single `OrgChartEdgeGrant`.""" - createOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgChartEdgeGrantInput! - ): CreateOrgChartEdgeGrantPayload - """Creates a single `AppClaimedInvite`.""" createAppClaimedInvite( """ @@ -7612,29 +7460,29 @@ type Mutation { input: CreateAppClaimedInviteInput! ): CreateAppClaimedInvitePayload - """Creates a single `AppGrant`.""" - createAppGrant( + """Creates a single `OrgLimitWarning`.""" + createOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppGrantInput! - ): CreateAppGrantPayload + input: CreateOrgLimitWarningInput! + ): CreateOrgLimitWarningPayload - """Creates a single `AppMembershipDefault`.""" - createAppMembershipDefault( + """Creates a single `MembershipType`.""" + createMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppMembershipDefaultInput! - ): CreateAppMembershipDefaultPayload + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload - """Creates a single `OrgMembershipDefault`.""" - createOrgMembershipDefault( + """Creates a single `AppGrant`.""" + createAppGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipDefaultInput! - ): CreateOrgMembershipDefaultPayload + input: CreateAppGrantInput! + ): CreateAppGrantPayload """Creates a single `OrgClaimedInvite`.""" createOrgClaimedInvite( @@ -7644,6 +7492,14 @@ type Mutation { input: CreateOrgClaimedInviteInput! ): CreateOrgClaimedInvitePayload + """Creates a single `OrgGrant`.""" + createOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgGrantInput! + ): CreateOrgGrantPayload + """Creates a single `AppLimitEvent`.""" createAppLimitEvent( """ @@ -7659,30 +7515,22 @@ type Mutation { """ input: CreateOrgLimitEventInput! ): CreateOrgLimitEventPayload - - """Creates a single `OrgGrant`.""" - createOrgGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgGrantInput! - ): CreateOrgGrantPayload - - """Creates a single `OrgChartEdge`.""" - createOrgChartEdge( + + """Creates a single `OrgMembershipSetting`.""" + createOrgMembershipSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgChartEdgeInput! - ): CreateOrgChartEdgePayload + input: CreateOrgMembershipSettingInput! + ): CreateOrgMembershipSettingPayload - """Creates a single `UsageSnapshot`.""" - createUsageSnapshot( + """Creates a single `AppMembership`.""" + createAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateUsageSnapshotInput! - ): CreateUsageSnapshotPayload + input: CreateAppMembershipInput! + ): CreateAppMembershipPayload """Creates a single `AppLimit`.""" createAppLimit( @@ -7692,21 +7540,21 @@ type Mutation { input: CreateAppLimitInput! ): CreateAppLimitPayload - """Creates a single `AppInvite`.""" - createAppInvite( + """Creates a single `OrgMembership`.""" + createOrgMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppInviteInput! - ): CreateAppInvitePayload + input: CreateOrgMembershipInput! + ): CreateOrgMembershipPayload - """Creates a single `OrgMembershipSetting`.""" - createOrgMembershipSetting( + """Creates a single `OrgMemberProfile`.""" + createOrgMemberProfile( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipSettingInput! - ): CreateOrgMembershipSettingPayload + input: CreateOrgMemberProfileInput! + ): CreateOrgMemberProfilePayload """Creates a single `OrgLimitAggregate`.""" createOrgLimitAggregate( @@ -7724,21 +7572,13 @@ type Mutation { input: CreateOrgLimitInput! ): CreateOrgLimitPayload - """Creates a single `OrgMemberProfile`.""" - createOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMemberProfileInput! - ): CreateOrgMemberProfilePayload - - """Creates a single `AppMembership`.""" - createAppMembership( + """Creates a single `AppInvite`.""" + createAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppMembershipInput! - ): CreateAppMembershipPayload + input: CreateAppInviteInput! + ): CreateAppInvitePayload """Creates a single `OrgInvite`.""" createOrgInvite( @@ -7748,14 +7588,6 @@ type Mutation { input: CreateOrgInviteInput! ): CreateOrgInvitePayload - """Creates a single `OrgMembership`.""" - createOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipInput! - ): CreateOrgMembershipPayload - """ Updates a single `AppLimitCreditRedemption` using a unique key and a patch. """ @@ -7784,13 +7616,21 @@ type Mutation { input: UpdateAppPermissionDefaultInput! ): UpdateAppPermissionDefaultPayload - """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" - updateAppLimitCreditCode( + """Updates a single `AppAdminGrant` using a unique key and a patch.""" + updateAppAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditCodeInput! - ): UpdateAppLimitCreditCodePayload + input: UpdateAppAdminGrantInput! + ): UpdateAppAdminGrantPayload + + """Updates a single `AppOwnerGrant` using a unique key and a patch.""" + updateAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppOwnerGrantInput! + ): UpdateAppOwnerGrantPayload """ Updates a single `OrgPermissionDefault` using a unique key and a patch. @@ -7802,37 +7642,41 @@ type Mutation { input: UpdateOrgPermissionDefaultInput! ): UpdateOrgPermissionDefaultPayload - """Updates a single `AppPermission` using a unique key and a patch.""" - updateAppPermission( + """ + Updates a single `AppMembershipDefault` using a unique key and a patch. + """ + updateAppMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppPermissionInput! - ): UpdateAppPermissionPayload + input: UpdateAppMembershipDefaultInput! + ): UpdateAppMembershipDefaultPayload - """Updates a single `OrgPermission` using a unique key and a patch.""" - updateOrgPermission( + """Updates a single `OrgAdminGrant` using a unique key and a patch.""" + updateOrgAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgPermissionInput! - ): UpdateOrgPermissionPayload + input: UpdateOrgAdminGrantInput! + ): UpdateOrgAdminGrantPayload - """Updates a single `AppAdminGrant` using a unique key and a patch.""" - updateAppAdminGrant( + """ + Updates a single `OrgMembershipDefault` using a unique key and a patch. + """ + updateOrgMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppAdminGrantInput! - ): UpdateAppAdminGrantPayload + input: UpdateOrgMembershipDefaultInput! + ): UpdateOrgMembershipDefaultPayload - """Updates a single `AppOwnerGrant` using a unique key and a patch.""" - updateAppOwnerGrant( + """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" + updateOrgOwnerGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppOwnerGrantInput! - ): UpdateAppOwnerGrantPayload + input: UpdateOrgOwnerGrantInput! + ): UpdateOrgOwnerGrantPayload """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" updateAppLimitCapsDefault( @@ -7866,29 +7710,23 @@ type Mutation { input: UpdateOrgLimitCapInput! ): UpdateOrgLimitCapPayload - """Updates a single `OrgAdminGrant` using a unique key and a patch.""" - updateOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgAdminGrantInput! - ): UpdateOrgAdminGrantPayload - - """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" - updateOrgOwnerGrant( + """Updates a single `OrgChartEdge` using a unique key and a patch.""" + updateOrgChartEdge( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgOwnerGrantInput! - ): UpdateOrgOwnerGrantPayload + input: UpdateOrgChartEdgeInput! + ): UpdateOrgChartEdgePayload - """Updates a single `MembershipType` using a unique key and a patch.""" - updateMembershipType( + """ + Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. + """ + updateAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateMembershipTypeInput! - ): UpdateMembershipTypePayload + input: UpdateAppLimitCreditCodeItemInput! + ): UpdateAppLimitCreditCodeItemPayload """Updates a single `AppLimitDefault` using a unique key and a patch.""" updateAppLimitDefault( @@ -7906,15 +7744,29 @@ type Mutation { input: UpdateOrgLimitDefaultInput! ): UpdateOrgLimitDefaultPayload - """ - Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. - """ - updateAppLimitCreditCodeItem( + """Updates a single `AppPermission` using a unique key and a patch.""" + updateAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditCodeItemInput! - ): UpdateAppLimitCreditCodeItemPayload + input: UpdateAppPermissionInput! + ): UpdateAppPermissionPayload + + """Updates a single `OrgPermission` using a unique key and a patch.""" + updateOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionInput! + ): UpdateOrgPermissionPayload + + """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" + updateAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditCodeInput! + ): UpdateAppLimitCreditCodePayload """Updates a single `AppLimitWarning` using a unique key and a patch.""" updateAppLimitWarning( @@ -7924,21 +7776,21 @@ type Mutation { input: UpdateAppLimitWarningInput! ): UpdateAppLimitWarningPayload - """Updates a single `AppLimitCredit` using a unique key and a patch.""" - updateAppLimitCredit( + """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" + updateOrgChartEdgeGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditInput! - ): UpdateAppLimitCreditPayload + input: UpdateOrgChartEdgeGrantInput! + ): UpdateOrgChartEdgeGrantPayload - """Updates a single `OrgLimitWarning` using a unique key and a patch.""" - updateOrgLimitWarning( + """Updates a single `AppLimitCredit` using a unique key and a patch.""" + updateAppLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitWarningInput! - ): UpdateOrgLimitWarningPayload + input: UpdateAppLimitCreditInput! + ): UpdateAppLimitCreditPayload """Updates a single `OrgLimitCredit` using a unique key and a patch.""" updateOrgLimitCredit( @@ -7948,14 +7800,6 @@ type Mutation { input: UpdateOrgLimitCreditInput! ): UpdateOrgLimitCreditPayload - """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" - updateOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgChartEdgeGrantInput! - ): UpdateOrgChartEdgeGrantPayload - """Updates a single `AppClaimedInvite` using a unique key and a patch.""" updateAppClaimedInvite( """ @@ -7964,33 +7808,29 @@ type Mutation { input: UpdateAppClaimedInviteInput! ): UpdateAppClaimedInvitePayload - """Updates a single `AppGrant` using a unique key and a patch.""" - updateAppGrant( + """Updates a single `OrgLimitWarning` using a unique key and a patch.""" + updateOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppGrantInput! - ): UpdateAppGrantPayload + input: UpdateOrgLimitWarningInput! + ): UpdateOrgLimitWarningPayload - """ - Updates a single `AppMembershipDefault` using a unique key and a patch. - """ - updateAppMembershipDefault( + """Updates a single `MembershipType` using a unique key and a patch.""" + updateMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppMembershipDefaultInput! - ): UpdateAppMembershipDefaultPayload + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload - """ - Updates a single `OrgMembershipDefault` using a unique key and a patch. - """ - updateOrgMembershipDefault( + """Updates a single `AppGrant` using a unique key and a patch.""" + updateAppGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipDefaultInput! - ): UpdateOrgMembershipDefaultPayload + input: UpdateAppGrantInput! + ): UpdateAppGrantPayload """Updates a single `OrgClaimedInvite` using a unique key and a patch.""" updateOrgClaimedInvite( @@ -8008,21 +7848,39 @@ type Mutation { input: UpdateOrgGrantInput! ): UpdateOrgGrantPayload - """Updates a single `OrgChartEdge` using a unique key and a patch.""" - updateOrgChartEdge( + """Updates a single `AppLimitEvent` using a unique key and a patch.""" + updateAppLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgChartEdgeInput! - ): UpdateOrgChartEdgePayload + input: UpdateAppLimitEventInput! + ): UpdateAppLimitEventPayload + + """Updates a single `OrgLimitEvent` using a unique key and a patch.""" + updateOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitEventInput! + ): UpdateOrgLimitEventPayload + + """ + Updates a single `OrgMembershipSetting` using a unique key and a patch. + """ + updateOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipSettingInput! + ): UpdateOrgMembershipSettingPayload - """Updates a single `UsageSnapshot` using a unique key and a patch.""" - updateUsageSnapshot( + """Updates a single `AppMembership` using a unique key and a patch.""" + updateAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateUsageSnapshotInput! - ): UpdateUsageSnapshotPayload + input: UpdateAppMembershipInput! + ): UpdateAppMembershipPayload """Updates a single `AppLimit` using a unique key and a patch.""" updateAppLimit( @@ -8032,23 +7890,21 @@ type Mutation { input: UpdateAppLimitInput! ): UpdateAppLimitPayload - """Updates a single `AppInvite` using a unique key and a patch.""" - updateAppInvite( + """Updates a single `OrgMembership` using a unique key and a patch.""" + updateOrgMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppInviteInput! - ): UpdateAppInvitePayload + input: UpdateOrgMembershipInput! + ): UpdateOrgMembershipPayload - """ - Updates a single `OrgMembershipSetting` using a unique key and a patch. - """ - updateOrgMembershipSetting( + """Updates a single `OrgMemberProfile` using a unique key and a patch.""" + updateOrgMemberProfile( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipSettingInput! - ): UpdateOrgMembershipSettingPayload + input: UpdateOrgMemberProfileInput! + ): UpdateOrgMemberProfilePayload """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" updateOrgLimitAggregate( @@ -8064,23 +7920,15 @@ type Mutation { The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: UpdateOrgLimitInput! - ): UpdateOrgLimitPayload - - """Updates a single `OrgMemberProfile` using a unique key and a patch.""" - updateOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMemberProfileInput! - ): UpdateOrgMemberProfilePayload + ): UpdateOrgLimitPayload - """Updates a single `AppMembership` using a unique key and a patch.""" - updateAppMembership( + """Updates a single `AppInvite` using a unique key and a patch.""" + updateAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppMembershipInput! - ): UpdateAppMembershipPayload + input: UpdateAppInviteInput! + ): UpdateAppInvitePayload """Updates a single `OrgInvite` using a unique key and a patch.""" updateOrgInvite( @@ -8090,14 +7938,6 @@ type Mutation { input: UpdateOrgInviteInput! ): UpdateOrgInvitePayload - """Updates a single `OrgMembership` using a unique key and a patch.""" - updateOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipInput! - ): UpdateOrgMembershipPayload - """Deletes a single `AppLimitCreditRedemption` using a unique key.""" deleteAppLimitCreditRedemption( """ @@ -8122,13 +7962,21 @@ type Mutation { input: DeleteAppPermissionDefaultInput! ): DeleteAppPermissionDefaultPayload - """Deletes a single `AppLimitCreditCode` using a unique key.""" - deleteAppLimitCreditCode( + """Deletes a single `AppAdminGrant` using a unique key.""" + deleteAppAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditCodeInput! - ): DeleteAppLimitCreditCodePayload + input: DeleteAppAdminGrantInput! + ): DeleteAppAdminGrantPayload + + """Deletes a single `AppOwnerGrant` using a unique key.""" + deleteAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppOwnerGrantInput! + ): DeleteAppOwnerGrantPayload """Deletes a single `OrgPermissionDefault` using a unique key.""" deleteOrgPermissionDefault( @@ -8138,37 +7986,37 @@ type Mutation { input: DeleteOrgPermissionDefaultInput! ): DeleteOrgPermissionDefaultPayload - """Deletes a single `AppPermission` using a unique key.""" - deleteAppPermission( + """Deletes a single `AppMembershipDefault` using a unique key.""" + deleteAppMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppPermissionInput! - ): DeleteAppPermissionPayload + input: DeleteAppMembershipDefaultInput! + ): DeleteAppMembershipDefaultPayload - """Deletes a single `OrgPermission` using a unique key.""" - deleteOrgPermission( + """Deletes a single `OrgAdminGrant` using a unique key.""" + deleteOrgAdminGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgPermissionInput! - ): DeleteOrgPermissionPayload + input: DeleteOrgAdminGrantInput! + ): DeleteOrgAdminGrantPayload - """Deletes a single `AppAdminGrant` using a unique key.""" - deleteAppAdminGrant( + """Deletes a single `OrgMembershipDefault` using a unique key.""" + deleteOrgMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppAdminGrantInput! - ): DeleteAppAdminGrantPayload + input: DeleteOrgMembershipDefaultInput! + ): DeleteOrgMembershipDefaultPayload - """Deletes a single `AppOwnerGrant` using a unique key.""" - deleteAppOwnerGrant( + """Deletes a single `OrgOwnerGrant` using a unique key.""" + deleteOrgOwnerGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppOwnerGrantInput! - ): DeleteAppOwnerGrantPayload + input: DeleteOrgOwnerGrantInput! + ): DeleteOrgOwnerGrantPayload """Deletes a single `AppLimitCapsDefault` using a unique key.""" deleteAppLimitCapsDefault( @@ -8202,29 +8050,21 @@ type Mutation { input: DeleteOrgLimitCapInput! ): DeleteOrgLimitCapPayload - """Deletes a single `OrgAdminGrant` using a unique key.""" - deleteOrgAdminGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgAdminGrantInput! - ): DeleteOrgAdminGrantPayload - - """Deletes a single `OrgOwnerGrant` using a unique key.""" - deleteOrgOwnerGrant( + """Deletes a single `OrgChartEdge` using a unique key.""" + deleteOrgChartEdge( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgOwnerGrantInput! - ): DeleteOrgOwnerGrantPayload + input: DeleteOrgChartEdgeInput! + ): DeleteOrgChartEdgePayload - """Deletes a single `MembershipType` using a unique key.""" - deleteMembershipType( + """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" + deleteAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteMembershipTypeInput! - ): DeleteMembershipTypePayload + input: DeleteAppLimitCreditCodeItemInput! + ): DeleteAppLimitCreditCodeItemPayload """Deletes a single `AppLimitDefault` using a unique key.""" deleteAppLimitDefault( @@ -8242,13 +8082,29 @@ type Mutation { input: DeleteOrgLimitDefaultInput! ): DeleteOrgLimitDefaultPayload - """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" - deleteAppLimitCreditCodeItem( + """Deletes a single `AppPermission` using a unique key.""" + deleteAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditCodeItemInput! - ): DeleteAppLimitCreditCodeItemPayload + input: DeleteAppPermissionInput! + ): DeleteAppPermissionPayload + + """Deletes a single `OrgPermission` using a unique key.""" + deleteOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionInput! + ): DeleteOrgPermissionPayload + + """Deletes a single `AppLimitCreditCode` using a unique key.""" + deleteAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditCodeInput! + ): DeleteAppLimitCreditCodePayload """Deletes a single `AppLimitWarning` using a unique key.""" deleteAppLimitWarning( @@ -8258,21 +8114,21 @@ type Mutation { input: DeleteAppLimitWarningInput! ): DeleteAppLimitWarningPayload - """Deletes a single `AppLimitCredit` using a unique key.""" - deleteAppLimitCredit( + """Deletes a single `OrgChartEdgeGrant` using a unique key.""" + deleteOrgChartEdgeGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditInput! - ): DeleteAppLimitCreditPayload + input: DeleteOrgChartEdgeGrantInput! + ): DeleteOrgChartEdgeGrantPayload - """Deletes a single `OrgLimitWarning` using a unique key.""" - deleteOrgLimitWarning( + """Deletes a single `AppLimitCredit` using a unique key.""" + deleteAppLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitWarningInput! - ): DeleteOrgLimitWarningPayload + input: DeleteAppLimitCreditInput! + ): DeleteAppLimitCreditPayload """Deletes a single `OrgLimitCredit` using a unique key.""" deleteOrgLimitCredit( @@ -8282,14 +8138,6 @@ type Mutation { input: DeleteOrgLimitCreditInput! ): DeleteOrgLimitCreditPayload - """Deletes a single `OrgChartEdgeGrant` using a unique key.""" - deleteOrgChartEdgeGrant( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeGrantInput! - ): DeleteOrgChartEdgeGrantPayload - """Deletes a single `AppClaimedInvite` using a unique key.""" deleteAppClaimedInvite( """ @@ -8298,29 +8146,29 @@ type Mutation { input: DeleteAppClaimedInviteInput! ): DeleteAppClaimedInvitePayload - """Deletes a single `AppGrant` using a unique key.""" - deleteAppGrant( + """Deletes a single `OrgLimitWarning` using a unique key.""" + deleteOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppGrantInput! - ): DeleteAppGrantPayload + input: DeleteOrgLimitWarningInput! + ): DeleteOrgLimitWarningPayload - """Deletes a single `AppMembershipDefault` using a unique key.""" - deleteAppMembershipDefault( + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppMembershipDefaultInput! - ): DeleteAppMembershipDefaultPayload + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload - """Deletes a single `OrgMembershipDefault` using a unique key.""" - deleteOrgMembershipDefault( + """Deletes a single `AppGrant` using a unique key.""" + deleteAppGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipDefaultInput! - ): DeleteOrgMembershipDefaultPayload + input: DeleteAppGrantInput! + ): DeleteAppGrantPayload """Deletes a single `OrgClaimedInvite` using a unique key.""" deleteOrgClaimedInvite( @@ -8338,21 +8186,37 @@ type Mutation { input: DeleteOrgGrantInput! ): DeleteOrgGrantPayload - """Deletes a single `OrgChartEdge` using a unique key.""" - deleteOrgChartEdge( + """Deletes a single `AppLimitEvent` using a unique key.""" + deleteAppLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgChartEdgeInput! - ): DeleteOrgChartEdgePayload + input: DeleteAppLimitEventInput! + ): DeleteAppLimitEventPayload + + """Deletes a single `OrgLimitEvent` using a unique key.""" + deleteOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitEventInput! + ): DeleteOrgLimitEventPayload + + """Deletes a single `OrgMembershipSetting` using a unique key.""" + deleteOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipSettingInput! + ): DeleteOrgMembershipSettingPayload - """Deletes a single `UsageSnapshot` using a unique key.""" - deleteUsageSnapshot( + """Deletes a single `AppMembership` using a unique key.""" + deleteAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteUsageSnapshotInput! - ): DeleteUsageSnapshotPayload + input: DeleteAppMembershipInput! + ): DeleteAppMembershipPayload """Deletes a single `AppLimit` using a unique key.""" deleteAppLimit( @@ -8362,21 +8226,21 @@ type Mutation { input: DeleteAppLimitInput! ): DeleteAppLimitPayload - """Deletes a single `AppInvite` using a unique key.""" - deleteAppInvite( + """Deletes a single `OrgMembership` using a unique key.""" + deleteOrgMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppInviteInput! - ): DeleteAppInvitePayload + input: DeleteOrgMembershipInput! + ): DeleteOrgMembershipPayload - """Deletes a single `OrgMembershipSetting` using a unique key.""" - deleteOrgMembershipSetting( + """Deletes a single `OrgMemberProfile` using a unique key.""" + deleteOrgMemberProfile( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipSettingInput! - ): DeleteOrgMembershipSettingPayload + input: DeleteOrgMemberProfileInput! + ): DeleteOrgMemberProfilePayload """Deletes a single `OrgLimitAggregate` using a unique key.""" deleteOrgLimitAggregate( @@ -8394,21 +8258,13 @@ type Mutation { input: DeleteOrgLimitInput! ): DeleteOrgLimitPayload - """Deletes a single `OrgMemberProfile` using a unique key.""" - deleteOrgMemberProfile( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMemberProfileInput! - ): DeleteOrgMemberProfilePayload - - """Deletes a single `AppMembership` using a unique key.""" - deleteAppMembership( + """Deletes a single `AppInvite` using a unique key.""" + deleteAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppMembershipInput! - ): DeleteAppMembershipPayload + input: DeleteAppInviteInput! + ): DeleteAppInvitePayload """Deletes a single `OrgInvite` using a unique key.""" deleteOrgInvite( @@ -8418,14 +8274,6 @@ type Mutation { input: DeleteOrgInviteInput! ): DeleteOrgInvitePayload - """Deletes a single `OrgMembership` using a unique key.""" - deleteOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipInput! - ): DeleteOrgMembershipPayload - """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures @@ -8608,78 +8456,122 @@ type CreateAppPermissionDefaultPayload { ): AppPermissionDefaultEdge } -"""All input for the create `AppPermissionDefault` mutation.""" -input CreateAppPermissionDefaultInput { +"""All input for the create `AppPermissionDefault` mutation.""" +input CreateAppPermissionDefaultInput { + """ + 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 `AppPermissionDefault` to be created by this mutation.""" + appPermissionDefault: AppPermissionDefaultInput! +} + +"""An input for mutations affecting `AppPermissionDefault`""" +input AppPermissionDefaultInput { + id: UUID + + """Default permission bitmask applied to new members""" + permissions: BitString +} + +"""The output of our create `AppAdminGrant` mutation.""" +type CreateAppAdminGrantPayload { + """ + 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 `AppAdminGrant` that was created by this mutation.""" + appAdminGrant: AppAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge +} + +"""All input for the create `AppAdminGrant` mutation.""" +input CreateAppAdminGrantInput { """ 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 `AppPermissionDefault` to be created by this mutation.""" - appPermissionDefault: AppPermissionDefaultInput! + """The `AppAdminGrant` to be created by this mutation.""" + appAdminGrant: AppAdminGrantInput! } -"""An input for mutations affecting `AppPermissionDefault`""" -input AppPermissionDefaultInput { +"""An input for mutations affecting `AppAdminGrant`""" +input AppAdminGrantInput { id: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """True to grant admin, false to revoke admin""" + isGrant: Boolean + + """The member receiving or losing the admin grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `AppLimitCreditCode` mutation.""" -type CreateAppLimitCreditCodePayload { +"""The output of our create `AppOwnerGrant` mutation.""" +type CreateAppOwnerGrantPayload { """ 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 `AppLimitCreditCode` that was created by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `AppOwnerGrant` that was created by this mutation.""" + appOwnerGrant: AppOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge } -"""All input for the create `AppLimitCreditCode` mutation.""" -input CreateAppLimitCreditCodeInput { +"""All input for the create `AppOwnerGrant` mutation.""" +input CreateAppOwnerGrantInput { """ 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 `AppLimitCreditCode` to be created by this mutation.""" - appLimitCreditCode: AppLimitCreditCodeInput! + """The `AppOwnerGrant` to be created by this mutation.""" + appOwnerGrant: AppOwnerGrantInput! } -"""An input for mutations affecting `AppLimitCreditCode`""" -input AppLimitCreditCodeInput { +"""An input for mutations affecting `AppOwnerGrant`""" +input AppOwnerGrantInput { id: UUID - """Human-readable credit code (case-insensitive, unique)""" - code: String! - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int - - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime + """The member receiving or losing the ownership grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } """The output of our create `OrgPermissionDefault` mutation.""" @@ -8728,204 +8620,195 @@ input OrgPermissionDefaultInput { entityId: UUID! } -"""The output of our create `AppPermission` mutation.""" -type CreateAppPermissionPayload { +"""The output of our create `AppMembershipDefault` mutation.""" +type CreateAppMembershipDefaultPayload { """ 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 `AppPermission` that was created by this mutation.""" - appPermission: AppPermission + """The `AppMembershipDefault` that was created by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the create `AppPermission` mutation.""" -input CreateAppPermissionInput { +"""All input for the create `AppMembershipDefault` mutation.""" +input CreateAppMembershipDefaultInput { """ 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 `AppPermission` to be created by this mutation.""" - appPermission: AppPermissionInput! + """The `AppMembershipDefault` to be created by this mutation.""" + appMembershipDefault: AppMembershipDefaultInput! } -"""An input for mutations affecting `AppPermission`""" -input AppPermissionInput { +"""An input for mutations affecting `AppMembershipDefault`""" +input AppMembershipDefaultInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString + """Whether new members are automatically approved upon joining""" + isApproved: Boolean - """Human-readable description of what this permission allows""" - description: String + """Whether new members are automatically verified upon joining""" + isVerified: Boolean } -"""The output of our create `OrgPermission` mutation.""" -type CreateOrgPermissionPayload { +"""The output of our create `OrgAdminGrant` mutation.""" +type CreateOrgAdminGrantPayload { """ 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 `OrgPermission` that was created by this mutation.""" - orgPermission: OrgPermission + """The `OrgAdminGrant` that was created by this mutation.""" + orgAdminGrant: OrgAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge } -"""All input for the create `OrgPermission` mutation.""" -input CreateOrgPermissionInput { +"""All input for the create `OrgAdminGrant` mutation.""" +input CreateOrgAdminGrantInput { """ 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 `OrgPermission` to be created by this mutation.""" - orgPermission: OrgPermissionInput! + """The `OrgAdminGrant` to be created by this mutation.""" + orgAdminGrant: OrgAdminGrantInput! } -"""An input for mutations affecting `OrgPermission`""" -input OrgPermissionInput { +"""An input for mutations affecting `OrgAdminGrant`""" +input OrgAdminGrantInput { id: UUID - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int + """True to grant admin, false to revoke admin""" + isGrant: Boolean - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString + """The member receiving or losing the admin grant""" + actorId: UUID! - """Human-readable description of what this permission allows""" - description: String + """The entity (org or group) this admin grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `AppAdminGrant` mutation.""" -type CreateAppAdminGrantPayload { +"""The output of our create `OrgMembershipDefault` mutation.""" +type CreateOrgMembershipDefaultPayload { """ 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 `AppAdminGrant` that was created by this mutation.""" - appAdminGrant: AppAdminGrant + """The `OrgMembershipDefault` that was created by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the create `AppAdminGrant` mutation.""" -input CreateAppAdminGrantInput { +"""All input for the create `OrgMembershipDefault` mutation.""" +input CreateOrgMembershipDefaultInput { """ 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 `AppAdminGrant` to be created by this mutation.""" - appAdminGrant: AppAdminGrantInput! + """The `OrgMembershipDefault` to be created by this mutation.""" + orgMembershipDefault: OrgMembershipDefaultInput! } -"""An input for mutations affecting `AppAdminGrant`""" -input AppAdminGrantInput { +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID! - grantorId: UUID createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID! } -"""The output of our create `AppOwnerGrant` mutation.""" -type CreateAppOwnerGrantPayload { +"""The output of our create `OrgOwnerGrant` mutation.""" +type CreateOrgOwnerGrantPayload { """ 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 `AppOwnerGrant` that was created by this mutation.""" - appOwnerGrant: AppOwnerGrant + """The `OrgOwnerGrant` that was created by this mutation.""" + orgOwnerGrant: OrgOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge } -"""All input for the create `AppOwnerGrant` mutation.""" -input CreateAppOwnerGrantInput { +"""All input for the create `OrgOwnerGrant` mutation.""" +input CreateOrgOwnerGrantInput { """ 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 `AppOwnerGrant` to be created by this mutation.""" - appOwnerGrant: AppOwnerGrantInput! + """The `OrgOwnerGrant` to be created by this mutation.""" + orgOwnerGrant: OrgOwnerGrantInput! } -"""An input for mutations affecting `AppOwnerGrant`""" -input AppOwnerGrantInput { +"""An input for mutations affecting `OrgOwnerGrant`""" +input OrgOwnerGrantInput { id: UUID """True to grant ownership, false to revoke ownership""" @@ -8933,6 +8816,9 @@ input AppOwnerGrantInput { """The member receiving or losing the ownership grant""" actorId: UUID! + + """The entity (org or group) this ownership grant applies to""" + entityId: UUID! grantorId: UUID createdAt: Datetime updatedAt: Datetime @@ -9136,172 +9022,117 @@ input OrgLimitCapInput { max: BigInt } -"""The output of our create `OrgAdminGrant` mutation.""" -type CreateOrgAdminGrantPayload { +"""The output of our create `OrgChartEdge` mutation.""" +type CreateOrgChartEdgePayload { """ 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 `OrgAdminGrant` that was created by this mutation.""" - orgAdminGrant: OrgAdminGrant + """The `OrgChartEdge` that was created by this mutation.""" + orgChartEdge: OrgChartEdge """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge } -"""All input for the create `OrgAdminGrant` mutation.""" -input CreateOrgAdminGrantInput { +"""All input for the create `OrgChartEdge` mutation.""" +input CreateOrgChartEdgeInput { """ 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 `OrgAdminGrant` to be created by this mutation.""" - orgAdminGrant: OrgAdminGrantInput! + """The `OrgChartEdge` to be created by this mutation.""" + orgChartEdge: OrgChartEdgeInput! } -"""An input for mutations affecting `OrgAdminGrant`""" -input OrgAdminGrantInput { +"""An input for mutations affecting `OrgChartEdge`""" +input OrgChartEdgeInput { id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID! - - """The entity (org or group) this admin grant applies to""" - entityId: UUID! - grantorId: UUID createdAt: Datetime updatedAt: Datetime -} - -"""The output of our create `OrgOwnerGrant` mutation.""" -type CreateOrgOwnerGrantPayload { - """ - 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 `OrgOwnerGrant` that was created by this mutation.""" - orgOwnerGrant: OrgOwnerGrant - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Organization this hierarchy edge belongs to""" + entityId: UUID! - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge -} + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! -"""All input for the create `OrgOwnerGrant` mutation.""" -input CreateOrgOwnerGrantInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + User ID of the manager; NULL indicates a top-level position with no direct report """ - clientMutationId: String - - """The `OrgOwnerGrant` to be created by this mutation.""" - orgOwnerGrant: OrgOwnerGrantInput! -} - -"""An input for mutations affecting `OrgOwnerGrant`""" -input OrgOwnerGrantInput { - id: UUID - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean + parentId: UUID - """The member receiving or losing the ownership grant""" - actorId: UUID! + """Job title or role name for this position in the org chart""" + positionTitle: String - """The entity (org or group) this ownership grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int } -"""The output of our create `MembershipType` mutation.""" -type CreateMembershipTypePayload { +"""The output of our create `AppLimitCreditCodeItem` mutation.""" +type CreateAppLimitCreditCodeItemPayload { """ 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 `MembershipType` that was created by this mutation.""" - membershipType: MembershipType + """The `AppLimitCreditCodeItem` that was created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the create `MembershipType` mutation.""" -input CreateMembershipTypeInput { +"""All input for the create `AppLimitCreditCodeItem` mutation.""" +input CreateAppLimitCreditCodeItemInput { """ 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 `MembershipType` to be created by this mutation.""" - membershipType: MembershipTypeInput! + """The `AppLimitCreditCodeItem` to be created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItemInput! } -"""An input for mutations affecting `MembershipType`""" -input MembershipTypeInput { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! +"""An input for mutations affecting `AppLimitCreditCodeItem`""" +input AppLimitCreditCodeItemInput { + id: UUID - """Description of what this membership type represents""" - description: String! + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID! - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID! - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int + """Number of credits this item grants per redemption""" + amount: BigInt! """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - hasUsersTableEntry: Boolean + creditType: String } """The output of our create `AppLimitDefault` mutation.""" @@ -9376,84 +9207,196 @@ type CreateOrgLimitDefaultPayload { ): OrgLimitDefaultEdge } -"""All input for the create `OrgLimitDefault` mutation.""" -input CreateOrgLimitDefaultInput { +"""All input for the create `OrgLimitDefault` mutation.""" +input CreateOrgLimitDefaultInput { + """ + 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 `OrgLimitDefault` to be created by this mutation.""" + orgLimitDefault: OrgLimitDefaultInput! +} + +"""An input for mutations affecting `OrgLimitDefault`""" +input OrgLimitDefaultInput { + id: UUID + + """Name identifier of the limit this default applies to""" + name: String! + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} + +"""The output of our create `AppPermission` mutation.""" +type CreateAppPermissionPayload { + """ + 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 `AppPermission` that was created by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the create `AppPermission` mutation.""" +input CreateAppPermissionInput { + """ + 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 `AppPermission` to be created by this mutation.""" + appPermission: AppPermissionInput! +} + +"""An input for mutations affecting `AppPermission`""" +input AppPermissionInput { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our create `OrgPermission` mutation.""" +type CreateOrgPermissionPayload { + """ + 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 `OrgPermission` that was created by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the create `OrgPermission` mutation.""" +input CreateOrgPermissionInput { """ 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 `OrgLimitDefault` to be created by this mutation.""" - orgLimitDefault: OrgLimitDefaultInput! + """The `OrgPermission` to be created by this mutation.""" + orgPermission: OrgPermissionInput! } -"""An input for mutations affecting `OrgLimitDefault`""" -input OrgLimitDefaultInput { +"""An input for mutations affecting `OrgPermission`""" +input OrgPermissionInput { id: UUID - """Name identifier of the limit this default applies to""" - name: String! + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """Default maximum usage allowed for this limit""" - max: BigInt + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String } -"""The output of our create `AppLimitCreditCodeItem` mutation.""" -type CreateAppLimitCreditCodeItemPayload { +"""The output of our create `AppLimitCreditCode` mutation.""" +type CreateAppLimitCreditCodePayload { """ 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 `AppLimitCreditCodeItem` that was created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `AppLimitCreditCode` that was created by this mutation.""" + appLimitCreditCode: AppLimitCreditCode """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge } -"""All input for the create `AppLimitCreditCodeItem` mutation.""" -input CreateAppLimitCreditCodeItemInput { +"""All input for the create `AppLimitCreditCode` mutation.""" +input CreateAppLimitCreditCodeInput { """ 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 `AppLimitCreditCodeItem` to be created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItemInput! + """The `AppLimitCreditCode` to be created by this mutation.""" + appLimitCreditCode: AppLimitCreditCodeInput! } -"""An input for mutations affecting `AppLimitCreditCodeItem`""" -input AppLimitCreditCodeItemInput { +"""An input for mutations affecting `AppLimitCreditCode`""" +input AppLimitCreditCodeInput { id: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! + """Human-readable credit code (case-insensitive, unique)""" + code: String! - """Number of credits this item grants per redemption""" - amount: BigInt! + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Current number of redemptions (incremented by trigger on credit_redemptions) """ - creditType: String + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime } """The output of our create `AppLimitWarning` mutation.""" @@ -9512,159 +9455,109 @@ input AppLimitWarningInput { taskIdentifier: String! } -"""The output of our create `AppLimitCredit` mutation.""" -type CreateAppLimitCreditPayload { +"""The output of our create `OrgChartEdgeGrant` mutation.""" +type CreateOrgChartEdgeGrantPayload { """ 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 `AppLimitCredit` that was created by this mutation.""" - appLimitCredit: AppLimitCredit + """The `OrgChartEdgeGrant` that was created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge } -"""All input for the create `AppLimitCredit` mutation.""" -input CreateAppLimitCreditInput { +"""All input for the create `OrgChartEdgeGrant` mutation.""" +input CreateOrgChartEdgeGrantInput { """ 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 `AppLimitCredit` to be created by this mutation.""" - appLimitCredit: AppLimitCreditInput! + """The `OrgChartEdgeGrant` to be created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrantInput! } -"""An input for mutations affecting `AppLimitCredit`""" -input AppLimitCreditInput { +"""An input for mutations affecting `OrgChartEdgeGrant`""" +input OrgChartEdgeGrantInput { id: UUID - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String -} - -"""The output of our create `OrgLimitWarning` mutation.""" -type CreateOrgLimitWarningPayload { - """ - 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 `OrgLimitWarning` that was created by this mutation.""" - orgLimitWarning: OrgLimitWarning + """Organization this grant applies to""" + entityId: UUID! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge -} + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID -"""All input for the create `OrgLimitWarning` mutation.""" -input CreateOrgLimitWarningInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted """ - clientMutationId: String - - """The `OrgLimitWarning` to be created by this mutation.""" - orgLimitWarning: OrgLimitWarningInput! -} - -"""An input for mutations affecting `OrgLimitWarning`""" -input OrgLimitWarningInput { - id: UUID - - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! + grantorId: UUID - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! + """Job title or role name being assigned in this grant""" + positionTitle: String - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! + """Numeric seniority level being assigned in this grant""" + positionLevel: Int - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime } -"""The output of our create `OrgLimitCredit` mutation.""" -type CreateOrgLimitCreditPayload { +"""The output of our create `AppLimitCredit` mutation.""" +type CreateAppLimitCreditPayload { """ 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 `OrgLimitCredit` that was created by this mutation.""" - orgLimitCredit: OrgLimitCredit + """The `AppLimitCredit` that was created by this mutation.""" + appLimitCredit: AppLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge } -"""All input for the create `OrgLimitCredit` mutation.""" -input CreateOrgLimitCreditInput { +"""All input for the create `AppLimitCredit` mutation.""" +input CreateAppLimitCreditInput { """ 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 `OrgLimitCredit` to be created by this mutation.""" - orgLimitCredit: OrgLimitCreditInput! + """The `AppLimitCredit` to be created by this mutation.""" + appLimitCredit: AppLimitCreditInput! } -"""An input for mutations affecting `OrgLimitCredit`""" -input OrgLimitCreditInput { +"""An input for mutations affecting `AppLimitCredit`""" +input AppLimitCreditInput { id: UUID """FK to default_limits — which limit definition this credit applies to""" @@ -9673,9 +9566,6 @@ input OrgLimitCreditInput { """User this credit is for; NULL for aggregate entity-level credits""" actorId: UUID - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID - """Number of credits to grant (positive to add, negative to revoke)""" amount: BigInt! @@ -9688,70 +9578,64 @@ input OrgLimitCreditInput { reason: String } -"""The output of our create `OrgChartEdgeGrant` mutation.""" -type CreateOrgChartEdgeGrantPayload { +"""The output of our create `OrgLimitCredit` mutation.""" +type CreateOrgLimitCreditPayload { """ 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 `OrgChartEdgeGrant` that was created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """The `OrgLimitCredit` that was created by this mutation.""" + orgLimitCredit: OrgLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge } -"""All input for the create `OrgChartEdgeGrant` mutation.""" -input CreateOrgChartEdgeGrantInput { +"""All input for the create `OrgLimitCredit` mutation.""" +input CreateOrgLimitCreditInput { """ 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 `OrgChartEdgeGrant` to be created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrantInput! + """The `OrgLimitCredit` to be created by this mutation.""" + orgLimitCredit: OrgLimitCreditInput! } -"""An input for mutations affecting `OrgChartEdgeGrant`""" -input OrgChartEdgeGrantInput { +"""An input for mutations affecting `OrgLimitCredit`""" +input OrgLimitCreditInput { id: UUID - """Organization this grant applies to""" - entityId: UUID! + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - grantorId: UUID - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean - - """Job title or role name being assigned in this grant""" - positionTitle: String - - """Numeric seniority level being assigned in this grant""" - positionLevel: Int + creditType: String - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } """The output of our create `AppClaimedInvite` mutation.""" @@ -9805,156 +9689,179 @@ input AppClaimedInviteInput { updatedAt: Datetime } -"""The output of our create `AppGrant` mutation.""" -type CreateAppGrantPayload { +"""The output of our create `OrgLimitWarning` mutation.""" +type CreateOrgLimitWarningPayload { """ 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 `AppGrant` that was created by this mutation.""" - appGrant: AppGrant + """The `OrgLimitWarning` that was created by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppGrant`. May be used by Relay 1.""" - appGrantEdge( - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppGrantEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge } -"""All input for the create `AppGrant` mutation.""" -input CreateAppGrantInput { +"""All input for the create `OrgLimitWarning` mutation.""" +input CreateOrgLimitWarningInput { """ 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 `AppGrant` to be created by this mutation.""" - appGrant: AppGrantInput! + """The `OrgLimitWarning` to be created by this mutation.""" + orgLimitWarning: OrgLimitWarningInput! } -"""An input for mutations affecting `AppGrant`""" -input AppGrantInput { +"""An input for mutations affecting `OrgLimitWarning`""" +input OrgLimitWarningInput { id: UUID - """Bitmask of permissions being granted or revoked""" - permissions: BitString + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """True to grant the permissions, false to revoke them""" - isGrant: Boolean + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! + + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID } -"""The output of our create `AppMembershipDefault` mutation.""" -type CreateAppMembershipDefaultPayload { +"""The output of our create `MembershipType` mutation.""" +type CreateMembershipTypePayload { """ 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 `AppMembershipDefault` that was created by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the create `AppMembershipDefault` mutation.""" -input CreateAppMembershipDefaultInput { +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { """ 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 `AppMembershipDefault` to be created by this mutation.""" - appMembershipDefault: AppMembershipDefaultInput! + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! } -"""An input for mutations affecting `AppMembershipDefault`""" -input AppMembershipDefaultInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Human-readable name of the membership type""" + name: String! - """Whether new members are automatically verified upon joining""" - isVerified: Boolean + """Description of what this membership type represents""" + description: String! + + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String! + + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int + + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean } -"""The output of our create `OrgMembershipDefault` mutation.""" -type CreateOrgMembershipDefaultPayload { +"""The output of our create `AppGrant` mutation.""" +type CreateAppGrantPayload { """ 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 `OrgMembershipDefault` that was created by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `AppGrant` that was created by this mutation.""" + appGrant: AppGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge } -"""All input for the create `OrgMembershipDefault` mutation.""" -input CreateOrgMembershipDefaultInput { +"""All input for the create `AppGrant` mutation.""" +input CreateAppGrantInput { """ 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 `OrgMembershipDefault` to be created by this mutation.""" - orgMembershipDefault: OrgMembershipDefaultInput! + """The `AppGrant` to be created by this mutation.""" + appGrant: AppGrantInput! } -"""An input for mutations affecting `OrgMembershipDefault`""" -input OrgMembershipDefaultInput { +"""An input for mutations affecting `AppGrant`""" +input AppGrantInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """References the entity these membership defaults apply to""" - entityId: UUID! + """True to grant the permissions, false to revoke them""" + isGrant: Boolean + + """The member receiving or losing the permission grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } """The output of our create `OrgClaimedInvite` mutation.""" @@ -9996,17 +9903,72 @@ input CreateOrgClaimedInviteInput { input OrgClaimedInviteInput { id: UUID - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON + + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + +"""The output of our create `OrgGrant` mutation.""" +type CreateOrgGrantPayload { + """ + 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 `OrgGrant` that was created by this mutation.""" + orgGrant: OrgGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge +} + +"""All input for the create `OrgGrant` mutation.""" +input CreateOrgGrantInput { + """ + 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 `OrgGrant` to be created by this mutation.""" + orgGrant: OrgGrantInput! +} + +"""An input for mutations affecting `OrgGrant`""" +input OrgGrantInput { + id: UUID + + """Bitmask of permissions being granted or revoked""" + permissions: BitString + + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """User ID of the original invitation sender""" - senderId: UUID + """The member receiving or losing the permission grant""" + actorId: UUID! - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID + """The entity (org or group) this permission grant applies to""" + entityId: UUID! + grantorId: UUID createdAt: Datetime updatedAt: Datetime - entityId: UUID! } """The output of our create `AppLimitEvent` mutation.""" @@ -10024,6 +9986,12 @@ type CreateAppLimitEventPayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } """All input for the create `AppLimitEvent` mutation.""" @@ -10040,6 +10008,11 @@ input CreateAppLimitEventInput { """An input for mutations affecting `AppLimitEvent`""" input AppLimitEventInput { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + """Limit name this event applies to""" name: String @@ -10085,6 +10058,12 @@ type CreateOrgLimitEventPayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } """All input for the create `OrgLimitEvent` mutation.""" @@ -10101,6 +10080,11 @@ input CreateOrgLimitEventInput { """An input for mutations affecting `OrgLimitEvent`""" input OrgLimitEventInput { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + """Limit name this event applies to""" name: String @@ -10131,182 +10115,172 @@ input OrgLimitEventInput { reason: String } -"""The output of our create `OrgGrant` mutation.""" -type CreateOrgGrantPayload { +"""The output of our create `OrgMembershipSetting` mutation.""" +type CreateOrgMembershipSettingPayload { """ 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 `OrgGrant` that was created by this mutation.""" - orgGrant: OrgGrant + """The `OrgMembershipSetting` that was created by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the create `OrgGrant` mutation.""" -input CreateOrgGrantInput { +"""All input for the create `OrgMembershipSetting` mutation.""" +input CreateOrgMembershipSettingInput { """ 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 `OrgGrant` to be created by this mutation.""" - orgGrant: OrgGrantInput! + """The `OrgMembershipSetting` to be created by this mutation.""" + orgMembershipSetting: OrgMembershipSettingInput! } -"""An input for mutations affecting `OrgGrant`""" -input OrgGrantInput { +"""An input for mutations affecting `OrgMembershipSetting`""" +input OrgMembershipSettingInput { id: UUID - - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID! - - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID createdAt: Datetime updatedAt: Datetime -} + createdBy: UUID + updatedBy: UUID + + """References the entity these settings apply to""" + entityId: UUID! -"""The output of our create `OrgChartEdge` mutation.""" -type CreateOrgChartEdgePayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ - clientMutationId: String - - """The `OrgChartEdge` that was created by this mutation.""" - orgChartEdge: OrgChartEdge + deleteMemberCascadeChildren: Boolean """ - Our root query field type. Allows us to run any query from our mutation payload. + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners """ - query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge -} + createChildCascadeOwners: Boolean -"""All input for the create `OrgChartEdge` mutation.""" -input CreateOrgChartEdgeInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - clientMutationId: String - - """The `OrgChartEdge` to be created by this mutation.""" - orgChartEdge: OrgChartEdgeInput! -} - -"""An input for mutations affecting `OrgChartEdge`""" -input OrgChartEdgeInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime + createChildCascadeAdmins: Boolean - """Organization this hierarchy edge belongs to""" - entityId: UUID! + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean """ - User ID of the manager; NULL indicates a top-level position with no direct report + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) """ - parentId: UUID + inviteProfileAssignmentMode: String - """Job title or role name for this position in the org chart""" - positionTitle: String + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String } -"""The output of our create `UsageSnapshot` mutation.""" -type CreateUsageSnapshotPayload { +"""The output of our create `AppMembership` mutation.""" +type CreateAppMembershipPayload { """ 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 `UsageSnapshot` that was created by this mutation.""" - usageSnapshot: UsageSnapshot + """The `AppMembership` that was created by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsageSnapshot`. May be used by Relay 1.""" - usageSnapshotEdge( - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsageSnapshotEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the create `UsageSnapshot` mutation.""" -input CreateUsageSnapshotInput { +"""All input for the create `AppMembership` mutation.""" +input CreateAppMembershipInput { """ 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 `UsageSnapshot` to be created by this mutation.""" - usageSnapshot: UsageSnapshotInput! + """The `AppMembership` to be created by this mutation.""" + appMembership: AppMembershipInput! } -"""An input for mutations affecting `UsageSnapshot`""" -input UsageSnapshotInput { - """ - The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. - """ - databaseId: UUID! +"""An input for mutations affecting `AppMembership`""" +input AppMembershipInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """ - Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). - """ - metricName: String! + """Whether this membership has been approved by an admin""" + isApproved: Boolean + + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean + + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean """ - The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - metricValue: BigInt + isActive: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean """ - Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. + Aggregated permission bitmask combining profile-based and directly granted permissions """ - dimensions: JSON + permissions: BitString """ - When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. + Bitmask of permissions directly granted to this member (not from profiles) """ - capturedAt: Datetime - id: UUID + granted: BitString + + """References the user who holds this membership""" + actorId: UUID! + profileId: UUID } """The output of our create `AppLimit` mutation.""" @@ -10391,165 +10365,161 @@ input AppLimitInput { periodCredits: BigInt } -"""The output of our create `AppInvite` mutation.""" -type CreateAppInvitePayload { +"""The output of our create `OrgMembership` mutation.""" +type CreateOrgMembershipPayload { """ 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 `AppInvite` that was created by this mutation.""" - appInvite: AppInvite + """The `OrgMembership` that was created by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the create `AppInvite` mutation.""" -input CreateAppInviteInput { +"""All input for the create `OrgMembership` mutation.""" +input CreateOrgMembershipInput { """ 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 `AppInvite` to be created by this mutation.""" - appInvite: AppInviteInput! + """The `OrgMembership` to be created by this mutation.""" + orgMembership: OrgMembershipInput! } -"""An input for mutations affecting `AppInvite`""" -input AppInviteInput { +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """User ID of the member who sent this invitation""" - senderId: UUID + """Whether this member has been banned from the entity""" + isBanned: Boolean - """Unique random hex token used to redeem this invitation""" - inviteToken: String + """Whether this membership is temporarily disabled""" + isDisabled: Boolean - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean - """Optional JSON payload of additional invite metadata""" - data: JSON + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + Bitmask of permissions directly granted to this member (not from profiles) """ - profileId: UUID + granted: BitString - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime + """References the user who holds this membership""" + actorId: UUID! + + """References the entity (org or group) this membership belongs to""" + entityId: UUID! + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID } -"""The output of our create `OrgMembershipSetting` mutation.""" -type CreateOrgMembershipSettingPayload { +"""The output of our create `OrgMemberProfile` mutation.""" +type CreateOrgMemberProfilePayload { """ 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 `OrgMembershipSetting` that was created by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgMemberProfile` that was created by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the create `OrgMembershipSetting` mutation.""" -input CreateOrgMembershipSettingInput { +"""All input for the create `OrgMemberProfile` mutation.""" +input CreateOrgMemberProfileInput { """ 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 `OrgMembershipSetting` to be created by this mutation.""" - orgMembershipSetting: OrgMembershipSettingInput! + """The `OrgMemberProfile` to be created by this mutation.""" + orgMemberProfile: OrgMemberProfileInput! } -"""An input for mutations affecting `OrgMembershipSetting`""" -input OrgMembershipSettingInput { +"""An input for mutations affecting `OrgMemberProfile`""" +input OrgMemberProfileInput { id: UUID createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID! - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID! - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean + """Display name shown to other entity members""" + displayName: String """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + Email address visible to other entity members (auto-populated from verified primary email) """ - allowExternalMembers: Boolean + email: String - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String + """Job title or role description visible to other entity members""" + title: String - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean + """Short biography visible to other entity members""" + bio: String - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage } """The output of our create `OrgLimitAggregate` mutation.""" @@ -10703,207 +10673,58 @@ input OrgLimitInput { """ Ceiling set by the active plan via apply_plan(). Window reset does not change this value. - """ - planMax: BigInt - - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - entityId: UUID! -} - -"""The output of our create `OrgMemberProfile` mutation.""" -type CreateOrgMemberProfilePayload { - """ - 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 `OrgMemberProfile` that was created by this mutation.""" - orgMemberProfile: OrgMemberProfile - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge -} - -"""All input for the create `OrgMemberProfile` mutation.""" -input CreateOrgMemberProfileInput { - """ - 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 `OrgMemberProfile` to be created by this mutation.""" - orgMemberProfile: OrgMemberProfileInput! -} - -"""An input for mutations affecting `OrgMemberProfile`""" -input OrgMemberProfileInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage -} - -"""The output of our create `AppMembership` mutation.""" -type CreateAppMembershipPayload { - """ - 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 `AppMembership` that was created by this mutation.""" - appMembership: AppMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge -} - -"""All input for the create `AppMembership` mutation.""" -input CreateAppMembershipInput { - """ - 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 `AppMembership` to be created by this mutation.""" - appMembership: AppMembershipInput! -} - -"""An input for mutations affecting `AppMembership`""" -input AppMembershipInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean + """ + planMax: BigInt """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. """ - permissions: BitString + purchasedCredits: BigInt """ - Bitmask of permissions directly granted to this member (not from profiles) + Temporary credits for the current billing window. Resets to 0 on window expiry. """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID + periodCredits: BigInt + entityId: UUID! } -"""The output of our create `OrgInvite` mutation.""" -type CreateOrgInvitePayload { +"""The output of our create `AppInvite` mutation.""" +type CreateAppInvitePayload { """ 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 `OrgInvite` that was created by this mutation.""" - orgInvite: OrgInvite + """The `AppInvite` that was created by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the create `OrgInvite` mutation.""" -input CreateOrgInviteInput { +"""All input for the create `AppInvite` mutation.""" +input CreateAppInviteInput { """ 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 `OrgInvite` to be created by this mutation.""" - orgInvite: OrgInviteInput! + """The `AppInvite` to be created by this mutation.""" + appInvite: AppInviteInput! } -"""An input for mutations affecting `OrgInvite`""" -input OrgInviteInput { +"""An input for mutations affecting `AppInvite`""" +input AppInviteInput { id: UUID """Email address of the invited recipient""" @@ -10912,9 +10733,6 @@ input OrgInviteInput { """User ID of the member who sent this invitation""" senderId: UUID - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - """Unique random hex token used to redeem this invitation""" inviteToken: String @@ -10938,105 +10756,93 @@ input OrgInviteInput { """ profileId: UUID - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime updatedAt: Datetime - entityId: UUID! } -"""The output of our create `OrgMembership` mutation.""" -type CreateOrgMembershipPayload { +"""The output of our create `OrgInvite` mutation.""" +type CreateOrgInvitePayload { """ 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 `OrgMembership` that was created by this mutation.""" - orgMembership: OrgMembership + """The `OrgInvite` that was created by this mutation.""" + orgInvite: OrgInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge } -"""All input for the create `OrgMembership` mutation.""" -input CreateOrgMembershipInput { +"""All input for the create `OrgInvite` mutation.""" +input CreateOrgInviteInput { """ 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 `OrgMembership` to be created by this mutation.""" - orgMembership: OrgMembershipInput! + """The `OrgInvite` to be created by this mutation.""" + orgInvite: OrgInviteInput! } -"""An input for mutations affecting `OrgMembership`""" -input OrgMembershipInput { +"""An input for mutations affecting `OrgInvite`""" +input OrgInviteInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether this membership has been approved by an admin""" - isApproved: Boolean + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail - """Whether this member has been banned from the entity""" - isBanned: Boolean + """User ID of the member who sent this invitation""" + senderId: UUID - """Whether this membership is temporarily disabled""" - isDisabled: Boolean + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean + """Unique random hex token used to redeem this invitation""" + inviteToken: String - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean - """Whether the actor is the owner of this entity""" - isOwner: Boolean + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - permissions: BitString + profileId: UUID """ - Bitmask of permissions directly granted to this member (not from profiles) + Whether the resulting membership should be read-only when this invite is claimed """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID! + isReadOnly: Boolean - """References the entity (org or group) this membership belongs to""" + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime entityId: UUID! - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID } """The output of our update `AppLimitCreditRedemption` mutation.""" @@ -11192,31 +10998,31 @@ input AppPermissionDefaultPatch { permissions: BitString } -"""The output of our update `AppLimitCreditCode` mutation.""" -type UpdateAppLimitCreditCodePayload { +"""The output of our update `AppAdminGrant` mutation.""" +type UpdateAppAdminGrantPayload { """ 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 `AppLimitCreditCode` that was updated by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `AppAdminGrant` that was updated by this mutation.""" + appAdminGrant: AppAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge } -"""All input for the `updateAppLimitCreditCode` mutation.""" -input UpdateAppLimitCreditCodeInput { +"""All input for the `updateAppAdminGrant` mutation.""" +input UpdateAppAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11225,30 +11031,79 @@ input UpdateAppLimitCreditCodeInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCreditCode` being updated. + An object where the defined keys will be set on the `AppAdminGrant` being updated. """ - appLimitCreditCodePatch: AppLimitCreditCodePatch! + appAdminGrantPatch: AppAdminGrantPatch! } """ -Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. +Represents an update to a `AppAdminGrant`. Fields that are set will be updated. """ -input AppLimitCreditCodePatch { +input AppAdminGrantPatch { id: UUID - """Human-readable credit code (case-insensitive, unique)""" - code: String + """True to grant admin, false to revoke admin""" + isGrant: Boolean - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int + """The member receiving or losing the admin grant""" + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our update `AppOwnerGrant` mutation.""" +type UpdateAppOwnerGrantPayload { """ - Current number of redemptions (incremented by trigger on credit_redemptions) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - currentRedemptions: Int + clientMutationId: String - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime + """The `AppOwnerGrant` that was updated by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the `updateAppOwnerGrant` mutation.""" +input UpdateAppOwnerGrantInput { + """ + 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 `AppOwnerGrant` being updated. + """ + appOwnerGrantPatch: AppOwnerGrantPatch! +} + +""" +Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. +""" +input AppOwnerGrantPatch { + id: UUID + + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean + + """The member receiving or losing the ownership grant""" + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } """The output of our update `OrgPermissionDefault` mutation.""" @@ -11302,31 +11157,31 @@ input OrgPermissionDefaultPatch { entityId: UUID } -"""The output of our update `AppPermission` mutation.""" -type UpdateAppPermissionPayload { +"""The output of our update `AppMembershipDefault` mutation.""" +type UpdateAppMembershipDefaultPayload { """ 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 `AppPermission` that was updated by this mutation.""" - appPermission: AppPermission + """The `AppMembershipDefault` that was updated by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the `updateAppPermission` mutation.""" -input UpdateAppPermissionInput { +"""All input for the `updateAppMembershipDefault` mutation.""" +input UpdateAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11335,59 +11190,53 @@ input UpdateAppPermissionInput { id: UUID! """ - An object where the defined keys will be set on the `AppPermission` being updated. + An object where the defined keys will be set on the `AppMembershipDefault` being updated. """ - appPermissionPatch: AppPermissionPatch! + appMembershipDefaultPatch: AppMembershipDefaultPatch! } """ -Represents an update to a `AppPermission`. Fields that are set will be updated. +Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. """ -input AppPermissionPatch { +input AppMembershipDefaultPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString + """Whether new members are automatically approved upon joining""" + isApproved: Boolean - """Human-readable description of what this permission allows""" - description: String + """Whether new members are automatically verified upon joining""" + isVerified: Boolean } -"""The output of our update `OrgPermission` mutation.""" -type UpdateOrgPermissionPayload { +"""The output of our update `OrgAdminGrant` mutation.""" +type UpdateOrgAdminGrantPayload { """ 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 `OrgPermission` that was updated by this mutation.""" - orgPermission: OrgPermission + """The `OrgAdminGrant` that was updated by this mutation.""" + orgAdminGrant: OrgAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge } -"""All input for the `updateOrgPermission` mutation.""" -input UpdateOrgPermissionInput { +"""All input for the `updateOrgAdminGrant` mutation.""" +input UpdateOrgAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11396,59 +11245,55 @@ input UpdateOrgPermissionInput { id: UUID! """ - An object where the defined keys will be set on the `OrgPermission` being updated. + An object where the defined keys will be set on the `OrgAdminGrant` being updated. """ - orgPermissionPatch: OrgPermissionPatch! + orgAdminGrantPatch: OrgAdminGrantPatch! } """ -Represents an update to a `OrgPermission`. Fields that are set will be updated. +Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. """ -input OrgPermissionPatch { +input OrgAdminGrantPatch { id: UUID - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int + """True to grant admin, false to revoke admin""" + isGrant: Boolean - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString + """The member receiving or losing the admin grant""" + actorId: UUID - """Human-readable description of what this permission allows""" - description: String + """The entity (org or group) this admin grant applies to""" + entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `AppAdminGrant` mutation.""" -type UpdateAppAdminGrantPayload { +"""The output of our update `OrgMembershipDefault` mutation.""" +type UpdateOrgMembershipDefaultPayload { """ 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 `AppAdminGrant` that was updated by this mutation.""" - appAdminGrant: AppAdminGrant + """The `OrgMembershipDefault` that was updated by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the `updateAppAdminGrant` mutation.""" -input UpdateAppAdminGrantInput { +"""All input for the `updateOrgMembershipDefault` mutation.""" +input UpdateOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11457,52 +11302,53 @@ input UpdateAppAdminGrantInput { id: UUID! """ - An object where the defined keys will be set on the `AppAdminGrant` being updated. + An object where the defined keys will be set on the `OrgMembershipDefault` being updated. """ - appAdminGrantPatch: AppAdminGrantPatch! + orgMembershipDefaultPatch: OrgMembershipDefaultPatch! } """ -Represents an update to a `AppAdminGrant`. Fields that are set will be updated. +Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. """ -input AppAdminGrantPatch { +input OrgMembershipDefaultPatch { id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID - grantorId: UUID createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID } -"""The output of our update `AppOwnerGrant` mutation.""" -type UpdateAppOwnerGrantPayload { +"""The output of our update `OrgOwnerGrant` mutation.""" +type UpdateOrgOwnerGrantPayload { """ 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 `AppOwnerGrant` that was updated by this mutation.""" - appOwnerGrant: AppOwnerGrant + """The `OrgOwnerGrant` that was updated by this mutation.""" + orgOwnerGrant: OrgOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge } -"""All input for the `updateAppOwnerGrant` mutation.""" -input UpdateAppOwnerGrantInput { +"""All input for the `updateOrgOwnerGrant` mutation.""" +input UpdateOrgOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11511,15 +11357,15 @@ input UpdateAppOwnerGrantInput { id: UUID! """ - An object where the defined keys will be set on the `AppOwnerGrant` being updated. + An object where the defined keys will be set on the `OrgOwnerGrant` being updated. """ - appOwnerGrantPatch: AppOwnerGrantPatch! + orgOwnerGrantPatch: OrgOwnerGrantPatch! } """ -Represents an update to a `AppOwnerGrant`. Fields that are set will be updated. +Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. """ -input AppOwnerGrantPatch { +input OrgOwnerGrantPatch { id: UUID """True to grant ownership, false to revoke ownership""" @@ -11527,6 +11373,9 @@ input AppOwnerGrantPatch { """The member receiving or losing the ownership grant""" actorId: UUID + + """The entity (org or group) this ownership grant applies to""" + entityId: UUID grantorId: UUID createdAt: Datetime updatedAt: Datetime @@ -11750,88 +11599,31 @@ input OrgLimitCapPatch { max: BigInt } -"""The output of our update `OrgAdminGrant` mutation.""" -type UpdateOrgAdminGrantPayload { - """ - 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 `OrgAdminGrant` that was updated by this mutation.""" - orgAdminGrant: OrgAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge -} - -"""All input for the `updateOrgAdminGrant` mutation.""" -input UpdateOrgAdminGrantInput { - """ - 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 `OrgAdminGrant` being updated. - """ - orgAdminGrantPatch: OrgAdminGrantPatch! -} - -""" -Represents an update to a `OrgAdminGrant`. Fields that are set will be updated. -""" -input OrgAdminGrantPatch { - id: UUID - - """True to grant admin, false to revoke admin""" - isGrant: Boolean - - """The member receiving or losing the admin grant""" - actorId: UUID - - """The entity (org or group) this admin grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgOwnerGrant` mutation.""" -type UpdateOrgOwnerGrantPayload { +"""The output of our update `OrgChartEdge` mutation.""" +type UpdateOrgChartEdgePayload { """ 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 `OrgOwnerGrant` that was updated by this mutation.""" - orgOwnerGrant: OrgOwnerGrant + """The `OrgChartEdge` that was updated by this mutation.""" + orgChartEdge: OrgChartEdge """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge } -"""All input for the `updateOrgOwnerGrant` mutation.""" -input UpdateOrgOwnerGrantInput { +"""All input for the `updateOrgChartEdge` mutation.""" +input UpdateOrgChartEdgeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -11840,101 +11632,94 @@ input UpdateOrgOwnerGrantInput { id: UUID! """ - An object where the defined keys will be set on the `OrgOwnerGrant` being updated. + An object where the defined keys will be set on the `OrgChartEdge` being updated. """ - orgOwnerGrantPatch: OrgOwnerGrantPatch! + orgChartEdgePatch: OrgChartEdgePatch! } """ -Represents an update to a `OrgOwnerGrant`. Fields that are set will be updated. +Represents an update to a `OrgChartEdge`. Fields that are set will be updated. """ -input OrgOwnerGrantPatch { +input OrgChartEdgePatch { id: UUID + createdAt: Datetime + updatedAt: Datetime - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean + """Organization this hierarchy edge belongs to""" + entityId: UUID - """The member receiving or losing the ownership grant""" - actorId: UUID + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID - """The entity (org or group) this ownership grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int } -"""The output of our update `MembershipType` mutation.""" -type UpdateMembershipTypePayload { +"""The output of our update `AppLimitCreditCodeItem` mutation.""" +type UpdateAppLimitCreditCodeItemPayload { """ 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 `MembershipType` that was updated by this mutation.""" - membershipType: MembershipType + """The `AppLimitCreditCodeItem` that was updated by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the `updateMembershipType` mutation.""" -input UpdateMembershipTypeInput { +"""All input for the `updateAppLimitCreditCodeItem` mutation.""" +input UpdateAppLimitCreditCodeItemInput { """ 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! """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """ - An object where the defined keys will be set on the `MembershipType` being updated. + An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. """ - membershipTypePatch: MembershipTypePatch! + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! } """ -Represents an update to a `MembershipType`. Fields that are set will be updated. +Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. """ -input MembershipTypePatch { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int - - """Human-readable name of the membership type""" - name: String +input AppLimitCreditCodeItemPatch { + id: UUID - """Description of what this membership type represents""" - description: String + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int + """Number of credits this item grants per redemption""" + amount: BigInt """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - hasUsersTableEntry: Boolean + creditType: String } """The output of our update `AppLimitDefault` mutation.""" @@ -12045,31 +11830,31 @@ input OrgLimitDefaultPatch { softMax: BigInt } -"""The output of our update `AppLimitCreditCodeItem` mutation.""" -type UpdateAppLimitCreditCodeItemPayload { +"""The output of our update `AppPermission` mutation.""" +type UpdateAppPermissionPayload { """ 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 `AppLimitCreditCodeItem` that was updated by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `AppPermission` that was updated by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `updateAppLimitCreditCodeItem` mutation.""" -input UpdateAppLimitCreditCodeItemInput { +"""All input for the `updateAppPermission` mutation.""" +input UpdateAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12078,30 +11863,152 @@ input UpdateAppLimitCreditCodeItemInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. + An object where the defined keys will be set on the `AppPermission` being updated. """ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! + appPermissionPatch: AppPermissionPatch! } """ -Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. +Represents an update to a `AppPermission`. Fields that are set will be updated. """ -input AppLimitCreditCodeItemPatch { +input AppPermissionPatch { id: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int - """Number of credits this item grants per redemption""" - amount: BigInt + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} +"""The output of our update `OrgPermission` mutation.""" +type UpdateOrgPermissionPayload { """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - creditType: String + clientMutationId: String + + """The `OrgPermission` that was updated by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `updateOrgPermission` mutation.""" +input UpdateOrgPermissionInput { + """ + 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 `OrgPermission` being updated. + """ + orgPermissionPatch: OrgPermissionPatch! +} + +""" +Represents an update to a `OrgPermission`. Fields that are set will be updated. +""" +input OrgPermissionPatch { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our update `AppLimitCreditCode` mutation.""" +type UpdateAppLimitCreditCodePayload { + """ + 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 `AppLimitCreditCode` that was updated by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge +} + +"""All input for the `updateAppLimitCreditCode` mutation.""" +input UpdateAppLimitCreditCodeInput { + """ + 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 `AppLimitCreditCode` being updated. + """ + appLimitCreditCodePatch: AppLimitCreditCodePatch! +} + +""" +Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. +""" +input AppLimitCreditCodePatch { + id: UUID + + """Human-readable credit code (case-insensitive, unique)""" + code: String + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int + + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime } """The output of our update `AppLimitWarning` mutation.""" @@ -12165,31 +12072,31 @@ input AppLimitWarningPatch { taskIdentifier: String } -"""The output of our update `AppLimitCredit` mutation.""" -type UpdateAppLimitCreditPayload { +"""The output of our update `OrgChartEdgeGrant` mutation.""" +type UpdateOrgChartEdgeGrantPayload { """ 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 `AppLimitCredit` that was updated by this mutation.""" - appLimitCredit: AppLimitCredit + """The `OrgChartEdgeGrant` that was updated by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge } -"""All input for the `updateAppLimitCredit` mutation.""" -input UpdateAppLimitCreditInput { +"""All input for the `updateOrgChartEdgeGrant` mutation.""" +input UpdateOrgChartEdgeGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12198,60 +12105,69 @@ input UpdateAppLimitCreditInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCredit` being updated. + An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. """ - appLimitCreditPatch: AppLimitCreditPatch! + orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch! } """ -Represents an update to a `AppLimitCredit`. Fields that are set will be updated. +Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. """ -input AppLimitCreditPatch { +input OrgChartEdgeGrantPatch { id: UUID - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID + """Organization this grant applies to""" + entityId: UUID - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted """ - creditType: String + grantorId: UUID - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean + + """Job title or role name being assigned in this grant""" + positionTitle: String + + """Numeric seniority level being assigned in this grant""" + positionLevel: Int + + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime } -"""The output of our update `OrgLimitWarning` mutation.""" -type UpdateOrgLimitWarningPayload { +"""The output of our update `AppLimitCredit` mutation.""" +type UpdateAppLimitCreditPayload { """ 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 `OrgLimitWarning` that was updated by this mutation.""" - orgLimitWarning: OrgLimitWarning + """The `AppLimitCredit` that was updated by this mutation.""" + appLimitCredit: AppLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge } -"""All input for the `updateOrgLimitWarning` mutation.""" -input UpdateOrgLimitWarningInput { +"""All input for the `updateAppLimitCredit` mutation.""" +input UpdateAppLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12260,35 +12176,33 @@ input UpdateOrgLimitWarningInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitWarning` being updated. + An object where the defined keys will be set on the `AppLimitCredit` being updated. """ - orgLimitWarningPatch: OrgLimitWarningPatch! + appLimitCreditPatch: AppLimitCreditPatch! } """ -Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. +Represents an update to a `AppLimitCredit`. Fields that are set will be updated. """ -input OrgLimitWarningPatch { +input AppLimitCreditPatch { id: UUID - """Limit name this warning applies to (must match a default_limits entry)""" - name: String + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - taskIdentifier: String + creditType: String - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } """The output of our update `OrgLimitCredit` mutation.""" @@ -12356,31 +12270,31 @@ input OrgLimitCreditPatch { reason: String } -"""The output of our update `OrgChartEdgeGrant` mutation.""" -type UpdateOrgChartEdgeGrantPayload { +"""The output of our update `AppClaimedInvite` mutation.""" +type UpdateAppClaimedInvitePayload { """ 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 `OrgChartEdgeGrant` that was updated by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """The `AppClaimedInvite` that was updated by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `updateOrgChartEdgeGrant` mutation.""" -input UpdateOrgChartEdgeGrantInput { +"""All input for the `updateAppClaimedInvite` mutation.""" +input UpdateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12389,98 +12303,164 @@ input UpdateOrgChartEdgeGrantInput { id: UUID! """ - An object where the defined keys will be set on the `OrgChartEdgeGrant` being updated. + An object where the defined keys will be set on the `AppClaimedInvite` being updated. """ - orgChartEdgeGrantPatch: OrgChartEdgeGrantPatch! + appClaimedInvitePatch: AppClaimedInvitePatch! } """ -Represents an update to a `OrgChartEdgeGrant`. Fields that are set will be updated. +Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. """ -input OrgChartEdgeGrantPatch { +input AppClaimedInvitePatch { id: UUID - """Organization this grant applies to""" - entityId: UUID + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID + """User ID of the original invitation sender""" + senderId: UUID - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our update `OrgLimitWarning` mutation.""" +type UpdateOrgLimitWarningPayload { """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - grantorId: UUID + clientMutationId: String - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean + """The `OrgLimitWarning` that was updated by this mutation.""" + orgLimitWarning: OrgLimitWarning - """Job title or role name being assigned in this grant""" - positionTitle: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query - """Numeric seniority level being assigned in this grant""" - positionLevel: Int + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge +} - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime +"""All input for the `updateOrgLimitWarning` mutation.""" +input UpdateOrgLimitWarningInput { + """ + 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 `OrgLimitWarning` being updated. + """ + orgLimitWarningPatch: OrgLimitWarningPatch! } -"""The output of our update `AppClaimedInvite` mutation.""" -type UpdateAppClaimedInvitePayload { +""" +Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. +""" +input OrgLimitWarningPatch { + id: UUID + + """Limit name this warning applies to (must match a default_limits entry)""" + name: String + + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String + + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID +} + +"""The output of our update `MembershipType` mutation.""" +type UpdateMembershipTypePayload { """ 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 `AppClaimedInvite` that was updated by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `MembershipType` that was updated by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `updateAppClaimedInvite` mutation.""" -input UpdateAppClaimedInviteInput { +"""All input for the `updateMembershipType` mutation.""" +input UpdateMembershipTypeInput { """ 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 `AppClaimedInvite` being updated. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - appClaimedInvitePatch: AppClaimedInvitePatch! + id: Int! + + """ + An object where the defined keys will be set on the `MembershipType` being updated. + """ + membershipTypePatch: MembershipTypePatch! } """ -Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. +Represents an update to a `MembershipType`. Fields that are set will be updated. """ -input AppClaimedInvitePatch { - id: UUID +input MembershipTypePatch { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Human-readable name of the membership type""" + name: String - """User ID of the original invitation sender""" - senderId: UUID + """Description of what this membership type represents""" + description: String - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String + + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int + + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean } """The output of our update `AppGrant` mutation.""" @@ -12540,31 +12520,31 @@ input AppGrantPatch { updatedAt: Datetime } -"""The output of our update `AppMembershipDefault` mutation.""" -type UpdateAppMembershipDefaultPayload { +"""The output of our update `OrgClaimedInvite` mutation.""" +type UpdateOrgClaimedInvitePayload { """ 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 `AppMembershipDefault` that was updated by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `OrgClaimedInvite` that was updated by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge } -"""All input for the `updateAppMembershipDefault` mutation.""" -input UpdateAppMembershipDefaultInput { +"""All input for the `updateOrgClaimedInvite` mutation.""" +input UpdateOrgClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12573,53 +12553,55 @@ input UpdateAppMembershipDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppMembershipDefault` being updated. + An object where the defined keys will be set on the `OrgClaimedInvite` being updated. """ - appMembershipDefaultPatch: AppMembershipDefaultPatch! + orgClaimedInvitePatch: OrgClaimedInvitePatch! } """ -Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. +Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. """ -input AppMembershipDefaultPatch { +input OrgClaimedInvitePatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Whether new members are automatically verified upon joining""" - isVerified: Boolean + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID } -"""The output of our update `OrgMembershipDefault` mutation.""" -type UpdateOrgMembershipDefaultPayload { +"""The output of our update `OrgGrant` mutation.""" +type UpdateOrgGrantPayload { """ 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 `OrgMembershipDefault` that was updated by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `OrgGrant` that was updated by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the `updateOrgMembershipDefault` mutation.""" -input UpdateOrgMembershipDefaultInput { +"""All input for the `updateOrgGrant` mutation.""" +input UpdateOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12628,170 +12610,218 @@ input UpdateOrgMembershipDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipDefault` being updated. + An object where the defined keys will be set on the `OrgGrant` being updated. """ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch! + orgGrantPatch: OrgGrantPatch! } """ -Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. +Represents an update to a `OrgGrant`. Fields that are set will be updated. """ -input OrgMembershipDefaultPatch { +input OrgGrantPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """References the entity these membership defaults apply to""" + """True to grant the permissions, false to revoke them""" + isGrant: Boolean + + """The member receiving or losing the permission grant""" + actorId: UUID + + """The entity (org or group) this permission grant applies to""" entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgClaimedInvite` mutation.""" -type UpdateOrgClaimedInvitePayload { +"""The output of our update `AppLimitEvent` mutation.""" +type UpdateAppLimitEventPayload { """ 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 `OrgClaimedInvite` that was updated by this mutation.""" - orgClaimedInvite: OrgClaimedInvite + """The `AppLimitEvent` that was updated by this mutation.""" + appLimitEvent: AppLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } -"""All input for the `updateOrgClaimedInvite` mutation.""" -input UpdateOrgClaimedInviteInput { +"""All input for the `updateAppLimitEvent` mutation.""" +input UpdateAppLimitEventInput { """ 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 + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! """ - An object where the defined keys will be set on the `OrgClaimedInvite` being updated. + An object where the defined keys will be set on the `AppLimitEvent` being updated. """ - orgClaimedInvitePatch: OrgClaimedInvitePatch! + appLimitEventPatch: AppLimitEventPatch! } """ -Represents an update to a `OrgClaimedInvite`. Fields that are set will be updated. +Represents an update to a `AppLimitEvent`. Fields that are set will be updated. """ -input OrgClaimedInvitePatch { +input AppLimitEventPatch { + createdAt: Datetime + + """Unique identifier for each limit event""" id: UUID - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Limit name this event applies to""" + name: String - """User ID of the original invitation sender""" - senderId: UUID + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime + """Entity this event applies to; NULL for app-level events""" entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } -"""The output of our update `OrgGrant` mutation.""" -type UpdateOrgGrantPayload { +"""The output of our update `OrgLimitEvent` mutation.""" +type UpdateOrgLimitEventPayload { """ 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 `OrgGrant` that was updated by this mutation.""" - orgGrant: OrgGrant + """The `OrgLimitEvent` that was updated by this mutation.""" + orgLimitEvent: OrgLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } -"""All input for the `updateOrgGrant` mutation.""" -input UpdateOrgGrantInput { +"""All input for the `updateOrgLimitEvent` mutation.""" +input UpdateOrgLimitEventInput { """ 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 + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! """ - An object where the defined keys will be set on the `OrgGrant` being updated. + An object where the defined keys will be set on the `OrgLimitEvent` being updated. """ - orgGrantPatch: OrgGrantPatch! + orgLimitEventPatch: OrgLimitEventPatch! } """ -Represents an update to a `OrgGrant`. Fields that are set will be updated. +Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. """ -input OrgGrantPatch { - id: UUID +input OrgLimitEventPatch { + createdAt: Datetime - """Bitmask of permissions being granted or revoked""" - permissions: BitString + """Unique identifier for each limit event""" + id: UUID - """True to grant the permissions, false to revoke them""" - isGrant: Boolean + """Limit name this event applies to""" + name: String - """The member receiving or losing the permission grant""" + """User who triggered this event; NULL for system/aggregate events""" actorId: UUID - """The entity (org or group) this permission grant applies to""" + """Entity this event applies to; NULL for app-level events""" entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } -"""The output of our update `OrgChartEdge` mutation.""" -type UpdateOrgChartEdgePayload { +"""The output of our update `OrgMembershipSetting` mutation.""" +type UpdateOrgMembershipSettingPayload { """ 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 `OrgChartEdge` that was updated by this mutation.""" - orgChartEdge: OrgChartEdge + """The `OrgMembershipSetting` that was updated by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `updateOrgChartEdge` mutation.""" -input UpdateOrgChartEdgeInput { +"""All input for the `updateOrgMembershipSetting` mutation.""" +input UpdateOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12800,62 +12830,90 @@ input UpdateOrgChartEdgeInput { id: UUID! """ - An object where the defined keys will be set on the `OrgChartEdge` being updated. + An object where the defined keys will be set on the `OrgMembershipSetting` being updated. """ - orgChartEdgePatch: OrgChartEdgePatch! + orgMembershipSettingPatch: OrgMembershipSettingPatch! } """ -Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. """ -input OrgChartEdgePatch { +input OrgMembershipSettingPatch { id: UUID createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Organization this hierarchy edge belongs to""" + """References the entity these settings apply to""" entityId: UUID - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean """ - User ID of the manager; NULL indicates a top-level position with no direct report + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners """ - parentId: UUID + createChildCascadeOwners: Boolean - """Job title or role name for this position in the org chart""" - positionTitle: String + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean + + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean + + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String + + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean + + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String } -"""The output of our update `UsageSnapshot` mutation.""" -type UpdateUsageSnapshotPayload { +"""The output of our update `AppMembership` mutation.""" +type UpdateAppMembershipPayload { """ 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 `UsageSnapshot` that was updated by this mutation.""" - usageSnapshot: UsageSnapshot + """The `AppMembership` that was updated by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsageSnapshot`. May be used by Relay 1.""" - usageSnapshotEdge( - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsageSnapshotEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `updateUsageSnapshot` mutation.""" -input UpdateUsageSnapshotInput { +"""All input for the `updateAppMembership` mutation.""" +input UpdateAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -12864,40 +12922,57 @@ input UpdateUsageSnapshotInput { id: UUID! """ - An object where the defined keys will be set on the `UsageSnapshot` being updated. + An object where the defined keys will be set on the `AppMembership` being updated. """ - usageSnapshotPatch: UsageSnapshotPatch! + appMembershipPatch: AppMembershipPatch! } """ -Represents an update to a `UsageSnapshot`. Fields that are set will be updated. +Represents an update to a `AppMembership`. Fields that are set will be updated. """ -input UsageSnapshotPatch { - """ - The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. - """ - databaseId: UUID +input AppMembershipPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """ - Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). - """ - metricName: String + """Whether this membership has been approved by an admin""" + isApproved: Boolean + + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean + + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean """ - The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). + Computed field indicating the membership is approved, verified, not banned, and not disabled """ - metricValue: BigInt + isActive: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean """ - Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. + Aggregated permission bitmask combining profile-based and directly granted permissions """ - dimensions: JSON + permissions: BitString """ - When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. + Bitmask of permissions directly granted to this member (not from profiles) """ - capturedAt: Datetime - id: UUID + granted: BitString + + """References the user who holds this membership""" + actorId: UUID + profileId: UUID } """The output of our update `AppLimit` mutation.""" @@ -12987,31 +13062,31 @@ input AppLimitPatch { periodCredits: BigInt } -"""The output of our update `AppInvite` mutation.""" -type UpdateAppInvitePayload { +"""The output of our update `OrgMembership` mutation.""" +type UpdateOrgMembershipPayload { """ 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 `AppInvite` that was updated by this mutation.""" - appInvite: AppInvite + """The `OrgMembership` that was updated by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `updateAppInvite` mutation.""" -input UpdateAppInviteInput { +"""All input for the `updateOrgMembership` mutation.""" +input UpdateOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13020,77 +13095,92 @@ input UpdateAppInviteInput { id: UUID! """ - An object where the defined keys will be set on the `AppInvite` being updated. + An object where the defined keys will be set on the `OrgMembership` being updated. """ - appInvitePatch: AppInvitePatch! + orgMembershipPatch: OrgMembershipPatch! } """ -Represents an update to a `AppInvite`. Fields that are set will be updated. +Represents an update to a `OrgMembership`. Fields that are set will be updated. """ -input AppInvitePatch { +input OrgMembershipPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """User ID of the member who sent this invitation""" - senderId: UUID + """Whether this member has been banned from the entity""" + isBanned: Boolean - """Unique random hex token used to redeem this invitation""" - inviteToken: String + """Whether this membership is temporarily disabled""" + isDisabled: Boolean - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean - """Optional JSON payload of additional invite metadata""" - data: JSON + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + Bitmask of permissions directly granted to this member (not from profiles) """ - profileId: UUID + granted: BitString - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime + """References the user who holds this membership""" + actorId: UUID + + """References the entity (org or group) this membership belongs to""" + entityId: UUID + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID } -"""The output of our update `OrgMembershipSetting` mutation.""" -type UpdateOrgMembershipSettingPayload { +"""The output of our update `OrgMemberProfile` mutation.""" +type UpdateOrgMemberProfilePayload { """ 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 `OrgMembershipSetting` that was updated by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgMemberProfile` that was updated by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the `updateOrgMembershipSetting` mutation.""" -input UpdateOrgMembershipSettingInput { +"""All input for the `updateOrgMemberProfile` mutation.""" +input UpdateOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13099,65 +13189,52 @@ input UpdateOrgMembershipSettingInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipSetting` being updated. + An object where the defined keys will be set on the `OrgMemberProfile` being updated. """ - orgMembershipSettingPatch: OrgMembershipSettingPatch! + orgMemberProfilePatch: OrgMemberProfilePatch! } """ -Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. +Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. """ -input OrgMembershipSettingPatch { +input OrgMemberProfilePatch { id: UUID createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean + """References the membership this profile belongs to (1:1)""" + membershipId: UUID - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean + """Display name shown to other entity members""" + displayName: String """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + Email address visible to other entity members (auto-populated from verified primary email) """ - allowExternalMembers: Boolean + email: String - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String + """Job title or role description visible to other entity members""" + title: String - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean + """Short biography visible to other entity members""" + bio: String - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage + + """Upload for Profile picture visible to other entity members""" + profilePictureUpload: Upload } +"""The `Upload` scalar type represents a file upload.""" +scalar Upload + """The output of our update `OrgLimitAggregate` mutation.""" type UpdateOrgLimitAggregatePayload { """ @@ -13334,196 +13411,31 @@ input OrgLimitPatch { entityId: UUID } -"""The output of our update `OrgMemberProfile` mutation.""" -type UpdateOrgMemberProfilePayload { - """ - 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 `OrgMemberProfile` that was updated by this mutation.""" - orgMemberProfile: OrgMemberProfile - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge -} - -"""All input for the `updateOrgMemberProfile` mutation.""" -input UpdateOrgMemberProfileInput { - """ - 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 `OrgMemberProfile` being updated. - """ - orgMemberProfilePatch: OrgMemberProfilePatch! -} - -""" -Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. -""" -input OrgMemberProfilePatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - - """References the membership this profile belongs to (1:1)""" - membershipId: UUID - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage - - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload -} - -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - -"""The output of our update `AppMembership` mutation.""" -type UpdateAppMembershipPayload { - """ - 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 `AppMembership` that was updated by this mutation.""" - appMembership: AppMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge -} - -"""All input for the `updateAppMembership` mutation.""" -input UpdateAppMembershipInput { - """ - 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 `AppMembership` being updated. - """ - appMembershipPatch: AppMembershipPatch! -} - -""" -Represents an update to a `AppMembership`. Fields that are set will be updated. -""" -input AppMembershipPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID - profileId: UUID -} - -"""The output of our update `OrgInvite` mutation.""" -type UpdateOrgInvitePayload { +"""The output of our update `AppInvite` mutation.""" +type UpdateAppInvitePayload { """ 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 `OrgInvite` that was updated by this mutation.""" - orgInvite: OrgInvite + """The `AppInvite` that was updated by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `updateOrgInvite` mutation.""" -input UpdateOrgInviteInput { +"""All input for the `updateAppInvite` mutation.""" +input UpdateAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13532,15 +13444,15 @@ input UpdateOrgInviteInput { id: UUID! """ - An object where the defined keys will be set on the `OrgInvite` being updated. + An object where the defined keys will be set on the `AppInvite` being updated. """ - orgInvitePatch: OrgInvitePatch! + appInvitePatch: AppInvitePatch! } """ -Represents an update to a `OrgInvite`. Fields that are set will be updated. +Represents an update to a `AppInvite`. Fields that are set will be updated. """ -input OrgInvitePatch { +input AppInvitePatch { id: UUID """Email address of the invited recipient""" @@ -13549,9 +13461,6 @@ input OrgInvitePatch { """User ID of the member who sent this invitation""" senderId: UUID - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - """Unique random hex token used to redeem this invitation""" inviteToken: String @@ -13575,43 +13484,37 @@ input OrgInvitePatch { """ profileId: UUID - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime updatedAt: Datetime - entityId: UUID } -"""The output of our update `OrgMembership` mutation.""" -type UpdateOrgMembershipPayload { +"""The output of our update `OrgInvite` mutation.""" +type UpdateOrgInvitePayload { """ 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 `OrgMembership` that was updated by this mutation.""" - orgMembership: OrgMembership + """The `OrgInvite` that was updated by this mutation.""" + orgInvite: OrgInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge } -"""All input for the `updateOrgMembership` mutation.""" -input UpdateOrgMembershipInput { +"""All input for the `updateOrgInvite` mutation.""" +input UpdateOrgInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13620,65 +13523,59 @@ input UpdateOrgMembershipInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembership` being updated. + An object where the defined keys will be set on the `OrgInvite` being updated. """ - orgMembershipPatch: OrgMembershipPatch! + orgInvitePatch: OrgInvitePatch! } """ -Represents an update to a `OrgMembership`. Fields that are set will be updated. +Represents an update to a `OrgInvite`. Fields that are set will be updated. """ -input OrgMembershipPatch { +input OrgInvitePatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether this membership has been approved by an admin""" - isApproved: Boolean + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail - """Whether this member has been banned from the entity""" - isBanned: Boolean + """User ID of the member who sent this invitation""" + senderId: UUID - """Whether this membership is temporarily disabled""" - isDisabled: Boolean + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean + """Unique random hex token used to redeem this invitation""" + inviteToken: String - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean - """Whether the actor is the owner of this entity""" - isOwner: Boolean + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - permissions: BitString + profileId: UUID """ - Bitmask of permissions directly granted to this member (not from profiles) + Whether the resulting membership should be read-only when this invite is claimed """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID + isReadOnly: Boolean - """References the entity (org or group) this membership belongs to""" + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime entityId: UUID - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID } """The output of our delete `AppLimitCreditRedemption` mutation.""" @@ -13780,31 +13677,64 @@ input DeleteAppPermissionDefaultInput { id: UUID! } -"""The output of our delete `AppLimitCreditCode` mutation.""" -type DeleteAppLimitCreditCodePayload { +"""The output of our delete `AppAdminGrant` mutation.""" +type DeleteAppAdminGrantPayload { """ 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 `AppLimitCreditCode` that was deleted by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `AppAdminGrant` that was deleted by this mutation.""" + appAdminGrant: AppAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge } -"""All input for the `deleteAppLimitCreditCode` mutation.""" -input DeleteAppLimitCreditCodeInput { +"""All input for the `deleteAppAdminGrant` mutation.""" +input DeleteAppAdminGrantInput { + """ + 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 `AppOwnerGrant` mutation.""" +type DeleteAppOwnerGrantPayload { + """ + 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 `AppOwnerGrant` that was deleted by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the `deleteAppOwnerGrant` mutation.""" +input DeleteAppOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13846,31 +13776,31 @@ input DeleteOrgPermissionDefaultInput { id: UUID! } -"""The output of our delete `AppPermission` mutation.""" -type DeleteAppPermissionPayload { +"""The output of our delete `AppMembershipDefault` mutation.""" +type DeleteAppMembershipDefaultPayload { """ 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 `AppPermission` that was deleted by this mutation.""" - appPermission: AppPermission + """The `AppMembershipDefault` that was deleted by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the `deleteAppPermission` mutation.""" -input DeleteAppPermissionInput { +"""All input for the `deleteAppMembershipDefault` mutation.""" +input DeleteAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13879,31 +13809,31 @@ input DeleteAppPermissionInput { id: UUID! } -"""The output of our delete `OrgPermission` mutation.""" -type DeleteOrgPermissionPayload { +"""The output of our delete `OrgAdminGrant` mutation.""" +type DeleteOrgAdminGrantPayload { """ 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 `OrgPermission` that was deleted by this mutation.""" - orgPermission: OrgPermission + """The `OrgAdminGrant` that was deleted by this mutation.""" + orgAdminGrant: OrgAdminGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge } -"""All input for the `deleteOrgPermission` mutation.""" -input DeleteOrgPermissionInput { +"""All input for the `deleteOrgAdminGrant` mutation.""" +input DeleteOrgAdminGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13912,31 +13842,31 @@ input DeleteOrgPermissionInput { id: UUID! } -"""The output of our delete `AppAdminGrant` mutation.""" -type DeleteAppAdminGrantPayload { +"""The output of our delete `OrgMembershipDefault` mutation.""" +type DeleteOrgMembershipDefaultPayload { """ 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 `AppAdminGrant` that was deleted by this mutation.""" - appAdminGrant: AppAdminGrant + """The `OrgMembershipDefault` that was deleted by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAdminGrant`. May be used by Relay 1.""" - appAdminGrantEdge( - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAdminGrantEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the `deleteAppAdminGrant` mutation.""" -input DeleteAppAdminGrantInput { +"""All input for the `deleteOrgMembershipDefault` mutation.""" +input DeleteOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -13945,31 +13875,31 @@ input DeleteAppAdminGrantInput { id: UUID! } -"""The output of our delete `AppOwnerGrant` mutation.""" -type DeleteAppOwnerGrantPayload { +"""The output of our delete `OrgOwnerGrant` mutation.""" +type DeleteOrgOwnerGrantPayload { """ 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 `AppOwnerGrant` that was deleted by this mutation.""" - appOwnerGrant: AppOwnerGrant + """The `OrgOwnerGrant` that was deleted by this mutation.""" + orgOwnerGrant: OrgOwnerGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" - appOwnerGrantEdge( - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppOwnerGrantEdge + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge } -"""All input for the `deleteAppOwnerGrant` mutation.""" -input DeleteAppOwnerGrantInput { +"""All input for the `deleteOrgOwnerGrant` mutation.""" +input DeleteOrgOwnerGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14094,47 +14024,14 @@ type DeleteOrgLimitCapPayload { query: Query """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the `deleteOrgLimitCap` mutation.""" -input DeleteOrgLimitCapInput { - """ - 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 `OrgAdminGrant` mutation.""" -type DeleteOrgAdminGrantPayload { - """ - 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 `OrgAdminGrant` that was deleted by this mutation.""" - orgAdminGrant: OrgAdminGrant - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" - orgAdminGrantEdge( - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgAdminGrantEdge + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge } -"""All input for the `deleteOrgAdminGrant` mutation.""" -input DeleteOrgAdminGrantInput { +"""All input for the `deleteOrgLimitCap` mutation.""" +input DeleteOrgLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14143,31 +14040,31 @@ input DeleteOrgAdminGrantInput { id: UUID! } -"""The output of our delete `OrgOwnerGrant` mutation.""" -type DeleteOrgOwnerGrantPayload { +"""The output of our delete `OrgChartEdge` mutation.""" +type DeleteOrgChartEdgePayload { """ 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 `OrgOwnerGrant` that was deleted by this mutation.""" - orgOwnerGrant: OrgOwnerGrant + """The `OrgChartEdge` that was deleted by this mutation.""" + orgChartEdge: OrgChartEdge """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" - orgOwnerGrantEdge( - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantEdge + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge } -"""All input for the `deleteOrgOwnerGrant` mutation.""" -input DeleteOrgOwnerGrantInput { +"""All input for the `deleteOrgChartEdge` mutation.""" +input DeleteOrgChartEdgeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14176,41 +14073,37 @@ input DeleteOrgOwnerGrantInput { id: UUID! } -"""The output of our delete `MembershipType` mutation.""" -type DeleteMembershipTypePayload { +"""The output of our delete `AppLimitCreditCodeItem` mutation.""" +type DeleteAppLimitCreditCodeItemPayload { """ 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 `MembershipType` that was deleted by this mutation.""" - membershipType: MembershipType + """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the `deleteMembershipType` mutation.""" -input DeleteMembershipTypeInput { +"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" +input DeleteAppLimitCreditCodeItemInput { """ 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 - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! + id: UUID! } """The output of our delete `AppLimitDefault` mutation.""" @@ -14279,31 +14172,97 @@ input DeleteOrgLimitDefaultInput { id: UUID! } -"""The output of our delete `AppLimitCreditCodeItem` mutation.""" -type DeleteAppLimitCreditCodeItemPayload { +"""The output of our delete `AppPermission` mutation.""" +type DeleteAppPermissionPayload { """ 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 `AppLimitCreditCodeItem` that was deleted by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `AppPermission` that was deleted by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" -input DeleteAppLimitCreditCodeItemInput { +"""All input for the `deleteAppPermission` mutation.""" +input DeleteAppPermissionInput { + """ + 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 `OrgPermission` mutation.""" +type DeleteOrgPermissionPayload { + """ + 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 `OrgPermission` that was deleted by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `deleteOrgPermission` mutation.""" +input DeleteOrgPermissionInput { + """ + 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 `AppLimitCreditCode` mutation.""" +type DeleteAppLimitCreditCodePayload { + """ + 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 `AppLimitCreditCode` that was deleted by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge +} + +"""All input for the `deleteAppLimitCreditCode` mutation.""" +input DeleteAppLimitCreditCodeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14345,31 +14304,31 @@ input DeleteAppLimitWarningInput { id: UUID! } -"""The output of our delete `AppLimitCredit` mutation.""" -type DeleteAppLimitCreditPayload { +"""The output of our delete `OrgChartEdgeGrant` mutation.""" +type DeleteOrgChartEdgeGrantPayload { """ 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 `AppLimitCredit` that was deleted by this mutation.""" - appLimitCredit: AppLimitCredit + """The `OrgChartEdgeGrant` that was deleted by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge } -"""All input for the `deleteAppLimitCredit` mutation.""" -input DeleteAppLimitCreditInput { +"""All input for the `deleteOrgChartEdgeGrant` mutation.""" +input DeleteOrgChartEdgeGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14378,31 +14337,31 @@ input DeleteAppLimitCreditInput { id: UUID! } -"""The output of our delete `OrgLimitWarning` mutation.""" -type DeleteOrgLimitWarningPayload { +"""The output of our delete `AppLimitCredit` mutation.""" +type DeleteAppLimitCreditPayload { """ 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 `OrgLimitWarning` that was deleted by this mutation.""" - orgLimitWarning: OrgLimitWarning + """The `AppLimitCredit` that was deleted by this mutation.""" + appLimitCredit: AppLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge } -"""All input for the `deleteOrgLimitWarning` mutation.""" -input DeleteOrgLimitWarningInput { +"""All input for the `deleteAppLimitCredit` mutation.""" +input DeleteAppLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14444,31 +14403,31 @@ input DeleteOrgLimitCreditInput { id: UUID! } -"""The output of our delete `OrgChartEdgeGrant` mutation.""" -type DeleteOrgChartEdgeGrantPayload { +"""The output of our delete `AppClaimedInvite` mutation.""" +type DeleteAppClaimedInvitePayload { """ 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 `OrgChartEdgeGrant` that was deleted by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """The `AppClaimedInvite` that was deleted by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `deleteOrgChartEdgeGrant` mutation.""" -input DeleteOrgChartEdgeGrantInput { +"""All input for the `deleteAppClaimedInvite` mutation.""" +input DeleteAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14477,37 +14436,74 @@ input DeleteOrgChartEdgeGrantInput { id: UUID! } -"""The output of our delete `AppClaimedInvite` mutation.""" -type DeleteAppClaimedInvitePayload { +"""The output of our delete `OrgLimitWarning` mutation.""" +type DeleteOrgLimitWarningPayload { """ 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 `AppClaimedInvite` that was deleted by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `OrgLimitWarning` that was deleted by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge +} + +"""All input for the `deleteOrgLimitWarning` mutation.""" +input DeleteOrgLimitWarningInput { + """ + 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 `MembershipType` mutation.""" +type DeleteMembershipTypePayload { + """ + 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 `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `deleteAppClaimedInvite` mutation.""" -input DeleteAppClaimedInviteInput { +"""All input for the `deleteMembershipType` mutation.""" +input DeleteMembershipTypeInput { """ 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! + + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! } """The output of our delete `AppGrant` mutation.""" @@ -14543,31 +14539,31 @@ input DeleteAppGrantInput { id: UUID! } -"""The output of our delete `AppMembershipDefault` mutation.""" -type DeleteAppMembershipDefaultPayload { +"""The output of our delete `OrgClaimedInvite` mutation.""" +type DeleteOrgClaimedInvitePayload { """ 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 `AppMembershipDefault` that was deleted by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `OrgClaimedInvite` that was deleted by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge } -"""All input for the `deleteAppMembershipDefault` mutation.""" -input DeleteAppMembershipDefaultInput { +"""All input for the `deleteOrgClaimedInvite` mutation.""" +input DeleteOrgClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14576,31 +14572,31 @@ input DeleteAppMembershipDefaultInput { id: UUID! } -"""The output of our delete `OrgMembershipDefault` mutation.""" -type DeleteOrgMembershipDefaultPayload { +"""The output of our delete `OrgGrant` mutation.""" +type DeleteOrgGrantPayload { """ 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 `OrgMembershipDefault` that was deleted by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `OrgGrant` that was deleted by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the `deleteOrgMembershipDefault` mutation.""" -input DeleteOrgMembershipDefaultInput { +"""All input for the `deleteOrgGrant` mutation.""" +input DeleteOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14609,97 +14605,103 @@ input DeleteOrgMembershipDefaultInput { id: UUID! } -"""The output of our delete `OrgClaimedInvite` mutation.""" -type DeleteOrgClaimedInvitePayload { +"""The output of our delete `AppLimitEvent` mutation.""" +type DeleteAppLimitEventPayload { """ 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 `OrgClaimedInvite` that was deleted by this mutation.""" - orgClaimedInvite: OrgClaimedInvite + """The `AppLimitEvent` that was deleted by this mutation.""" + appLimitEvent: AppLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } -"""All input for the `deleteOrgClaimedInvite` mutation.""" -input DeleteOrgClaimedInviteInput { +"""All input for the `deleteAppLimitEvent` mutation.""" +input DeleteAppLimitEventInput { """ 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 + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! } -"""The output of our delete `OrgGrant` mutation.""" -type DeleteOrgGrantPayload { +"""The output of our delete `OrgLimitEvent` mutation.""" +type DeleteOrgLimitEventPayload { """ 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 `OrgGrant` that was deleted by this mutation.""" - orgGrant: OrgGrant + """The `OrgLimitEvent` that was deleted by this mutation.""" + orgLimitEvent: OrgLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } -"""All input for the `deleteOrgGrant` mutation.""" -input DeleteOrgGrantInput { +"""All input for the `deleteOrgLimitEvent` mutation.""" +input DeleteOrgLimitEventInput { """ 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 + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! } -"""The output of our delete `OrgChartEdge` mutation.""" -type DeleteOrgChartEdgePayload { +"""The output of our delete `OrgMembershipSetting` mutation.""" +type DeleteOrgMembershipSettingPayload { """ 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 `OrgChartEdge` that was deleted by this mutation.""" - orgChartEdge: OrgChartEdge + """The `OrgMembershipSetting` that was deleted by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `deleteOrgChartEdge` mutation.""" -input DeleteOrgChartEdgeInput { +"""All input for the `deleteOrgMembershipSetting` mutation.""" +input DeleteOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14708,31 +14710,31 @@ input DeleteOrgChartEdgeInput { id: UUID! } -"""The output of our delete `UsageSnapshot` mutation.""" -type DeleteUsageSnapshotPayload { +"""The output of our delete `AppMembership` mutation.""" +type DeleteAppMembershipPayload { """ 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 `UsageSnapshot` that was deleted by this mutation.""" - usageSnapshot: UsageSnapshot + """The `AppMembership` that was deleted by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsageSnapshot`. May be used by Relay 1.""" - usageSnapshotEdge( - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsageSnapshotEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `deleteUsageSnapshot` mutation.""" -input DeleteUsageSnapshotInput { +"""All input for the `deleteAppMembership` mutation.""" +input DeleteAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14774,31 +14776,31 @@ input DeleteAppLimitInput { id: UUID! } -"""The output of our delete `AppInvite` mutation.""" -type DeleteAppInvitePayload { +"""The output of our delete `OrgMembership` mutation.""" +type DeleteOrgMembershipPayload { """ 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 `AppInvite` that was deleted by this mutation.""" - appInvite: AppInvite + """The `OrgMembership` that was deleted by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `deleteAppInvite` mutation.""" -input DeleteAppInviteInput { +"""All input for the `deleteOrgMembership` mutation.""" +input DeleteOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14807,31 +14809,31 @@ input DeleteAppInviteInput { id: UUID! } -"""The output of our delete `OrgMembershipSetting` mutation.""" -type DeleteOrgMembershipSettingPayload { +"""The output of our delete `OrgMemberProfile` mutation.""" +type DeleteOrgMemberProfilePayload { """ 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 `OrgMembershipSetting` that was deleted by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgMemberProfile` that was deleted by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the `deleteOrgMembershipSetting` mutation.""" -input DeleteOrgMembershipSettingInput { +"""All input for the `deleteOrgMemberProfile` mutation.""" +input DeleteOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -14906,64 +14908,31 @@ input DeleteOrgLimitInput { id: UUID! } -"""The output of our delete `OrgMemberProfile` mutation.""" -type DeleteOrgMemberProfilePayload { - """ - 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 `OrgMemberProfile` that was deleted by this mutation.""" - orgMemberProfile: OrgMemberProfile - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge -} - -"""All input for the `deleteOrgMemberProfile` mutation.""" -input DeleteOrgMemberProfileInput { - """ - 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 `AppMembership` mutation.""" -type DeleteAppMembershipPayload { +"""The output of our delete `AppInvite` mutation.""" +type DeleteAppInvitePayload { """ 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 `AppMembership` that was deleted by this mutation.""" - appMembership: AppMembership + """The `AppInvite` that was deleted by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `deleteAppMembership` mutation.""" -input DeleteAppMembershipInput { +"""All input for the `deleteAppInvite` mutation.""" +input DeleteAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -15005,39 +14974,6 @@ input DeleteOrgInviteInput { id: UUID! } -"""The output of our delete `OrgMembership` mutation.""" -type DeleteOrgMembershipPayload { - """ - 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 `OrgMembership` that was deleted by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the `deleteOrgMembership` mutation.""" -input DeleteOrgMembershipInput { - """ - 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! -} - input ProvisionBucketInput { """The logical bucket key (e.g., "public", "private")""" bucketKey: String! diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql index 19d6c46657..c2dcd68a26 100644 --- a/sdk/constructive-sdk/schemas/auth.graphql +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -122,8 +122,8 @@ type Query { orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] ): PhoneNumberConnection - """Reads and enables pagination through a set of `UserConnectedAccount`.""" - userConnectedAccounts( + """Reads and enables pagination through a set of `AuditLogAuth`.""" + auditLogAuths( """Only read the first `n` values of the set.""" first: Int @@ -145,14 +145,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UserConnectedAccountFilter + where: AuditLogAuthFilter - """The method to use when ordering `UserConnectedAccount`.""" - orderBy: [UserConnectedAccountOrderBy!] = [NATURAL] - ): UserConnectedAccountConnection + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogAuthConnection - """Reads and enables pagination through a set of `AuditLog`.""" - auditLogs( + """Reads and enables pagination through a set of `UserConnectedAccount`.""" + userConnectedAccounts( """Only read the first `n` values of the set.""" first: Int @@ -174,11 +174,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AuditLogFilter + where: UserConnectedAccountFilter - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] - ): AuditLogConnection + """The method to use when ordering `UserConnectedAccount`.""" + orderBy: [UserConnectedAccountOrderBy!] = [NATURAL] + ): UserConnectedAccountConnection """Reads and enables pagination through a set of `Email`.""" emails( @@ -410,8 +410,8 @@ type User { orderBy: [WebauthnCredentialOrderBy!] = [PRIMARY_KEY_ASC] ): WebauthnCredentialConnection! - """Reads and enables pagination through a set of `AuditLog`.""" - auditLogsByActorId( + """Reads and enables pagination through a set of `AuditLogAuth`.""" + auditLogAuthsByActorId( """Only read the first `n` values of the set.""" first: Int @@ -433,11 +433,11 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: AuditLogFilter + where: AuditLogAuthFilter - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] - ): AuditLogConnection! + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogAuthConnection! """ TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. @@ -1038,11 +1038,11 @@ input UserFilter { """`ownedWebauthnCredentials` exist.""" ownedWebauthnCredentialsExist: Boolean - """Filter by the object’s `auditLogsByActorId` relation.""" - auditLogsByActorId: UserToManyAuditLogFilter + """Filter by the object’s `auditLogAuthsByActorId` relation.""" + auditLogAuthsByActorId: UserToManyAuditLogAuthFilter - """`auditLogsByActorId` exist.""" - auditLogsByActorIdExist: Boolean + """`auditLogAuthsByActorId` exist.""" + auditLogAuthsByActorIdExist: Boolean """TSV search on the `search_tsv` column.""" tsvSearchTsv: String @@ -1712,23 +1712,26 @@ input StringListFilter { } """ -A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ """ -input UserToManyAuditLogFilter { +input UserToManyAuditLogAuthFilter { """Filters to entities where at least one related entity matches.""" - some: AuditLogFilter + some: AuditLogAuthFilter """Filters to entities where every related entity matches.""" - every: AuditLogFilter + every: AuditLogAuthFilter """Filters to entities where no related entity matches.""" - none: AuditLogFilter + none: AuditLogAuthFilter } """ -A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ """ -input AuditLogFilter { +input AuditLogAuthFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -1750,17 +1753,14 @@ input AuditLogFilter { """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!] + and: [AuditLogAuthFilter!] """Checks for any expressions in this list.""" - or: [AuditLogFilter!] + or: [AuditLogAuthFilter!] """Negates the expression.""" - not: AuditLogFilter + not: AuditLogAuthFilter """Filter by the object’s `actor` relation.""" actor: UserFilter @@ -2264,27 +2264,32 @@ enum WebauthnCredentialOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `AuditLog` values.""" -type AuditLogConnection { - """A list of `AuditLog` objects.""" - nodes: [AuditLog]! +"""A connection to a list of `AuditLogAuth` values.""" +type AuditLogAuthConnection { + """A list of `AuditLogAuth` objects.""" + nodes: [AuditLogAuth]! """ - A list of edges which contains the `AuditLog` and cursor to aid in pagination. + A list of edges which contains the `AuditLogAuth` and cursor to aid in pagination. """ - edges: [AuditLogEdge]! + edges: [AuditLogAuthEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AuditLog` you could get from the connection.""" + """The count of *all* `AuditLogAuth` you could get from the connection.""" totalCount: Int! } """ -Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) +Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) """ -type AuditLog { +type AuditLogAuth { + createdAt: Datetime! + + """ + Unique identifier for each audit event (uuidv7 provides temporal ordering) + """ id: UUID! """ @@ -2307,27 +2312,26 @@ type AuditLog { """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`.""" + """Reads a single `User` that is related to this `AuditLogAuth`.""" actor: User } -"""A `AuditLog` edge in the connection.""" -type AuditLogEdge { +"""A `AuditLogAuth` edge in the connection.""" +type AuditLogAuthEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AuditLog` at the end of the edge.""" - node: AuditLog + """The `AuditLogAuth` at the end of the edge.""" + node: AuditLogAuth } -"""Methods to use when ordering `AuditLog`.""" -enum AuditLogOrderBy { +"""Methods to use when ordering `AuditLogAuth`.""" +enum AuditLogAuthOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC ID_ASC ID_DESC EVENT_ASC @@ -2342,8 +2346,6 @@ enum AuditLogOrderBy { IP_ADDRESS_DESC SUCCESS_ASC SUCCESS_DESC - CREATED_AT_ASC - CREATED_AT_DESC } """A connection to a list of `IdentityProvider` values.""" @@ -2922,12 +2924,6 @@ type Mutation { """ input: SignUpInput! ): SignUpPayload - requestCrossOriginToken( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: RequestCrossOriginTokenInput! - ): RequestCrossOriginTokenPayload signIn( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -2946,6 +2942,12 @@ type Mutation { """ input: CreateApiKeyInput! ): CreateApiKeyPayload + requestCrossOriginToken( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RequestCrossOriginTokenInput! + ): RequestCrossOriginTokenPayload forgotPassword( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -2991,21 +2993,21 @@ type Mutation { input: CreatePhoneNumberInput! ): CreatePhoneNumberPayload - """Creates a single `UserConnectedAccount`.""" - createUserConnectedAccount( + """Creates a single `AuditLogAuth`.""" + createAuditLogAuth( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateUserConnectedAccountInput! - ): CreateUserConnectedAccountPayload + input: CreateAuditLogAuthInput! + ): CreateAuditLogAuthPayload - """Creates a single `AuditLog`.""" - createAuditLog( + """Creates a single `UserConnectedAccount`.""" + createUserConnectedAccount( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAuditLogInput! - ): CreateAuditLogPayload + input: CreateUserConnectedAccountInput! + ): CreateUserConnectedAccountPayload """Creates a single `Email`.""" createEmail( @@ -3055,13 +3057,13 @@ type Mutation { input: UpdatePhoneNumberInput! ): UpdatePhoneNumberPayload - """Updates a single `AuditLog` using a unique key and a patch.""" - updateAuditLog( + """Updates a single `AuditLogAuth` using a unique key and a patch.""" + updateAuditLogAuth( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAuditLogInput! - ): UpdateAuditLogPayload + input: UpdateAuditLogAuthInput! + ): UpdateAuditLogAuthPayload """Updates a single `Email` using a unique key and a patch.""" updateEmail( @@ -3111,13 +3113,13 @@ type Mutation { input: DeletePhoneNumberInput! ): DeletePhoneNumberPayload - """Deletes a single `AuditLog` using a unique key.""" - deleteAuditLog( + """Deletes a single `AuditLogAuth` using a unique key.""" + deleteAuditLogAuth( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAuditLogInput! - ): DeleteAuditLogPayload + input: DeleteAuditLogAuthInput! + ): DeleteAuditLogAuthPayload """Deletes a single `Email` using a unique key.""" deleteEmail( @@ -3558,34 +3560,6 @@ input SignUpInput { deviceToken: String } -"""The output of our `requestCrossOriginToken` mutation.""" -type RequestCrossOriginTokenPayload { - """ - 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: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `requestCrossOriginToken` mutation.""" -input RequestCrossOriginTokenInput { - """ - 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 - email: String - password: String - origin: ConstructiveInternalTypeOrigin - rememberMe: Boolean -} - """The output of our `signIn` mutation.""" type SignInPayload { """ @@ -3719,6 +3693,34 @@ input CreateApiKeyInput { expiresIn: IntervalInput } +"""The output of our `requestCrossOriginToken` mutation.""" +type RequestCrossOriginTokenPayload { + """ + 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: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `requestCrossOriginToken` mutation.""" +input RequestCrossOriginTokenInput { + """ + 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 + email: String + password: String + origin: ConstructiveInternalTypeOrigin + rememberMe: Boolean +} + """The output of our `forgotPassword` mutation.""" type ForgotPasswordPayload { """ @@ -3966,84 +3968,48 @@ input PhoneNumberInput { updatedAt: Datetime } -"""The output of our create `UserConnectedAccount` mutation.""" -type CreateUserConnectedAccountPayload { +"""The output of our create `AuditLogAuth` mutation.""" +type CreateAuditLogAuthPayload { """ 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 `UserConnectedAccount` that was created by this mutation.""" - userConnectedAccount: UserConnectedAccount + """The `AuditLogAuth` that was created by this mutation.""" + auditLogAuth: AuditLogAuth """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """An edge for our `AuditLogAuth`. May be used by Relay 1.""" + auditLogAuthEdge( + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogAuthEdge } -"""All input for the create `UserConnectedAccount` mutation.""" -input CreateUserConnectedAccountInput { +"""All input for the create `AuditLogAuth` mutation.""" +input CreateAuditLogAuthInput { """ 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 `UserConnectedAccount` to be created by this mutation.""" - userConnectedAccount: UserConnectedAccountInput! + """The `AuditLogAuth` to be created by this mutation.""" + auditLogAuth: AuditLogAuthInput! } -"""An input for mutations affecting `UserConnectedAccount`""" -input UserConnectedAccountInput { - id: UUID - ownerId: UUID - service: String - identifier: String - details: JSON - isVerified: Boolean +"""An input for mutations affecting `AuditLogAuth`""" +input AuditLogAuthInput { createdAt: Datetime - updatedAt: Datetime -} -"""The output of our create `AuditLog` mutation.""" -type CreateAuditLogPayload { """ - 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 `AuditLog` that was created by this mutation.""" - auditLog: AuditLog - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge -} - -"""All input for the create `AuditLog` mutation.""" -input CreateAuditLogInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Unique identifier for each audit event (uuidv7 provides temporal ordering) """ - clientMutationId: String - - """The `AuditLog` to be created by this mutation.""" - auditLog: AuditLogInput! -} - -"""An input for mutations affecting `AuditLog`""" -input AuditLogInput { id: UUID """ @@ -4065,9 +4031,47 @@ input AuditLogInput { """Whether the authentication attempt succeeded""" success: Boolean! +} + +"""The output of our create `UserConnectedAccount` mutation.""" +type CreateUserConnectedAccountPayload { + """ + 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 - """Timestamp when the audit event was recorded""" + """The `UserConnectedAccount` that was created by this mutation.""" + userConnectedAccount: UserConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `UserConnectedAccount` mutation.""" +input CreateUserConnectedAccountInput { + """ + 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 `UserConnectedAccount` to be created by this mutation.""" + userConnectedAccount: UserConnectedAccountInput! +} + +"""An input for mutations affecting `UserConnectedAccount`""" +input UserConnectedAccountInput { + id: UUID + ownerId: UUID + service: String + identifier: String + details: JSON + isVerified: Boolean createdAt: Datetime + updatedAt: Datetime } """The output of our create `Email` mutation.""" @@ -4435,48 +4439,58 @@ input PhoneNumberPatch { updatedAt: Datetime } -"""The output of our update `AuditLog` mutation.""" -type UpdateAuditLogPayload { +"""The output of our update `AuditLogAuth` mutation.""" +type UpdateAuditLogAuthPayload { """ 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 `AuditLog` that was updated by this mutation.""" - auditLog: AuditLog + """The `AuditLogAuth` that was updated by this mutation.""" + auditLogAuth: AuditLogAuth """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `AuditLogAuth`. May be used by Relay 1.""" + auditLogAuthEdge( + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogAuthEdge } -"""All input for the `updateAuditLog` mutation.""" -input UpdateAuditLogInput { +"""All input for the `updateAuditLogAuth` mutation.""" +input UpdateAuditLogAuthInput { """ 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 + createdAt: Datetime! + + """ + Unique identifier for each audit event (uuidv7 provides temporal ordering) + """ id: UUID! """ - An object where the defined keys will be set on the `AuditLog` being updated. + An object where the defined keys will be set on the `AuditLogAuth` being updated. """ - auditLogPatch: AuditLogPatch! + auditLogAuthPatch: AuditLogAuthPatch! } """ -Represents an update to a `AuditLog`. Fields that are set will be updated. +Represents an update to a `AuditLogAuth`. Fields that are set will be updated. """ -input AuditLogPatch { +input AuditLogAuthPatch { + createdAt: Datetime + + """ + Unique identifier for each audit event (uuidv7 provides temporal ordering) + """ id: UUID """ @@ -4498,9 +4512,6 @@ input AuditLogPatch { """Whether the authentication attempt succeeded""" success: Boolean - - """Timestamp when the audit event was recorded""" - createdAt: Datetime } """The output of our update `Email` mutation.""" @@ -4811,36 +4822,41 @@ input DeletePhoneNumberInput { id: UUID! } -"""The output of our delete `AuditLog` mutation.""" -type DeleteAuditLogPayload { +"""The output of our delete `AuditLogAuth` mutation.""" +type DeleteAuditLogAuthPayload { """ 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 `AuditLog` that was deleted by this mutation.""" - auditLog: AuditLog + """The `AuditLogAuth` that was deleted by this mutation.""" + auditLogAuth: AuditLogAuth """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `AuditLogAuth`. May be used by Relay 1.""" + auditLogAuthEdge( + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogAuthEdge } -"""All input for the `deleteAuditLog` mutation.""" -input DeleteAuditLogInput { +"""All input for the `deleteAuditLogAuth` mutation.""" +input DeleteAuditLogAuthInput { """ 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 + createdAt: Datetime! + + """ + Unique identifier for each audit event (uuidv7 provides temporal ordering) + """ id: UUID! } diff --git a/sdk/constructive-sdk/schemas/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql index 5678d585ed..89c6baf684 100644 --- a/sdk/constructive-sdk/schemas/objects.graphql +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -1,10 +1,10 @@ """The root query type which gives access points into the data universe.""" type Query { - revParse(dbId: UUID, storeId: UUID, refname: String): UUID + revParse(sId: UUID, storeId: UUID, refname: String): UUID """Reads and enables pagination through a set of `GetAllRecord`.""" getAll( - databaseId: UUID + sId: UUID id: UUID """Only read the first `n` values of the set.""" @@ -22,7 +22,7 @@ type Query { """Reads and enables pagination through a set of `Object`.""" getAllObjectsFromRoot( - databaseId: UUID + sId: UUID id: UUID """Only read the first `n` values of the set.""" @@ -37,11 +37,11 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor ): ObjectConnection - getNodeAtPath(databaseId: UUID, id: UUID, path: [String]): Object + getNodeAtPath(sId: UUID, id: UUID, path: [String]): Object """Reads and enables pagination through a set of `Object`.""" getPathObjectsFromRoot( - databaseId: UUID + sId: UUID id: UUID path: [String] @@ -57,7 +57,7 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor ): ObjectConnection - getObjectAtPath(dbId: UUID, storeId: UUID, path: [String], refname: String): Object + getObjectAtPath(sId: UUID, storeId: UUID, path: [String], refname: String): Object """Reads and enables pagination through a set of `Ref`.""" refs( @@ -260,7 +260,7 @@ type ObjectConnection { type Object { hashUuid: UUID id: UUID! - databaseId: UUID! + scopeId: UUID! kids: [UUID] ktree: [String] data: JSON @@ -310,7 +310,7 @@ type Ref { """The name of the ref or branch""" name: String! - databaseId: UUID! + scopeId: UUID! storeId: UUID! commitId: UUID } @@ -334,8 +334,8 @@ input RefFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `storeId` field.""" storeId: UUIDFilter @@ -536,8 +536,8 @@ enum RefOrderBy { ID_DESC NAME_ASC NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC STORE_ID_ASC STORE_ID_DESC COMMIT_ID_ASC @@ -569,8 +569,8 @@ type Store { """The name of the store (e.g., metaschema, migrations).""" name: String! - """The database this store belongs to.""" - databaseId: UUID! + """The scope this store belongs to.""" + scopeId: UUID! """The current head tree_id for this store.""" hash: UUID @@ -596,8 +596,8 @@ input StoreFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `hash` field.""" hash: UUIDFilter @@ -666,8 +666,8 @@ enum StoreOrderBy { ID_DESC NAME_ASC NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC HASH_ASC HASH_DESC CREATED_AT_ASC @@ -699,8 +699,8 @@ type Commit { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! storeId: UUID! """Parent commits""" @@ -736,8 +736,8 @@ input CommitFilter { """Filter by the object’s `message` field.""" message: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `storeId` field.""" storeId: UUIDFilter @@ -839,8 +839,8 @@ enum CommitOrderBy { ID_DESC MESSAGE_ASC MESSAGE_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC STORE_ID_ASC STORE_ID_DESC PARENT_IDS_ASC @@ -862,8 +862,8 @@ input ObjectFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `kids` field.""" kids: UUIDListFilter @@ -1059,8 +1059,8 @@ enum ObjectOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC KIDS_ASC KIDS_DESC KTREE_ASC @@ -1407,7 +1407,7 @@ input FreezeObjectsInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - databaseId: UUID + sId: UUID id: UUID } @@ -1432,7 +1432,7 @@ input InitEmptyRepoInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID } @@ -1458,7 +1458,7 @@ input RemoveNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] } @@ -1485,7 +1485,7 @@ input SetDataAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -1513,7 +1513,7 @@ input SetPropsAndCommitInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID refname: String path: [String] @@ -1542,7 +1542,7 @@ input InsertNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -1572,7 +1572,7 @@ input UpdateNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -1602,7 +1602,7 @@ input SetAndCommitInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID refname: String path: [String] @@ -1653,7 +1653,7 @@ input RefInput { """The name of the ref or branch""" name: String! - databaseId: UUID! + scopeId: UUID! storeId: UUID! commitId: UUID } @@ -1701,8 +1701,8 @@ input StoreInput { """The name of the store (e.g., metaschema, migrations).""" name: String! - """The database this store belongs to.""" - databaseId: UUID! + """The scope this store belongs to.""" + scopeId: UUID! """The current head tree_id for this store.""" hash: UUID @@ -1752,8 +1752,8 @@ input CommitInput { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! storeId: UUID! """Parent commits""" @@ -1808,7 +1808,7 @@ input CreateObjectInput { """An input for mutations affecting `Object`""" input ObjectInput { id: UUID! - databaseId: UUID! + scopeId: UUID! kids: [UUID] ktree: [String] data: JSON @@ -1849,7 +1849,7 @@ input UpdateRefInput { """The primary unique identifier for the ref.""" id: UUID! - databaseId: UUID! + scopeId: UUID! """ An object where the defined keys will be set on the `Ref` being updated. @@ -1864,7 +1864,7 @@ input RefPatch { """The name of the ref or branch""" name: String - databaseId: UUID + scopeId: UUID storeId: UUID commitId: UUID } @@ -1919,8 +1919,8 @@ input StorePatch { """The name of the store (e.g., metaschema, migrations).""" name: String - """The database this store belongs to.""" - databaseId: UUID + """The scope this store belongs to.""" + scopeId: UUID """The current head tree_id for this store.""" hash: UUID @@ -1961,8 +1961,8 @@ input UpdateCommitInput { """The primary unique identifier for the commit.""" id: UUID! - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! """ An object where the defined keys will be set on the `Commit` being updated. @@ -1980,8 +1980,8 @@ input CommitPatch { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID + """The scope identifier""" + scopeId: UUID storeId: UUID """Parent commits""" @@ -2029,7 +2029,7 @@ input UpdateObjectInput { """ clientMutationId: String id: UUID! - databaseId: UUID! + scopeId: UUID! """ An object where the defined keys will be set on the `Object` being updated. @@ -2042,7 +2042,7 @@ Represents an update to a `Object`. Fields that are set will be updated. """ input ObjectPatch { id: UUID - databaseId: UUID + scopeId: UUID kids: [UUID] ktree: [String] data: JSON @@ -2083,7 +2083,7 @@ input DeleteRefInput { """The primary unique identifier for the ref.""" id: UUID! - databaseId: UUID! + scopeId: UUID! } """The output of our delete `Store` mutation.""" @@ -2155,8 +2155,8 @@ input DeleteCommitInput { """The primary unique identifier for the commit.""" id: UUID! - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! } """The output of our delete `Object` mutation.""" @@ -2190,7 +2190,7 @@ input DeleteObjectInput { """ clientMutationId: String id: UUID! - databaseId: UUID! + scopeId: UUID! } input ProvisionBucketInput { diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql index 1bc6e40d0d..03f641fbf4 100644 --- a/sdk/constructive-sdk/schemas/public.graphql +++ b/sdk/constructive-sdk/schemas/public.graphql @@ -6,7 +6,7 @@ type Query { requireStepUp(stepUpType: String): Boolean appPermissionsGetPaddedMask(mask: BitString): BitString orgPermissionsGetPaddedMask(mask: BitString): BitString - revParse(dbId: UUID, storeId: UUID, refname: String): UUID + revParse(sId: UUID, storeId: UUID, refname: String): UUID """ Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. "location") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this. @@ -63,7 +63,7 @@ type Query { """Reads and enables pagination through a set of `GetAllRecord`.""" getAll( - databaseId: UUID + sId: UUID id: UUID """Only read the first `n` values of the set.""" @@ -81,9 +81,10 @@ type Query { appPermissionsGetMaskByNames(names: [String]): BitString orgPermissionsGetMaskByNames(names: [String]): BitString - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissionsGetByMask( - mask: BitString + """Reads and enables pagination through a set of `Object`.""" + getAllObjectsFromRoot( + sId: UUID + id: UUID """Only read the first `n` values of the set.""" first: Int @@ -96,11 +97,14 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor - ): AppPermissionConnection + ): ObjectConnection + getNodeAtPath(sId: UUID, id: UUID, path: [String]): Object - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissionsGetByMask( - mask: BitString + """Reads and enables pagination through a set of `Object`.""" + getPathObjectsFromRoot( + sId: UUID + id: UUID + path: [String] """Only read the first `n` values of the set.""" first: Int @@ -113,12 +117,12 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor - ): OrgPermissionConnection + ): ObjectConnection + getObjectAtPath(sId: UUID, storeId: UUID, path: [String], refname: String): Object - """Reads and enables pagination through a set of `Object`.""" - getAllObjectsFromRoot( - databaseId: UUID - id: UUID + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissionsGetByMask( + mask: BitString """Only read the first `n` values of the set.""" first: Int @@ -131,14 +135,11 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor - ): ObjectConnection - getNodeAtPath(databaseId: UUID, id: UUID, path: [String]): Object + ): AppPermissionConnection - """Reads and enables pagination through a set of `Object`.""" - getPathObjectsFromRoot( - databaseId: UUID - id: UUID - path: [String] + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissionsGetByMask( + mask: BitString """Only read the first `n` values of the set.""" first: Int @@ -151,8 +152,7 @@ type Query { """Read all values in the set after (below) this cursor.""" after: Cursor - ): ObjectConnection - getObjectAtPath(dbId: UUID, storeId: UUID, path: [String], refname: String): Object + ): OrgPermissionConnection currentUser: User """Reads and enables pagination through a set of `DefaultIdsModule`.""" @@ -184,35 +184,6 @@ type Query { orderBy: [DefaultIdsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): DefaultIdsModuleConnection - """Reads and enables pagination through a set of `RoleType`.""" - roleTypes( - """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: RoleTypeFilter - - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): RoleTypeConnection - """ Reads and enables pagination through a set of `AppLimitCreditRedemption`. """ @@ -506,9 +477,9 @@ type Query { ): StoreConnection """ - Reads and enables pagination through a set of `EncryptedSecretsModule`. + Reads and enables pagination through a set of `ConfigSecretsOrgModule`. """ - encryptedSecretsModules( + configSecretsOrgModules( """Only read the first `n` values of the set.""" first: Int @@ -530,11 +501,42 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EncryptedSecretsModuleFilter + where: ConfigSecretsOrgModuleFilter - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleConnection + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleConnection + + """ + Reads and enables pagination through a set of `ConfigSecretsUserModule`. + """ + configSecretsUserModules( + """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: ConfigSecretsUserModuleFilter + + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleConnection """Reads and enables pagination through a set of `MembershipTypesModule`.""" membershipTypesModules( @@ -681,8 +683,8 @@ type Query { orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] ): SiteModuleConnection - """Reads and enables pagination through a set of `AppLimitCreditCode`.""" - appLimitCreditCodes( + """Reads and enables pagination through a set of `RoleType`.""" + roleTypes( """Only read the first `n` values of the set.""" first: Int @@ -704,11 +706,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeFilter + where: RoleTypeFilter - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeConnection + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): RoleTypeConnection """Reads and enables pagination through a set of `SchemaGrant`.""" schemaGrants( @@ -944,8 +946,8 @@ type Query { orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): OrgPermissionDefaultConnection - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissions( + """Reads and enables pagination through a set of `MigrateFile`.""" + migrateFiles( """Only read the first `n` values of the set.""" first: Int @@ -967,14 +969,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionFilter + where: MigrateFileFilter - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionConnection + """The method to use when ordering `MigrateFile`.""" + orderBy: [MigrateFileOrderBy!] = [NATURAL] + ): MigrateFileConnection - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissions( + """Reads and enables pagination through a set of `DefaultPrivilege`.""" + defaultPrivileges( """Only read the first `n` values of the set.""" first: Int @@ -996,14 +998,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgPermissionFilter + where: DefaultPrivilegeFilter - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionConnection + """The method to use when ordering `DefaultPrivilege`.""" + orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] + ): DefaultPrivilegeConnection - """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" - appLimitCapsDefaults( + """Reads and enables pagination through a set of `ViewGrant`.""" + viewGrants( """Only read the first `n` values of the set.""" first: Int @@ -1025,14 +1027,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCapsDefaultFilter + where: ViewGrantFilter - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultConnection + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewGrantConnection - """Reads and enables pagination through a set of `OrgLimitCapsDefault`.""" - orgLimitCapsDefaults( + """Reads and enables pagination through a set of `Api`.""" + apis( """Only read the first `n` values of the set.""" first: Int @@ -1054,14 +1056,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCapsDefaultFilter + where: ApiFilter - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultConnection + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiConnection - """Reads and enables pagination through a set of `AppLimitCap`.""" - appLimitCaps( + """ + Reads and enables pagination through a set of `ConnectedAccountsModule`. + """ + connectedAccountsModules( """Only read the first `n` values of the set.""" first: Int @@ -1083,14 +1087,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCapFilter + where: ConnectedAccountsModuleFilter - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCapConnection + """The method to use when ordering `ConnectedAccountsModule`.""" + orderBy: [ConnectedAccountsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConnectedAccountsModuleConnection - """Reads and enables pagination through a set of `OrgLimitCap`.""" - orgLimitCaps( + """Reads and enables pagination through a set of `DevicesModule`.""" + devicesModules( """Only read the first `n` values of the set.""" first: Int @@ -1112,14 +1116,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCapFilter + where: DevicesModuleFilter - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCapConnection + """The method to use when ordering `DevicesModule`.""" + orderBy: [DevicesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DevicesModuleConnection - """Reads and enables pagination through a set of `MembershipType`.""" - membershipTypes( + """Reads and enables pagination through a set of `EmailsModule`.""" + emailsModules( """Only read the first `n` values of the set.""" first: Int @@ -1141,14 +1145,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipTypeFilter + where: EmailsModuleFilter - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypeConnection + """The method to use when ordering `EmailsModule`.""" + orderBy: [EmailsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailsModuleConnection - """Reads and enables pagination through a set of `MigrateFile`.""" - migrateFiles( + """Reads and enables pagination through a set of `PhoneNumbersModule`.""" + phoneNumbersModules( """Only read the first `n` values of the set.""" first: Int @@ -1170,14 +1174,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MigrateFileFilter + where: PhoneNumbersModuleFilter - """The method to use when ordering `MigrateFile`.""" - orderBy: [MigrateFileOrderBy!] = [NATURAL] - ): MigrateFileConnection + """The method to use when ordering `PhoneNumbersModule`.""" + orderBy: [PhoneNumbersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumbersModuleConnection - """Reads and enables pagination through a set of `DefaultPrivilege`.""" - defaultPrivileges( + """Reads and enables pagination through a set of `UsersModule`.""" + usersModules( """Only read the first `n` values of the set.""" first: Int @@ -1199,14 +1203,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DefaultPrivilegeFilter + where: UsersModuleFilter - """The method to use when ordering `DefaultPrivilege`.""" - orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] - ): DefaultPrivilegeConnection + """The method to use when ordering `UsersModule`.""" + orderBy: [UsersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UsersModuleConnection - """Reads and enables pagination through a set of `ViewGrant`.""" - viewGrants( + """ + Reads and enables pagination through a set of `WebauthnCredentialsModule`. + """ + webauthnCredentialsModules( """Only read the first `n` values of the set.""" first: Int @@ -1228,14 +1234,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ViewGrantFilter + where: WebauthnCredentialsModuleFilter - """The method to use when ordering `ViewGrant`.""" - orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewGrantConnection + """The method to use when ordering `WebauthnCredentialsModule`.""" + orderBy: [WebauthnCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): WebauthnCredentialsModuleConnection - """Reads and enables pagination through a set of `Api`.""" - apis( + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -1257,16 +1263,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiFilter + where: AppMembershipDefaultFilter - """The method to use when ordering `Api`.""" - orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiConnection + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultConnection - """ - Reads and enables pagination through a set of `ConnectedAccountsModule`. - """ - connectedAccountsModules( + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrants( """Only read the first `n` values of the set.""" first: Int @@ -1288,14 +1292,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ConnectedAccountsModuleFilter + where: OrgAdminGrantFilter - """The method to use when ordering `ConnectedAccountsModule`.""" - orderBy: [ConnectedAccountsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConnectedAccountsModuleConnection + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgAdminGrantConnection - """Reads and enables pagination through a set of `DevicesModule`.""" - devicesModules( + """Reads and enables pagination through a set of `OrgMembershipDefault`.""" + orgMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -1317,14 +1321,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DevicesModuleFilter + where: OrgMembershipDefaultFilter - """The method to use when ordering `DevicesModule`.""" - orderBy: [DevicesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DevicesModuleConnection + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultConnection - """Reads and enables pagination through a set of `EmailsModule`.""" - emailsModules( + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" + orgOwnerGrants( """Only read the first `n` values of the set.""" first: Int @@ -1346,43 +1350,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EmailsModuleFilter - - """The method to use when ordering `EmailsModule`.""" - orderBy: [EmailsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): EmailsModuleConnection - - """Reads and enables pagination through a set of `PhoneNumbersModule`.""" - phoneNumbersModules( - """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: PhoneNumbersModuleFilter + where: OrgOwnerGrantFilter - """The method to use when ordering `PhoneNumbersModule`.""" - orderBy: [PhoneNumbersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PhoneNumbersModuleConnection + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantConnection - """Reads and enables pagination through a set of `UsersModule`.""" - usersModules( + """Reads and enables pagination through a set of `NodeTypeRegistry`.""" + nodeTypeRegistries( """Only read the first `n` values of the set.""" first: Int @@ -1404,16 +1379,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UsersModuleFilter + where: NodeTypeRegistryFilter - """The method to use when ordering `UsersModule`.""" - orderBy: [UsersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UsersModuleConnection + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!] = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryConnection - """ - Reads and enables pagination through a set of `WebauthnCredentialsModule`. - """ - webauthnCredentialsModules( + """Reads and enables pagination through a set of `AppLimitCapsDefault`.""" + appLimitCapsDefaults( """Only read the first `n` values of the set.""" first: Int @@ -1435,14 +1408,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: WebauthnCredentialsModuleFilter + where: AppLimitCapsDefaultFilter - """The method to use when ordering `WebauthnCredentialsModule`.""" - orderBy: [WebauthnCredentialsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnCredentialsModuleConnection + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultConnection - """Reads and enables pagination through a set of `OrgAdminGrant`.""" - orgAdminGrants( + """Reads and enables pagination through a set of `OrgLimitCapsDefault`.""" + orgLimitCapsDefaults( """Only read the first `n` values of the set.""" first: Int @@ -1464,14 +1437,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgAdminGrantFilter + where: OrgLimitCapsDefaultFilter - """The method to use when ordering `OrgAdminGrant`.""" - orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgAdminGrantConnection + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultConnection - """Reads and enables pagination through a set of `OrgOwnerGrant`.""" - orgOwnerGrants( + """Reads and enables pagination through a set of `AppLimitCap`.""" + appLimitCaps( """Only read the first `n` values of the set.""" first: Int @@ -1493,14 +1466,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgOwnerGrantFilter + where: AppLimitCapFilter - """The method to use when ordering `OrgOwnerGrant`.""" - orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgOwnerGrantConnection + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCapConnection - """Reads and enables pagination through a set of `NodeTypeRegistry`.""" - nodeTypeRegistries( + """Reads and enables pagination through a set of `OrgLimitCap`.""" + orgLimitCaps( """Only read the first `n` values of the set.""" first: Int @@ -1522,14 +1495,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: NodeTypeRegistryFilter + where: OrgLimitCapFilter - """The method to use when ordering `NodeTypeRegistry`.""" - orderBy: [NodeTypeRegistryOrderBy!] = [PRIMARY_KEY_ASC] - ): NodeTypeRegistryConnection + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCapConnection - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( + """Reads and enables pagination through a set of `UserConnectedAccount`.""" + userConnectedAccounts( """Only read the first `n` values of the set.""" first: Int @@ -1551,14 +1524,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitDefaultFilter + where: UserConnectedAccountFilter - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitDefaultConnection + """The method to use when ordering `UserConnectedAccount`.""" + orderBy: [UserConnectedAccountOrderBy!] = [NATURAL] + ): UserConnectedAccountConnection - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( + """Reads and enables pagination through a set of `Database`.""" + databases( """Only read the first `n` values of the set.""" first: Int @@ -1580,16 +1553,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitDefaultFilter + where: DatabaseFilter - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultConnection + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseConnection - """ - Reads and enables pagination through a set of `AppLimitCreditCodeItem`. - """ - appLimitCreditCodeItems( + """Reads and enables pagination through a set of `CryptoAddressesModule`.""" + cryptoAddressesModules( """Only read the first `n` values of the set.""" first: Int @@ -1611,14 +1582,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditCodeItemFilter + where: CryptoAddressesModuleFilter - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemConnection + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleConnection - """Reads and enables pagination through a set of `AppLimitWarning`.""" - appLimitWarnings( + """Reads and enables pagination through a set of `OrgChartEdge`.""" + orgChartEdges( """Only read the first `n` values of the set.""" first: Int @@ -1640,14 +1611,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitWarningFilter + where: OrgChartEdgeFilter - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitWarningConnection + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeConnection - """Reads and enables pagination through a set of `UserConnectedAccount`.""" - userConnectedAccounts( + """Reads and enables pagination through a set of `CryptoAddress`.""" + cryptoAddresses( """Only read the first `n` values of the set.""" first: Int @@ -1669,14 +1640,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UserConnectedAccountFilter + where: CryptoAddressFilter - """The method to use when ordering `UserConnectedAccount`.""" - orderBy: [UserConnectedAccountOrderBy!] = [NATURAL] - ): UserConnectedAccountConnection + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressConnection - """Reads and enables pagination through a set of `Database`.""" - databases( + """ + Reads and enables pagination through a set of `AppLimitCreditCodeItem`. + """ + appLimitCreditCodeItems( """Only read the first `n` values of the set.""" first: Int @@ -1698,14 +1671,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseFilter + where: AppLimitCreditCodeItemFilter - """The method to use when ordering `Database`.""" - orderBy: [DatabaseOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseConnection + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemConnection - """Reads and enables pagination through a set of `CryptoAddressesModule`.""" - cryptoAddressesModules( + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -1727,14 +1700,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CryptoAddressesModuleFilter + where: AppLimitDefaultFilter - """The method to use when ordering `CryptoAddressesModule`.""" - orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressesModuleConnection + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection - """Reads and enables pagination through a set of `CryptoAddress`.""" - cryptoAddresses( + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -1756,14 +1729,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CryptoAddressFilter + where: OrgLimitDefaultFilter - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressConnection + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection - """Reads and enables pagination through a set of `AgentMessage`.""" - agentMessages( + """Reads and enables pagination through a set of `Object`.""" + objects( """Only read the first `n` values of the set.""" first: Int @@ -1785,14 +1758,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentMessageFilter + where: ObjectFilter - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentMessageConnection + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!] = [PRIMARY_KEY_ASC] + ): ObjectConnection - """Reads and enables pagination through a set of `AppLimitCredit`.""" - appLimitCredits( + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissions( """Only read the first `n` values of the set.""" first: Int @@ -1814,14 +1787,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitCreditFilter + where: AppPermissionFilter - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitCreditConnection + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionConnection - """Reads and enables pagination through a set of `OrgLimitWarning`.""" - orgLimitWarnings( + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissions( """Only read the first `n` values of the set.""" first: Int @@ -1843,14 +1816,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitWarningFilter + where: OrgPermissionFilter - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitWarningConnection + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionConnection - """Reads and enables pagination through a set of `OrgLimitCredit`.""" - orgLimitCredits( + """Reads and enables pagination through a set of `AppLimitCreditCode`.""" + appLimitCreditCodes( """Only read the first `n` values of the set.""" first: Int @@ -1872,14 +1845,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitCreditFilter + where: AppLimitCreditCodeFilter - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitCreditConnection + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeConnection - """Reads and enables pagination through a set of `Object`.""" - objects( + """Reads and enables pagination through a set of `AppLimitWarning`.""" + appLimitWarnings( """Only read the first `n` values of the set.""" first: Int @@ -1901,14 +1874,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ObjectFilter + where: AppLimitWarningFilter - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!] = [PRIMARY_KEY_ASC] - ): ObjectConnection + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitWarningConnection - """Reads and enables pagination through a set of `SiteMetadatum`.""" - siteMetadata( + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( """Only read the first `n` values of the set.""" first: Int @@ -1930,14 +1903,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SiteMetadatumFilter + where: FullTextSearchFilter - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteMetadatumConnection + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection - """Reads and enables pagination through a set of `FullTextSearch`.""" - fullTextSearches( + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( """Only read the first `n` values of the set.""" first: Int @@ -1959,14 +1932,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FullTextSearchFilter + where: TableGrantFilter - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] - ): FullTextSearchConnection + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): TableGrantConnection - """Reads and enables pagination through a set of `TableGrant`.""" - tableGrants( + """Reads and enables pagination through a set of `Commit`.""" + commits( """Only read the first `n` values of the set.""" first: Int @@ -1988,14 +1961,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: TableGrantFilter + where: CommitFilter - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): TableGrantConnection + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] + ): CommitConnection - """Reads and enables pagination through a set of `Commit`.""" - commits( + """Reads and enables pagination through a set of `SiteMetadatum`.""" + siteMetadata( """Only read the first `n` values of the set.""" first: Int @@ -2017,11 +1990,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CommitFilter + where: SiteMetadatumFilter - """The method to use when ordering `Commit`.""" - orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] - ): CommitConnection + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteMetadatumConnection """Reads and enables pagination through a set of `PubkeySetting`.""" pubkeySettings( @@ -2139,8 +2112,8 @@ type Query { orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] ): PhoneNumberConnection - """Reads and enables pagination through a set of `UsageSnapshot`.""" - usageSnapshots( + """Reads and enables pagination through a set of `AppLimitCredit`.""" + appLimitCredits( """Only read the first `n` values of the set.""" first: Int @@ -2162,14 +2135,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UsageSnapshotFilter + where: AppLimitCreditFilter - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!] = [PRIMARY_KEY_ASC] - ): UsageSnapshotConnection + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitCreditConnection - """Reads and enables pagination through a set of `AppClaimedInvite`.""" - appClaimedInvites( + """Reads and enables pagination through a set of `OrgLimitCredit`.""" + orgLimitCredits( """Only read the first `n` values of the set.""" first: Int @@ -2191,14 +2164,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppClaimedInviteFilter + where: OrgLimitCreditFilter - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppClaimedInviteConnection + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitCreditConnection - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( + """Reads and enables pagination through a set of `AppClaimedInvite`.""" + appClaimedInvites( """Only read the first `n` values of the set.""" first: Int @@ -2220,14 +2193,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipDefaultFilter + where: AppClaimedInviteFilter - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultConnection + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppClaimedInviteConnection - """Reads and enables pagination through a set of `OrgMembershipDefault`.""" - orgMembershipDefaults( + """Reads and enables pagination through a set of `OrgLimitWarning`.""" + orgLimitWarnings( """Only read the first `n` values of the set.""" first: Int @@ -2249,14 +2222,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipDefaultFilter + where: OrgLimitWarningFilter - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultConnection + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitWarningConnection - """Reads and enables pagination through a set of `AuditLog`.""" - auditLogs( + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( """Only read the first `n` values of the set.""" first: Int @@ -2278,11 +2251,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AuditLogFilter + where: MembershipTypeFilter - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] - ): AuditLogConnection + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypeConnection """Reads and enables pagination through a set of `Domain`.""" domains( @@ -2342,93 +2315,6 @@ type Query { orderBy: [RlsSettingOrderBy!] = [PRIMARY_KEY_ASC] ): RlsSettingConnection - """Reads and enables pagination through a set of `AgentTask`.""" - agentTasks( - """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: AgentTaskFilter - - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentTaskConnection - - """Reads and enables pagination through a set of `AgentThread`.""" - agentThreads( - """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: AgentThreadFilter - - """The method to use when ordering `AgentThread`.""" - orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentThreadConnection - - """Reads and enables pagination through a set of `Email`.""" - emails( - """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 `AppGrant`.""" appGrants( """Only read the first `n` values of the set.""" @@ -2487,8 +2373,8 @@ type Query { orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] ): OrgClaimedInviteConnection - """Reads and enables pagination through a set of `AppLimitEvent`.""" - appLimitEvents( + """Reads and enables pagination through a set of `AuditLogAuth`.""" + auditLogAuths( """Only read the first `n` values of the set.""" first: Int @@ -2510,98 +2396,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitEventFilter - - """The method to use when ordering `AppLimitEvent`.""" - orderBy: [AppLimitEventOrderBy!] = [NATURAL] - ): AppLimitEventConnection - - """Reads and enables pagination through a set of `OrgLimitEvent`.""" - orgLimitEvents( - """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 + where: AuditLogAuthFilter - """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: OrgLimitEventFilter - - """The method to use when ordering `OrgLimitEvent`.""" - orderBy: [OrgLimitEventOrderBy!] = [NATURAL] - ): OrgLimitEventConnection - - """Reads and enables pagination through a set of `OrgChartEdge`.""" - orgChartEdges( - """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: OrgChartEdgeFilter - - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection - - """Reads and enables pagination through a set of `Partition`.""" - partitions( - """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: PartitionFilter - - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] - ): PartitionConnection + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogAuthConnection """Reads and enables pagination through a set of `BlueprintConstruction`.""" blueprintConstructions( @@ -2690,6 +2489,35 @@ type Query { orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): SessionsModuleConnection + """Reads and enables pagination through a set of `OrgMemberProfile`.""" + orgMemberProfiles( + """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: OrgMemberProfileFilter + + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberProfileConnection + """Reads and enables pagination through a set of `OrgGrant`.""" orgGrants( """Only read the first `n` values of the set.""" @@ -2719,6 +2547,64 @@ type Query { orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] ): OrgGrantConnection + """Reads and enables pagination through a set of `Partition`.""" + partitions( + """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: PartitionFilter + + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] + ): PartitionConnection + + """Reads and enables pagination through a set of `AgentChatModule`.""" + agentChatModules( + """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: AgentChatModuleFilter + + """The method to use when ordering `AgentChatModule`.""" + orderBy: [AgentChatModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentChatModuleConnection + """Reads and enables pagination through a set of `Blueprint`.""" blueprints( """Only read the first `n` values of the set.""" @@ -2866,8 +2752,8 @@ type Query { orderBy: [PlansModuleOrderBy!] = [PRIMARY_KEY_ASC] ): PlansModuleConnection - """Reads and enables pagination through a set of `AppLimit`.""" - appLimits( + """Reads and enables pagination through a set of `Email`.""" + emails( """Only read the first `n` values of the set.""" first: Int @@ -2889,14 +2775,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitFilter + where: EmailFilter - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitConnection + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailConnection - """Reads and enables pagination through a set of `OrgMemberProfile`.""" - orgMemberProfiles( + """Reads and enables pagination through a set of `SqlAction`.""" + sqlActions( """Only read the first `n` values of the set.""" first: Int @@ -2918,14 +2804,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMemberProfileFilter + where: SqlActionFilter - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberProfileConnection + """The method to use when ordering `SqlAction`.""" + orderBy: [SqlActionOrderBy!] = [NATURAL] + ): SqlActionConnection - """Reads and enables pagination through a set of `SqlAction`.""" - sqlActions( + """Reads and enables pagination through a set of `AppLimitEvent`.""" + appLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -2947,14 +2833,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SqlActionFilter + where: AppLimitEventFilter - """The method to use when ordering `SqlAction`.""" - orderBy: [SqlActionOrderBy!] = [NATURAL] - ): SqlActionConnection + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitEventConnection - """Reads and enables pagination through a set of `DatabaseTransfer`.""" - databaseTransfers( + """Reads and enables pagination through a set of `OrgLimitEvent`.""" + orgLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -2976,14 +2862,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseTransferFilter + where: OrgLimitEventFilter - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseTransferConnection + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitEventConnection - """Reads and enables pagination through a set of `DatabaseSetting`.""" - databaseSettings( + """Reads and enables pagination through a set of `DatabaseTransfer`.""" + databaseTransfers( """Only read the first `n` values of the set.""" first: Int @@ -3005,14 +2891,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseSettingFilter + where: DatabaseTransferFilter - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseSettingConnection + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseTransferConnection - """Reads and enables pagination through a set of `BillingModule`.""" - billingModules( + """Reads and enables pagination through a set of `DatabaseSetting`.""" + databaseSettings( """Only read the first `n` values of the set.""" first: Int @@ -3034,11 +2920,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BillingModuleFilter + where: DatabaseSettingFilter - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): BillingModuleConnection + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseSettingConnection """Reads and enables pagination through a set of `CryptoAuthModule`.""" cryptoAuthModules( @@ -3129,6 +3015,35 @@ type Query { orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] ): InvitesModuleConnection + """Reads and enables pagination through a set of `OrgMembershipSetting`.""" + orgMembershipSettings( + """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: OrgMembershipSettingFilter + + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingConnection + """Reads and enables pagination through a set of `SecureTableProvision`.""" secureTableProvisions( """Only read the first `n` values of the set.""" @@ -3158,8 +3073,8 @@ type Query { orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] ): SecureTableProvisionConnection - """Reads and enables pagination through a set of `OrgLimitAggregate`.""" - orgLimitAggregates( + """Reads and enables pagination through a set of `AppLimit`.""" + appLimits( """Only read the first `n` values of the set.""" first: Int @@ -3181,14 +3096,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitAggregateFilter + where: AppLimitFilter - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateConnection + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitConnection - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimits( + """Reads and enables pagination through a set of `ApiSetting`.""" + apiSettings( """Only read the first `n` values of the set.""" first: Int @@ -3210,14 +3125,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitFilter + where: ApiSettingFilter - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitConnection + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSettingConnection - """Reads and enables pagination through a set of `AstMigration`.""" - astMigrations( + """Reads and enables pagination through a set of `ComputeLogModule`.""" + computeLogModules( """Only read the first `n` values of the set.""" first: Int @@ -3239,14 +3154,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AstMigrationFilter + where: ComputeLogModuleFilter - """The method to use when ordering `AstMigration`.""" - orderBy: [AstMigrationOrderBy!] = [NATURAL] - ): AstMigrationConnection + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ComputeLogModuleConnection - """Reads and enables pagination through a set of `ApiSetting`.""" - apiSettings( + """Reads and enables pagination through a set of `InferenceLogModule`.""" + inferenceLogModules( """Only read the first `n` values of the set.""" first: Int @@ -3268,11 +3183,69 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiSettingFilter + where: InferenceLogModuleFilter - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSettingConnection + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InferenceLogModuleConnection + + """Reads and enables pagination through a set of `StorageLogModule`.""" + storageLogModules( + """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: StorageLogModuleFilter + + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): StorageLogModuleConnection + + """Reads and enables pagination through a set of `TransferLogModule`.""" + transferLogModules( + """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: TransferLogModuleFilter + + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TransferLogModuleConnection """Reads and enables pagination through a set of `Enum`.""" enums( @@ -3303,8 +3276,8 @@ type Query { orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] ): EnumConnection - """Reads and enables pagination through a set of `User`.""" - users( + """Reads and enables pagination through a set of `OrgLimitAggregate`.""" + orgLimitAggregates( """Only read the first `n` values of the set.""" first: Int @@ -3326,11 +3299,40 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UserFilter + where: OrgLimitAggregateFilter - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!] = [PRIMARY_KEY_ASC] - ): UserConnection + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateConnection + + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimits( + """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: OrgLimitFilter + + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection """Reads and enables pagination through a set of `View`.""" views( @@ -3390,8 +3392,8 @@ type Query { orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] ): WebauthnAuthModuleConnection - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( """Only read the first `n` values of the set.""" first: Int @@ -3413,14 +3415,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppInviteFilter + where: AppMembershipFilter - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppInviteConnection + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipConnection - """Reads and enables pagination through a set of `OrgMembershipSetting`.""" - orgMembershipSettings( + """Reads and enables pagination through a set of `User`.""" + users( """Only read the first `n` values of the set.""" first: Int @@ -3442,11 +3444,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipSettingFilter + where: UserFilter - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingConnection + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!] = [PRIMARY_KEY_ASC] + ): UserConnection """Reads and enables pagination through a set of `App`.""" apps( @@ -3506,6 +3508,35 @@ type Query { orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] ): SiteConnection + """Reads and enables pagination through a set of `DbUsageModule`.""" + dbUsageModules( + """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: DbUsageModuleFilter + + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DbUsageModuleConnection + """Reads and enables pagination through a set of `NotificationsModule`.""" notificationsModules( """Only read the first `n` values of the set.""" @@ -3564,6 +3595,35 @@ type Query { orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): PermissionsModuleConnection + """Reads and enables pagination through a set of `AstMigration`.""" + astMigrations( + """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: AstMigrationFilter + + """The method to use when ordering `AstMigration`.""" + orderBy: [AstMigrationOrderBy!] = [NATURAL] + ): AstMigrationConnection + """Reads and enables pagination through a set of `WebauthnCredential`.""" webauthnCredentials( """Only read the first `n` values of the set.""" @@ -3796,8 +3856,8 @@ type Query { orderBy: [WebauthnSettingOrderBy!] = [PRIMARY_KEY_ASC] ): WebauthnSettingConnection - """Reads and enables pagination through a set of `AppMembership`.""" - appMemberships( + """Reads and enables pagination through a set of `BillingModule`.""" + billingModules( """Only read the first `n` values of the set.""" first: Int @@ -3819,11 +3879,40 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipFilter + where: BillingModuleFilter - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipConnection + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): BillingModuleConnection + + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMemberships( + """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: OrgMembershipFilter + + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection """Reads and enables pagination through a set of `Schema`.""" schemas( @@ -3883,8 +3972,8 @@ type Query { orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] ): IndexConnection - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvites( + """Reads and enables pagination through a set of `AppInvite`.""" + appInvites( """Only read the first `n` values of the set.""" first: Int @@ -3906,11 +3995,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgInviteFilter + where: AppInviteFilter - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgInviteConnection + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppInviteConnection """Reads and enables pagination through a set of `BillingProviderModule`.""" billingProviderModules( @@ -4028,8 +4117,8 @@ type Query { orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] ): ProfilesModuleConnection - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMemberships( + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( """Only read the first `n` values of the set.""" first: Int @@ -4051,14 +4140,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipFilter + where: EmbeddingChunkFilter - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunks( + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( """Only read the first `n` values of the set.""" first: Int @@ -4080,14 +4169,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EmbeddingChunkFilter + where: ForeignKeyConstraintFilter - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): EmbeddingChunkConnection + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection - """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" - foreignKeyConstraints( + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvites( """Only read the first `n` values of the set.""" first: Int @@ -4109,11 +4198,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ForeignKeyConstraintFilter + where: OrgInviteFilter - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintConnection + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgInviteConnection """Reads and enables pagination through a set of `RelationProvision`.""" relationProvisions( @@ -4289,8 +4378,8 @@ type Query { orderBy: [LimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): LimitsModuleConnection - """Reads and enables pagination through a set of `StorageModule`.""" - storageModules( + """Reads and enables pagination through a set of `MembershipsModule`.""" + membershipsModules( """Only read the first `n` values of the set.""" first: Int @@ -4312,14 +4401,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: StorageModuleFilter + where: MembershipsModuleFilter - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): StorageModuleConnection + """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 `StorageModule`.""" + storageModules( """Only read the first `n` values of the set.""" first: Int @@ -4341,11 +4430,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipsModuleFilter + where: StorageModuleFilter - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipsModuleConnection + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): StorageModuleConnection """Reads and enables pagination through a set of `EventsModule`.""" eventsModules( @@ -4513,6 +4602,52 @@ type GetAllEdge { node: GetAllRecord } +"""A connection to a list of `Object` values.""" +type ObjectConnection { + """A list of `Object` objects.""" + nodes: [Object]! + + """ + A list of edges which contains the `Object` and cursor to aid in pagination. + """ + edges: [ObjectEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Object` you could get from the connection.""" + totalCount: Int! +} + +type Object { + hashUuid: UUID + id: UUID! + scopeId: UUID! + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +"""A `Object` edge in the connection.""" +type ObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Object` at the end of the edge.""" + node: Object +} + """A connection to a list of `AppPermission` values.""" type AppPermissionConnection { """A list of `AppPermission` objects.""" @@ -4611,52 +4746,6 @@ type OrgPermissionEdge { node: OrgPermission } -"""A connection to a list of `Object` values.""" -type ObjectConnection { - """A list of `Object` objects.""" - nodes: [Object]! - - """ - A list of edges which contains the `Object` and cursor to aid in pagination. - """ - edges: [ObjectEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Object` you could get from the connection.""" - totalCount: Int! -} - -type Object { - hashUuid: UUID - id: UUID! - databaseId: UUID! - kids: [UUID] - ktree: [String] - data: JSON - frzn: Boolean - createdAt: Datetime -} - -""" -A point in time as described by the [ISO -8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC -3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values -that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead -to unexpected results. -""" -scalar Datetime - -"""A `Object` edge in the connection.""" -type ObjectEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Object` at the end of the edge.""" - node: Object -} - type User { id: UUID! username: String @@ -6158,8 +6247,8 @@ type User { orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] ): OrgClaimedInviteConnection! - """Reads and enables pagination through a set of `AuditLog`.""" - auditLogsByActorId( + """Reads and enables pagination through a set of `AuditLogAuth`.""" + auditLogAuthsByActorId( """Only read the first `n` values of the set.""" first: Int @@ -6181,14 +6270,70 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: AuditLogFilter + where: AuditLogAuthFilter - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] - ): AuditLogConnection! + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogAuthConnection! - """Reads and enables pagination through a set of `AgentThread`.""" - agentThreadsByEntityId( + """ + TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + + """ + TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. + """ + displayNameTrgmSimilarity: Float + + """ + 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 +} + +scalar ConstructiveInternalTypeImage + +"""A full-text search tsvector value represented as a string.""" +scalar FullText + +type RoleType { + id: Int! + name: String! +} + +"""A connection to a list of `Database` values.""" +type DatabaseConnection { + """A list of `Database` objects.""" + nodes: [Database]! + + """ + A list of edges which contains the `Database` and cursor to aid in pagination. + """ + edges: [DatabaseEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Database` you could get from the connection.""" + totalCount: Int! +} + +type Database { + id: UUID! + ownerId: UUID + schemaHash: String + name: String + label: String + hash: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `Database`.""" + owner: User + + """Reads and enables pagination through a set of `Schema`.""" + schemas( """Only read the first `n` values of the set.""" first: Int @@ -6210,14 +6355,14 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentThreadFilter + where: SchemaFilter - """The method to use when ordering `AgentThread`.""" - orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentThreadConnection! + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaConnection! - """Reads and enables pagination through a set of `AgentThread`.""" - ownedAgentThreads( + """Reads and enables pagination through a set of `Table`.""" + tables( """Only read the first `n` values of the set.""" first: Int @@ -6239,14 +6384,14 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentThreadFilter + where: TableFilter - """The method to use when ordering `AgentThread`.""" - orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentThreadConnection! + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection! - """Reads and enables pagination through a set of `AgentMessage`.""" - ownedAgentMessages( + """Reads and enables pagination through a set of `CheckConstraint`.""" + checkConstraints( """Only read the first `n` values of the set.""" first: Int @@ -6268,14 +6413,14 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentMessageFilter + where: CheckConstraintFilter - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentMessageConnection! + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): CheckConstraintConnection! - """Reads and enables pagination through a set of `AgentTask`.""" - ownedAgentTasks( + """Reads and enables pagination through a set of `Field`.""" + fields( """Only read the first `n` values of the set.""" first: Int @@ -6297,70 +6442,43 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: AgentTaskFilter - - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentTaskConnection! - - """ - TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. - """ - searchTsvRank: Float - - """ - TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. - """ - displayNameTrgmSimilarity: Float - - """ - 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 -} - -scalar ConstructiveInternalTypeImage + where: FieldFilter -"""A full-text search tsvector value represented as a string.""" -scalar FullText + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldConnection! -type RoleType { - id: Int! - name: String! -} + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int -"""A connection to a list of `Database` values.""" -type DatabaseConnection { - """A list of `Database` objects.""" - nodes: [Database]! + """Only read the last `n` values of the set.""" + last: Int - """ - A list of edges which contains the `Database` and cursor to aid in pagination. - """ - edges: [DatabaseEdge]! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """The count of *all* `Database` you could get from the connection.""" - totalCount: Int! -} + """Read all values in the set after (below) this cursor.""" + after: Cursor -type Database { - id: UUID! - ownerId: UUID - schemaHash: String - name: String - label: String - hash: UUID - createdAt: Datetime - updatedAt: Datetime + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ForeignKeyConstraintFilter - """Reads a single `User` that is related to this `Database`.""" - owner: User + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection! - """Reads and enables pagination through a set of `Schema`.""" - schemas( + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( """Only read the first `n` values of the set.""" first: Int @@ -6382,14 +6500,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: SchemaFilter + where: FullTextSearchFilter - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaConnection! + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection! - """Reads and enables pagination through a set of `Table`.""" - tables( + """Reads and enables pagination through a set of `Index`.""" + indices( """Only read the first `n` values of the set.""" first: Int @@ -6411,14 +6529,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: TableFilter + where: IndexFilter - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] - ): TableConnection! + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] + ): IndexConnection! - """Reads and enables pagination through a set of `CheckConstraint`.""" - checkConstraints( + """Reads and enables pagination through a set of `Policy`.""" + policies( """Only read the first `n` values of the set.""" first: Int @@ -6440,14 +6558,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: CheckConstraintFilter + where: PolicyFilter - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): CheckConstraintConnection! + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] + ): PolicyConnection! - """Reads and enables pagination through a set of `Field`.""" - fields( + """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" + primaryKeyConstraints( """Only read the first `n` values of the set.""" first: Int @@ -6469,14 +6587,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: FieldFilter + where: PrimaryKeyConstraintFilter - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] - ): FieldConnection! + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintConnection! - """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" - foreignKeyConstraints( + """Reads and enables pagination through a set of `SchemaGrant`.""" + schemaGrants( """Only read the first `n` values of the set.""" first: Int @@ -6498,159 +6616,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: ForeignKeyConstraintFilter + where: SchemaGrantFilter - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintConnection! + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaGrantConnection! - """Reads and enables pagination through a set of `FullTextSearch`.""" - fullTextSearches( - """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: FullTextSearchFilter - - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] - ): FullTextSearchConnection! - - """Reads and enables pagination through a set of `Index`.""" - indices( - """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: IndexFilter - - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] - ): IndexConnection! - - """Reads and enables pagination through a set of `Policy`.""" - policies( - """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: PolicyFilter - - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] - ): PolicyConnection! - - """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" - primaryKeyConstraints( - """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: PrimaryKeyConstraintFilter - - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintConnection! - - """Reads and enables pagination through a set of `SchemaGrant`.""" - schemaGrants( - """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: SchemaGrantFilter - - """The method to use when ordering `SchemaGrant`.""" - orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaGrantConnection! - - """Reads and enables pagination through a set of `TableGrant`.""" - tableGrants( + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( """Only read the first `n` values of the set.""" first: Int @@ -7565,9 +7538,9 @@ type Database { ): EmailsModuleConnection! """ - Reads and enables pagination through a set of `EncryptedSecretsModule`. + Reads and enables pagination through a set of `ConfigSecretsUserModule`. """ - encryptedSecretsModules( + configSecretsUserModules( """Only read the first `n` values of the set.""" first: Int @@ -7589,11 +7562,11 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: EncryptedSecretsModuleFilter + where: ConfigSecretsUserModuleFilter - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleConnection! + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleConnection! """Reads and enables pagination through a set of `InvitesModule`.""" invitesModules( @@ -8324,9 +8297,9 @@ type Database { rateLimitMetersModule: RateLimitMetersModule """ - Reads and enables pagination through a set of `DatabaseProvisionModule`. + Reads and enables pagination through a set of `ConfigSecretsOrgModule`. """ - databaseProvisionModules( + configSecretsOrgModules( """Only read the first `n` values of the set.""" first: Int @@ -8348,51 +8321,43 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseProvisionModuleFilter + where: ConfigSecretsOrgModuleFilter - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleConnection! -} + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleConnection! -"""A connection to a list of `Schema` values.""" -type SchemaConnection { - """A list of `Schema` objects.""" - nodes: [Schema]! + """Reads and enables pagination through a set of `InferenceLogModule`.""" + inferenceLogModules( + """Only read the first `n` values of the set.""" + first: Int - """ - A list of edges which contains the `Schema` and cursor to aid in pagination. - """ - edges: [SchemaEdge]! + """Only read the last `n` values of the set.""" + last: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """The count of *all* `Schema` you could get from the connection.""" - totalCount: Int! -} + """Read all values in the set before (above) this cursor.""" + before: Cursor -type Schema { - id: UUID! - databaseId: UUID! - name: String! - schemaName: String! - label: String - description: String - smartTags: JSON - category: ObjectCategory! - module: String - scope: Int - tags: [String]! - isPublic: Boolean! - createdAt: Datetime - updatedAt: Datetime + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Reads a single `Database` that is related to this `Schema`.""" - database: Database + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: InferenceLogModuleFilter - """Reads and enables pagination through a set of `Table`.""" - tables( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InferenceLogModuleConnection! + + """Reads and enables pagination through a set of `ComputeLogModule`.""" + computeLogModules( """Only read the first `n` values of the set.""" first: Int @@ -8414,14 +8379,14 @@ type Schema { """ A filter to be used in determining which values should be returned by the collection. """ - where: TableFilter + where: ComputeLogModuleFilter - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] - ): TableConnection! + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ComputeLogModuleConnection! - """Reads and enables pagination through a set of `SchemaGrant`.""" - schemaGrants( + """Reads and enables pagination through a set of `TransferLogModule`.""" + transferLogModules( """Only read the first `n` values of the set.""" first: Int @@ -8443,14 +8408,201 @@ type Schema { """ A filter to be used in determining which values should be returned by the collection. """ - where: SchemaGrantFilter + where: TransferLogModuleFilter - """The method to use when ordering `SchemaGrant`.""" - orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaGrantConnection! + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TransferLogModuleConnection! - """Reads and enables pagination through a set of `View`.""" - views( + """Reads and enables pagination through a set of `StorageLogModule`.""" + storageLogModules( + """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: StorageLogModuleFilter + + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): StorageLogModuleConnection! + + """Reads and enables pagination through a set of `DbUsageModule`.""" + dbUsageModules( + """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: DbUsageModuleFilter + + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DbUsageModuleConnection! + + """Reads a single `AgentChatModule` that is related to this `Database`.""" + agentChatModule: AgentChatModule + + """ + Reads and enables pagination through a set of `DatabaseProvisionModule`. + """ + databaseProvisionModules( + """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: DatabaseProvisionModuleFilter + + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleConnection! +} + +"""A connection to a list of `Schema` values.""" +type SchemaConnection { + """A list of `Schema` objects.""" + nodes: [Schema]! + + """ + A list of edges which contains the `Schema` and cursor to aid in pagination. + """ + edges: [SchemaEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Schema` you could get from the connection.""" + totalCount: Int! +} + +type Schema { + id: UUID! + databaseId: UUID! + name: String! + schemaName: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + isPublic: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Schema`.""" + database: Database + + """Reads and enables pagination through a set of `Table`.""" + tables( + """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: TableFilter + + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection! + + """Reads and enables pagination through a set of `SchemaGrant`.""" + schemaGrants( + """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: SchemaGrantFilter + + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaGrantConnection! + + """Reads and enables pagination through a set of `View`.""" + views( """Only read the first `n` values of the set.""" first: Int @@ -8771,6 +8923,37 @@ type Schema { """The method to use when ordering `RealtimeModule`.""" orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] ): RealtimeModuleConnection! + + """ + Reads and enables pagination through a set of `ConfigSecretsOrgModule`. + """ + configSecretsOrgModules( + """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: ConfigSecretsOrgModuleFilter + + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleConnection! } enum ObjectCategory { @@ -9559,6 +9742,37 @@ type Table { """The method to use when ordering `RealtimeModule`.""" orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] ): RealtimeModuleConnection! + + """ + Reads and enables pagination through a set of `ConfigSecretsOrgModule`. + """ + configSecretsOrgModules( + """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: ConfigSecretsOrgModuleFilter + + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleConnection! } """A connection to a list of `CheckConstraint` values.""" @@ -10470,11 +10684,11 @@ input DatabaseFilter { """`emailsModules` exist.""" emailsModulesExist: Boolean - """Filter by the object’s `encryptedSecretsModules` relation.""" - encryptedSecretsModules: DatabaseToManyEncryptedSecretsModuleFilter + """Filter by the object’s `configSecretsUserModules` relation.""" + configSecretsUserModules: DatabaseToManyConfigSecretsUserModuleFilter - """`encryptedSecretsModules` exist.""" - encryptedSecretsModulesExist: Boolean + """`configSecretsUserModules` exist.""" + configSecretsUserModulesExist: Boolean """Filter by the object’s `invitesModules` relation.""" invitesModules: DatabaseToManyInvitesModuleFilter @@ -10668,6 +10882,48 @@ input DatabaseFilter { """A related `rateLimitMetersModule` exists.""" rateLimitMetersModuleExists: Boolean + """Filter by the object’s `configSecretsOrgModules` relation.""" + configSecretsOrgModules: DatabaseToManyConfigSecretsOrgModuleFilter + + """`configSecretsOrgModules` exist.""" + configSecretsOrgModulesExist: Boolean + + """Filter by the object’s `inferenceLogModules` relation.""" + inferenceLogModules: DatabaseToManyInferenceLogModuleFilter + + """`inferenceLogModules` exist.""" + inferenceLogModulesExist: Boolean + + """Filter by the object’s `computeLogModules` relation.""" + computeLogModules: DatabaseToManyComputeLogModuleFilter + + """`computeLogModules` exist.""" + computeLogModulesExist: Boolean + + """Filter by the object’s `transferLogModules` relation.""" + transferLogModules: DatabaseToManyTransferLogModuleFilter + + """`transferLogModules` exist.""" + transferLogModulesExist: Boolean + + """Filter by the object’s `storageLogModules` relation.""" + storageLogModules: DatabaseToManyStorageLogModuleFilter + + """`storageLogModules` exist.""" + storageLogModulesExist: Boolean + + """Filter by the object’s `dbUsageModules` relation.""" + dbUsageModules: DatabaseToManyDbUsageModuleFilter + + """`dbUsageModules` exist.""" + dbUsageModulesExist: Boolean + + """Filter by the object’s `agentChatModule` relation.""" + agentChatModule: AgentChatModuleFilter + + """A related `agentChatModule` exists.""" + agentChatModuleExists: Boolean + """Filter by the object’s `databaseProvisionModules` relation.""" databaseProvisionModules: DatabaseToManyDatabaseProvisionModuleFilter @@ -11039,35 +11295,11 @@ input UserFilter { """`orgClaimedInvitesBySenderId` exist.""" orgClaimedInvitesBySenderIdExist: Boolean - """Filter by the object’s `auditLogsByActorId` relation.""" - auditLogsByActorId: UserToManyAuditLogFilter - - """`auditLogsByActorId` exist.""" - auditLogsByActorIdExist: Boolean - - """Filter by the object’s `agentThreadsByEntityId` relation.""" - agentThreadsByEntityId: UserToManyAgentThreadFilter - - """`agentThreadsByEntityId` exist.""" - agentThreadsByEntityIdExist: Boolean - - """Filter by the object’s `ownedAgentThreads` relation.""" - ownedAgentThreads: UserToManyAgentThreadFilter + """Filter by the object’s `auditLogAuthsByActorId` relation.""" + auditLogAuthsByActorId: UserToManyAuditLogAuthFilter - """`ownedAgentThreads` exist.""" - ownedAgentThreadsExist: Boolean - - """Filter by the object’s `ownedAgentMessages` relation.""" - ownedAgentMessages: UserToManyAgentMessageFilter - - """`ownedAgentMessages` exist.""" - ownedAgentMessagesExist: Boolean - - """Filter by the object’s `ownedAgentTasks` relation.""" - ownedAgentTasks: UserToManyAgentTaskFilter - - """`ownedAgentTasks` exist.""" - ownedAgentTasksExist: Boolean + """`auditLogAuthsByActorId` exist.""" + auditLogAuthsByActorIdExist: Boolean """TSV search on the `search_tsv` column.""" tsvSearchTsv: String @@ -13765,23 +13997,26 @@ input OrgClaimedInviteFilter { } """ -A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ """ -input UserToManyAuditLogFilter { +input UserToManyAuditLogAuthFilter { """Filters to entities where at least one related entity matches.""" - some: AuditLogFilter + some: AuditLogAuthFilter """Filters to entities where every related entity matches.""" - every: AuditLogFilter + every: AuditLogAuthFilter """Filters to entities where no related entity matches.""" - none: AuditLogFilter + none: AuditLogAuthFilter } """ -A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ """ -input AuditLogFilter { +input AuditLogAuthFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + """Filter by the object’s `id` field.""" id: UUIDFilter @@ -13803,17 +14038,14 @@ input AuditLogFilter { """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!] + and: [AuditLogAuthFilter!] """Checks for any expressions in this list.""" - or: [AuditLogFilter!] + or: [AuditLogAuthFilter!] """Negates the expression.""" - not: AuditLogFilter + not: AuditLogAuthFilter """Filter by the object’s `actor` relation.""" actor: UserFilter @@ -14013,232 +14245,6 @@ input InternetAddressFilter { containsOrContainedBy: InternetAddress } -""" -A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAgentThreadFilter { - """Filters to entities where at least one related entity matches.""" - some: AgentThreadFilter - - """Filters to entities where every related entity matches.""" - every: AgentThreadFilter - - """Filters to entities where no related entity matches.""" - none: AgentThreadFilter -} - -""" -A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ -""" -input AgentThreadFilter { - """Filter by the object’s `title` field.""" - title: StringFilter - - """Filter by the object’s `mode` field.""" - mode: StringFilter - - """Filter by the object’s `model` field.""" - model: StringFilter - - """Filter by the object’s `systemPrompt` field.""" - systemPrompt: StringFilter - - """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 `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `status` field.""" - status: StringFilter - - """Checks for all expressions in this list.""" - and: [AgentThreadFilter!] - - """Checks for any expressions in this list.""" - or: [AgentThreadFilter!] - - """Negates the expression.""" - not: AgentThreadFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter - - """Filter by the object’s `agentMessagesByThreadId` relation.""" - agentMessagesByThreadId: AgentThreadToManyAgentMessageFilter - - """`agentMessagesByThreadId` exist.""" - agentMessagesByThreadIdExist: Boolean - - """Filter by the object’s `agentTasksByThreadId` relation.""" - agentTasksByThreadId: AgentThreadToManyAgentTaskFilter - - """`agentTasksByThreadId` exist.""" - agentTasksByThreadIdExist: Boolean -} - -""" -A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ -""" -input AgentThreadToManyAgentMessageFilter { - """Filters to entities where at least one related entity matches.""" - some: AgentMessageFilter - - """Filters to entities where every related entity matches.""" - every: AgentMessageFilter - - """Filters to entities where no related entity matches.""" - none: AgentMessageFilter -} - -""" -A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ -""" -input AgentMessageFilter { - """Filter by the object’s `threadId` field.""" - threadId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `authorRole` field.""" - authorRole: StringFilter - - """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 `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `parts` field.""" - parts: JSONFilter - - """Checks for all expressions in this list.""" - and: [AgentMessageFilter!] - - """Checks for any expressions in this list.""" - or: [AgentMessageFilter!] - - """Negates the expression.""" - not: AgentMessageFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter - - """Filter by the object’s `thread` relation.""" - thread: AgentThreadFilter -} - -""" -A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ -""" -input AgentThreadToManyAgentTaskFilter { - """Filters to entities where at least one related entity matches.""" - some: AgentTaskFilter - - """Filters to entities where every related entity matches.""" - every: AgentTaskFilter - - """Filters to entities where no related entity matches.""" - none: AgentTaskFilter -} - -""" -A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ -""" -input AgentTaskFilter { - """Filter by the object’s `threadId` field.""" - threadId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `source` field.""" - source: StringFilter - - """Filter by the object’s `error` field.""" - error: StringFilter - - """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 `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `status` field.""" - status: StringFilter - - """Checks for all expressions in this list.""" - and: [AgentTaskFilter!] - - """Checks for any expressions in this list.""" - or: [AgentTaskFilter!] - - """Negates the expression.""" - not: AgentTaskFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter - - """Filter by the object’s `thread` relation.""" - thread: AgentThreadFilter -} - -""" -A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAgentMessageFilter { - """Filters to entities where at least one related entity matches.""" - some: AgentMessageFilter - - """Filters to entities where every related entity matches.""" - every: AgentMessageFilter - - """Filters to entities where no related entity matches.""" - none: AgentMessageFilter -} - -""" -A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ -""" -input UserToManyAgentTaskFilter { - """Filters to entities where at least one related entity matches.""" - some: AgentTaskFilter - - """Filters to entities where every related entity matches.""" - every: AgentTaskFilter - - """Filters to entities where no related entity matches.""" - none: AgentTaskFilter -} - """ A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ """ @@ -14392,6 +14398,12 @@ input SchemaFilter { """`realtimeModulesBySubscriptionsSchemaId` exist.""" realtimeModulesBySubscriptionsSchemaIdExist: Boolean + + """Filter by the object’s `configSecretsOrgModules` relation.""" + configSecretsOrgModules: SchemaToManyConfigSecretsOrgModuleFilter + + """`configSecretsOrgModules` exist.""" + configSecretsOrgModulesExist: Boolean } """ @@ -14663,6 +14675,12 @@ input TableFilter { """`realtimeModulesBySourceRegistryTableId` exist.""" realtimeModulesBySourceRegistryTableIdExist: Boolean + + """Filter by the object’s `configSecretsOrgModules` relation.""" + configSecretsOrgModules: TableToManyConfigSecretsOrgModuleFilter + + """`configSecretsOrgModules` exist.""" + configSecretsOrgModulesExist: Boolean } """ @@ -15965,6 +15983,9 @@ input PartitionFilter { """Filter by the object’s `retention` field.""" retention: StringFilter + """Filter by the object’s `retentionKeepTable` field.""" + retentionKeepTable: BooleanFilter + """Filter by the object’s `premake` field.""" premake: IntFilter @@ -16439,6 +16460,58 @@ input RealtimeModuleFilter { subscriptionsSchema: SchemaFilter } +""" +A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyConfigSecretsOrgModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ConfigSecretsOrgModuleFilter + + """Filters to entities where every related entity matches.""" + every: ConfigSecretsOrgModuleFilter + + """Filters to entities where no related entity matches.""" + none: ConfigSecretsOrgModuleFilter +} + +""" +A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ +""" +input ConfigSecretsOrgModuleFilter { + """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 `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `tableName` field.""" + tableName: StringFilter + + """Checks for all expressions in this list.""" + and: [ConfigSecretsOrgModuleFilter!] + + """Checks for any expressions in this list.""" + or: [ConfigSecretsOrgModuleFilter!] + + """Negates the expression.""" + not: ConfigSecretsOrgModuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + """ A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ """ @@ -17751,6 +17824,20 @@ input SchemaToManyRealtimeModuleFilter { none: RealtimeModuleFilter } +""" +A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyConfigSecretsOrgModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ConfigSecretsOrgModuleFilter + + """Filters to entities where every related entity matches.""" + every: ConfigSecretsOrgModuleFilter + + """Filters to entities where no related entity matches.""" + none: ConfigSecretsOrgModuleFilter +} + """ A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ """ @@ -19074,23 +19161,23 @@ input EmailsModuleFilter { } """ -A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ """ -input DatabaseToManyEncryptedSecretsModuleFilter { +input DatabaseToManyConfigSecretsUserModuleFilter { """Filters to entities where at least one related entity matches.""" - some: EncryptedSecretsModuleFilter + some: ConfigSecretsUserModuleFilter """Filters to entities where every related entity matches.""" - every: EncryptedSecretsModuleFilter + every: ConfigSecretsUserModuleFilter """Filters to entities where no related entity matches.""" - none: EncryptedSecretsModuleFilter + none: ConfigSecretsUserModuleFilter } """ -A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ """ -input EncryptedSecretsModuleFilter { +input ConfigSecretsUserModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -19107,13 +19194,13 @@ input EncryptedSecretsModuleFilter { tableName: StringFilter """Checks for all expressions in this list.""" - and: [EncryptedSecretsModuleFilter!] + and: [ConfigSecretsUserModuleFilter!] """Checks for any expressions in this list.""" - or: [EncryptedSecretsModuleFilter!] + or: [ConfigSecretsUserModuleFilter!] """Negates the expression.""" - not: EncryptedSecretsModuleFilter + not: ConfigSecretsUserModuleFilter """Filter by the object’s `database` relation.""" database: DatabaseFilter @@ -20989,6 +21076,9 @@ input StorageModuleFilter { """Filter by the object’s `membershipType` field.""" membershipType: IntFilter + """Filter by the object’s `storageKey` field.""" + storageKey: StringFilter + """Filter by the object’s `policies` field.""" policies: JSONFilter @@ -21775,6 +21865,18 @@ input BillingModuleFilter { """Filter by the object’s `balancesTableName` field.""" balancesTableName: StringFilter + """Filter by the object’s `meterCreditsTableId` field.""" + meterCreditsTableId: UUIDFilter + + """Filter by the object’s `meterCreditsTableName` field.""" + meterCreditsTableName: StringFilter + + """Filter by the object’s `meterSourcesTableId` field.""" + meterSourcesTableId: UUIDFilter + + """Filter by the object’s `meterSourcesTableName` field.""" + meterSourcesTableName: StringFilter + """Filter by the object’s `recordUsageFunction` field.""" recordUsageFunction: StringFilter @@ -21799,6 +21901,12 @@ input BillingModuleFilter { """Filter by the object’s `ledgerTable` relation.""" ledgerTable: TableFilter + """Filter by the object’s `meterCreditsTable` relation.""" + meterCreditsTable: TableFilter + + """Filter by the object’s `meterSourcesTable` relation.""" + meterSourcesTable: TableFilter + """Filter by the object’s `metersTable` relation.""" metersTable: TableFilter @@ -22022,6 +22130,543 @@ input RateLimitMetersModuleFilter { schema: SchemaFilter } +""" +A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyConfigSecretsOrgModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ConfigSecretsOrgModuleFilter + + """Filters to entities where every related entity matches.""" + every: ConfigSecretsOrgModuleFilter + + """Filters to entities where no related entity matches.""" + none: ConfigSecretsOrgModuleFilter +} + +""" +A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyInferenceLogModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: InferenceLogModuleFilter + + """Filters to entities where every related entity matches.""" + every: InferenceLogModuleFilter + + """Filters to entities where no related entity matches.""" + none: InferenceLogModuleFilter +} + +""" +A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input InferenceLogModuleFilter { + """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 `inferenceLogTableId` field.""" + inferenceLogTableId: UUIDFilter + + """Filter by the object’s `inferenceLogTableName` field.""" + inferenceLogTableName: StringFilter + + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter + + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Checks for all expressions in this list.""" + and: [InferenceLogModuleFilter!] + + """Checks for any expressions in this list.""" + or: [InferenceLogModuleFilter!] + + """Negates the expression.""" + not: InferenceLogModuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `inferenceLogTable` relation.""" + inferenceLogTable: TableFilter + + """Filter by the object’s `privateSchema` relation.""" + privateSchema: SchemaFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `usageDailyTable` relation.""" + usageDailyTable: TableFilter +} + +""" +A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyComputeLogModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: ComputeLogModuleFilter + + """Filters to entities where every related entity matches.""" + every: ComputeLogModuleFilter + + """Filters to entities where no related entity matches.""" + none: ComputeLogModuleFilter +} + +""" +A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input ComputeLogModuleFilter { + """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 `computeLogTableId` field.""" + computeLogTableId: UUIDFilter + + """Filter by the object’s `computeLogTableName` field.""" + computeLogTableName: StringFilter + + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter + + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Checks for all expressions in this list.""" + and: [ComputeLogModuleFilter!] + + """Checks for any expressions in this list.""" + or: [ComputeLogModuleFilter!] + + """Negates the expression.""" + not: ComputeLogModuleFilter + + """Filter by the object’s `computeLogTable` relation.""" + computeLogTable: TableFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `privateSchema` relation.""" + privateSchema: SchemaFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `usageDailyTable` relation.""" + usageDailyTable: TableFilter +} + +""" +A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyTransferLogModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: TransferLogModuleFilter + + """Filters to entities where every related entity matches.""" + every: TransferLogModuleFilter + + """Filters to entities where no related entity matches.""" + none: TransferLogModuleFilter +} + +""" +A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input TransferLogModuleFilter { + """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 `transferLogTableId` field.""" + transferLogTableId: UUIDFilter + + """Filter by the object’s `transferLogTableName` field.""" + transferLogTableName: StringFilter + + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter + + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Checks for all expressions in this list.""" + and: [TransferLogModuleFilter!] + + """Checks for any expressions in this list.""" + or: [TransferLogModuleFilter!] + + """Negates the expression.""" + not: TransferLogModuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `privateSchema` relation.""" + privateSchema: SchemaFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `transferLogTable` relation.""" + transferLogTable: TableFilter + + """Filter by the object’s `usageDailyTable` relation.""" + usageDailyTable: TableFilter +} + +""" +A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyStorageLogModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: StorageLogModuleFilter + + """Filters to entities where every related entity matches.""" + every: StorageLogModuleFilter + + """Filters to entities where no related entity matches.""" + none: StorageLogModuleFilter +} + +""" +A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ +""" +input StorageLogModuleFilter { + """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 `storageLogTableId` field.""" + storageLogTableId: UUIDFilter + + """Filter by the object’s `storageLogTableName` field.""" + storageLogTableName: StringFilter + + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter + + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Checks for all expressions in this list.""" + and: [StorageLogModuleFilter!] + + """Checks for any expressions in this list.""" + or: [StorageLogModuleFilter!] + + """Negates the expression.""" + not: StorageLogModuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `privateSchema` relation.""" + privateSchema: SchemaFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `storageLogTable` relation.""" + storageLogTable: TableFilter + + """Filter by the object’s `usageDailyTable` relation.""" + usageDailyTable: TableFilter +} + +""" +A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyDbUsageModuleFilter { + """Filters to entities where at least one related entity matches.""" + some: DbUsageModuleFilter + + """Filters to entities where every related entity matches.""" + every: DbUsageModuleFilter + + """Filters to entities where no related entity matches.""" + none: DbUsageModuleFilter +} + +""" +A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ +""" +input DbUsageModuleFilter { + """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 `tableStatsLogTableId` field.""" + tableStatsLogTableId: UUIDFilter + + """Filter by the object’s `tableStatsLogTableName` field.""" + tableStatsLogTableName: StringFilter + + """Filter by the object’s `tableStatsDailyTableId` field.""" + tableStatsDailyTableId: UUIDFilter + + """Filter by the object’s `tableStatsDailyTableName` field.""" + tableStatsDailyTableName: StringFilter + + """Filter by the object’s `queryStatsLogTableId` field.""" + queryStatsLogTableId: UUIDFilter + + """Filter by the object’s `queryStatsLogTableName` field.""" + queryStatsLogTableName: StringFilter + + """Filter by the object’s `queryStatsDailyTableId` field.""" + queryStatsDailyTableId: UUIDFilter + + """Filter by the object’s `queryStatsDailyTableName` field.""" + queryStatsDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Checks for all expressions in this list.""" + and: [DbUsageModuleFilter!] + + """Checks for any expressions in this list.""" + or: [DbUsageModuleFilter!] + + """Negates the expression.""" + not: DbUsageModuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `privateSchema` relation.""" + privateSchema: SchemaFilter + + """Filter by the object’s `queryStatsDailyTable` relation.""" + queryStatsDailyTable: TableFilter + + """Filter by the object’s `queryStatsLogTable` relation.""" + queryStatsLogTable: TableFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `tableStatsDailyTable` relation.""" + tableStatsDailyTable: TableFilter + + """Filter by the object’s `tableStatsLogTable` relation.""" + tableStatsLogTable: TableFilter +} + +""" +A filter to be used against `AgentChatModule` object types. All fields are combined with a logical ‘and.’ +""" +input AgentChatModuleFilter { + """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 `apiId` field.""" + apiId: UUIDFilter + + """Filter by the object’s `threadTableId` field.""" + threadTableId: UUIDFilter + + """Filter by the object’s `threadTableName` field.""" + threadTableName: StringFilter + + """Filter by the object’s `messageTableId` field.""" + messageTableId: UUIDFilter + + """Filter by the object’s `messageTableName` field.""" + messageTableName: StringFilter + + """Filter by the object’s `taskTableId` field.""" + taskTableId: UUIDFilter + + """Filter by the object’s `taskTableName` field.""" + taskTableName: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Checks for all expressions in this list.""" + and: [AgentChatModuleFilter!] + + """Checks for any expressions in this list.""" + or: [AgentChatModuleFilter!] + + """Negates the expression.""" + not: AgentChatModuleFilter + + """Filter by the object’s `api` relation.""" + api: ApiFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `messageTable` relation.""" + messageTable: TableFilter + + """Filter by the object’s `privateSchema` relation.""" + privateSchema: SchemaFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter + + """Filter by the object’s `taskTable` relation.""" + taskTable: TableFilter + + """Filter by the object’s `threadTable` relation.""" + threadTable: TableFilter +} + """ A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ """ @@ -23484,7 +24129,7 @@ type EmbeddingChunk { chunkOverlap: Int! chunkStrategy: String! metadataFields: JSON - searchIndexes: JSON! + searchIndexes: JSON enqueueChunkingJob: Boolean! chunkingTaskName: String! embeddingModel: String @@ -23575,6 +24220,7 @@ type Partition { partitionKeyId: UUID! interval: String retention: String + retentionKeepTable: Boolean! premake: Int! namingPattern: String! createdAt: Datetime! @@ -24242,6 +24888,77 @@ enum RealtimeModuleOrderBy { NOTIFY_CHANNEL_DESC } +"""A connection to a list of `ConfigSecretsOrgModule` values.""" +type ConfigSecretsOrgModuleConnection { + """A list of `ConfigSecretsOrgModule` objects.""" + nodes: [ConfigSecretsOrgModule]! + + """ + A list of edges which contains the `ConfigSecretsOrgModule` and cursor to aid in pagination. + """ + edges: [ConfigSecretsOrgModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ConfigSecretsOrgModule` you could get from the connection. + """ + totalCount: Int! +} + +""" +Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. +""" +type ConfigSecretsOrgModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! + + """ + Reads a single `Database` that is related to this `ConfigSecretsOrgModule`. + """ + database: Database + + """ + Reads a single `Schema` that is related to this `ConfigSecretsOrgModule`. + """ + schema: Schema + + """ + Reads a single `Table` that is related to this `ConfigSecretsOrgModule`. + """ + table: Table +} + +"""A `ConfigSecretsOrgModule` edge in the connection.""" +type ConfigSecretsOrgModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ConfigSecretsOrgModule` at the end of the edge.""" + node: ConfigSecretsOrgModule +} + +"""Methods to use when ordering `ConfigSecretsOrgModule`.""" +enum ConfigSecretsOrgModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + 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 +} + """A `Table` edge in the connection.""" type TableEdge { """A cursor for use in pagination.""" @@ -25700,6 +26417,8 @@ enum PartitionOrderBy { INTERVAL_DESC RETENTION_ASC RETENTION_DESC + RETENTION_KEEP_TABLE_ASC + RETENTION_KEEP_TABLE_DESC PREMAKE_ASC PREMAKE_DESC NAMING_PATTERN_ASC @@ -26704,26 +27423,26 @@ enum EmailsModuleOrderBy { TABLE_NAME_DESC } -"""A connection to a list of `EncryptedSecretsModule` values.""" -type EncryptedSecretsModuleConnection { - """A list of `EncryptedSecretsModule` objects.""" - nodes: [EncryptedSecretsModule]! +"""A connection to a list of `ConfigSecretsUserModule` values.""" +type ConfigSecretsUserModuleConnection { + """A list of `ConfigSecretsUserModule` objects.""" + nodes: [ConfigSecretsUserModule]! """ - A list of edges which contains the `EncryptedSecretsModule` and cursor to aid in pagination. + A list of edges which contains the `ConfigSecretsUserModule` and cursor to aid in pagination. """ - edges: [EncryptedSecretsModuleEdge]! + edges: [ConfigSecretsUserModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `EncryptedSecretsModule` you could get from the connection. + The count of *all* `ConfigSecretsUserModule` you could get from the connection. """ totalCount: Int! } -type EncryptedSecretsModule { +type ConfigSecretsUserModule { id: UUID! databaseId: UUID! schemaId: UUID! @@ -26731,32 +27450,32 @@ type EncryptedSecretsModule { tableName: String! """ - Reads a single `Database` that is related to this `EncryptedSecretsModule`. + Reads a single `Database` that is related to this `ConfigSecretsUserModule`. """ database: Database """ - Reads a single `Schema` that is related to this `EncryptedSecretsModule`. + Reads a single `Schema` that is related to this `ConfigSecretsUserModule`. """ schema: Schema """ - Reads a single `Table` that is related to this `EncryptedSecretsModule`. + Reads a single `Table` that is related to this `ConfigSecretsUserModule`. """ table: Table } -"""A `EncryptedSecretsModule` edge in the connection.""" -type EncryptedSecretsModuleEdge { +"""A `ConfigSecretsUserModule` edge in the connection.""" +type ConfigSecretsUserModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `EncryptedSecretsModule` at the end of the edge.""" - node: EncryptedSecretsModule + """The `ConfigSecretsUserModule` at the end of the edge.""" + node: ConfigSecretsUserModule } -"""Methods to use when ordering `EncryptedSecretsModule`.""" -enum EncryptedSecretsModuleOrderBy { +"""Methods to use when ordering `ConfigSecretsUserModule`.""" +enum ConfigSecretsUserModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -28800,6 +29519,7 @@ type StorageModule { bucketsTableName: String! filesTableName: String! membershipType: Int + storageKey: String! policies: JSON skipDefaultPolicyTables: [String]! entityTableId: UUID @@ -28882,6 +29602,8 @@ enum StorageModuleOrderBy { FILES_TABLE_NAME_DESC MEMBERSHIP_TYPE_ASC MEMBERSHIP_TYPE_DESC + STORAGE_KEY_ASC + STORAGE_KEY_DESC POLICIES_ASC POLICIES_DESC SKIP_DEFAULT_POLICY_TABLES_ASC @@ -29066,36 +29788,34 @@ type EntityTypeProvision { hasInviteAchievements: Boolean! """ - Optional jsonb object for storage module configuration and initial bucket seeding. - Only used when has_storage = true; ignored otherwise. NULL = use defaults. - Recognized keys (all optional): - - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - - download_url_expiry_seconds (integer) presigned GET URL expiry override - - default_max_file_size (bigint) global max file size in bytes for this scope - - allowed_origins (text[]) default CORS origins for all buckets in this scope - - buckets (jsonb[]) array of initial bucket definitions to seed - Each bucket in the buckets array recognizes: - - name (text, required) bucket name e.g. 'documents' - - description (text) human-readable description - - is_public (boolean) whether files are publicly readable (default false) - - allowed_mime_types (text[]) whitelist of MIME types (null = any) - - max_file_size (bigint) max file size in bytes (null = use scope default) - - allowed_origins (text[]) per-bucket CORS override - - provisions (jsonb object) optional: customize storage tables - with additional nodes, fields, grants, and policies. - Keyed by table role: "files", "buckets". - Each value uses the same shape as table_provision: - { nodes, fields, grants, use_rls, policies }. Fanned out - to secure_table_provision targeting the corresponding table. - When a key includes policies[], those REPLACE the default - storage policies for that table; tables without a key still - get defaults. Missing "data" on policy entries is auto-populated - with storage-specific defaults (same as table_provision). - Example: add SearchBm25 for full-text search on files: - {"provisions": {"files": {"nodes": [{"$type": - "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - Example: - storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + Optional JSON array of storage module definitions. Each element provisions a separate + storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + and feature flags. Only used when has_storage = true; ignored otherwise. + NULL = provision a single default storage module with all defaults. + Each array element recognizes (all optional): + - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + Defaults to 'default' (omitted from table names). + Non-default keys become infixes: {prefix}_{key}_buckets. + - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + - download_url_expiry_seconds (integer) presigned GET URL expiry override + - default_max_file_size (bigint) global max file size in bytes for this module + - allowed_origins (text[]) default CORS origins for all buckets in this module + - restrict_reads (boolean) require read_files permission for SELECT on files + - has_path_shares (boolean) enable virtual filesystem + path share policies + - has_versioning (boolean) enable file version chains + - has_content_hash (boolean) enable content hash for dedup + - has_custom_keys (boolean) allow client-provided S3 keys + - has_audit_log (boolean) enable file events audit table + - has_confirm_upload (boolean) enable HeadObject confirmation flow + - confirm_upload_delay (interval) delay before first confirmation attempt + - buckets (jsonb[]) array of initial bucket definitions to seed. + Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + Each value: { nodes, fields, grants, use_rls, policies }. + Example (single module, backward compat): + storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + Example (multi-module): + storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb """ storageConfig: JSON @@ -29693,6 +30413,10 @@ type BillingModule { ledgerTableName: String! balancesTableId: UUID! balancesTableName: String! + meterCreditsTableId: UUID! + meterCreditsTableName: String! + meterSourcesTableId: UUID! + meterSourcesTableName: String! recordUsageFunction: String! prefix: String @@ -29705,6 +30429,12 @@ type BillingModule { """Reads a single `Table` that is related to this `BillingModule`.""" ledgerTable: Table + """Reads a single `Table` that is related to this `BillingModule`.""" + meterCreditsTable: Table + + """Reads a single `Table` that is related to this `BillingModule`.""" + meterSourcesTable: Table + """Reads a single `Table` that is related to this `BillingModule`.""" metersTable: Table @@ -29841,6 +30571,544 @@ type RateLimitMetersModule { schema: Schema } +"""A connection to a list of `InferenceLogModule` values.""" +type InferenceLogModuleConnection { + """A list of `InferenceLogModule` objects.""" + nodes: [InferenceLogModule]! + + """ + A list of edges which contains the `InferenceLogModule` and cursor to aid in pagination. + """ + edges: [InferenceLogModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `InferenceLogModule` you could get from the connection. + """ + totalCount: Int! +} + +type InferenceLogModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + inferenceLogTableId: UUID! + inferenceLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + + """ + Reads a single `Database` that is related to this `InferenceLogModule`. + """ + database: Database + + """Reads a single `Table` that is related to this `InferenceLogModule`.""" + inferenceLogTable: Table + + """Reads a single `Schema` that is related to this `InferenceLogModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `InferenceLogModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `InferenceLogModule`.""" + usageDailyTable: Table +} + +"""A `InferenceLogModule` edge in the connection.""" +type InferenceLogModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InferenceLogModule` at the end of the edge.""" + node: InferenceLogModule +} + +"""Methods to use when ordering `InferenceLogModule`.""" +enum InferenceLogModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + INFERENCE_LOG_TABLE_ID_ASC + INFERENCE_LOG_TABLE_ID_DESC + INFERENCE_LOG_TABLE_NAME_ASC + INFERENCE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC +} + +"""A connection to a list of `ComputeLogModule` values.""" +type ComputeLogModuleConnection { + """A list of `ComputeLogModule` objects.""" + nodes: [ComputeLogModule]! + + """ + A list of edges which contains the `ComputeLogModule` and cursor to aid in pagination. + """ + edges: [ComputeLogModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ComputeLogModule` you could get from the connection. + """ + totalCount: Int! +} + +type ComputeLogModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + computeLogTableId: UUID! + computeLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + + """Reads a single `Table` that is related to this `ComputeLogModule`.""" + computeLogTable: Table + + """Reads a single `Database` that is related to this `ComputeLogModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `ComputeLogModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `ComputeLogModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `ComputeLogModule`.""" + usageDailyTable: Table +} + +"""A `ComputeLogModule` edge in the connection.""" +type ComputeLogModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ComputeLogModule` at the end of the edge.""" + node: ComputeLogModule +} + +"""Methods to use when ordering `ComputeLogModule`.""" +enum ComputeLogModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + COMPUTE_LOG_TABLE_ID_ASC + COMPUTE_LOG_TABLE_ID_DESC + COMPUTE_LOG_TABLE_NAME_ASC + COMPUTE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC +} + +"""A connection to a list of `TransferLogModule` values.""" +type TransferLogModuleConnection { + """A list of `TransferLogModule` objects.""" + nodes: [TransferLogModule]! + + """ + A list of edges which contains the `TransferLogModule` and cursor to aid in pagination. + """ + edges: [TransferLogModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `TransferLogModule` you could get from the connection. + """ + totalCount: Int! +} + +type TransferLogModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + transferLogTableId: UUID! + transferLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + + """Reads a single `Database` that is related to this `TransferLogModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `TransferLogModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `TransferLogModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `TransferLogModule`.""" + transferLogTable: Table + + """Reads a single `Table` that is related to this `TransferLogModule`.""" + usageDailyTable: Table +} + +"""A `TransferLogModule` edge in the connection.""" +type TransferLogModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `TransferLogModule` at the end of the edge.""" + node: TransferLogModule +} + +"""Methods to use when ordering `TransferLogModule`.""" +enum TransferLogModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TRANSFER_LOG_TABLE_ID_ASC + TRANSFER_LOG_TABLE_ID_DESC + TRANSFER_LOG_TABLE_NAME_ASC + TRANSFER_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC +} + +"""A connection to a list of `StorageLogModule` values.""" +type StorageLogModuleConnection { + """A list of `StorageLogModule` objects.""" + nodes: [StorageLogModule]! + + """ + A list of edges which contains the `StorageLogModule` and cursor to aid in pagination. + """ + edges: [StorageLogModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `StorageLogModule` you could get from the connection. + """ + totalCount: Int! +} + +type StorageLogModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + storageLogTableId: UUID! + storageLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String + + """Reads a single `Database` that is related to this `StorageLogModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `StorageLogModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `StorageLogModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `StorageLogModule`.""" + storageLogTable: Table + + """Reads a single `Table` that is related to this `StorageLogModule`.""" + usageDailyTable: Table +} + +"""A `StorageLogModule` edge in the connection.""" +type StorageLogModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `StorageLogModule` at the end of the edge.""" + node: StorageLogModule +} + +"""Methods to use when ordering `StorageLogModule`.""" +enum StorageLogModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + STORAGE_LOG_TABLE_ID_ASC + STORAGE_LOG_TABLE_ID_DESC + STORAGE_LOG_TABLE_NAME_ASC + STORAGE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC +} + +"""A connection to a list of `DbUsageModule` values.""" +type DbUsageModuleConnection { + """A list of `DbUsageModule` objects.""" + nodes: [DbUsageModule]! + + """ + A list of edges which contains the `DbUsageModule` and cursor to aid in pagination. + """ + edges: [DbUsageModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `DbUsageModule` you could get from the connection.""" + totalCount: Int! +} + +type DbUsageModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableStatsLogTableId: UUID! + tableStatsLogTableName: String! + tableStatsDailyTableId: UUID! + tableStatsDailyTableName: String! + queryStatsLogTableId: UUID! + queryStatsLogTableName: String! + queryStatsDailyTableId: UUID! + queryStatsDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + prefix: String + + """Reads a single `Database` that is related to this `DbUsageModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `DbUsageModule`.""" + privateSchema: Schema + + """Reads a single `Table` that is related to this `DbUsageModule`.""" + queryStatsDailyTable: Table + + """Reads a single `Table` that is related to this `DbUsageModule`.""" + queryStatsLogTable: Table + + """Reads a single `Schema` that is related to this `DbUsageModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `DbUsageModule`.""" + tableStatsDailyTable: Table + + """Reads a single `Table` that is related to this `DbUsageModule`.""" + tableStatsLogTable: Table +} + +"""A `DbUsageModule` edge in the connection.""" +type DbUsageModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DbUsageModule` at the end of the edge.""" + node: DbUsageModule +} + +"""Methods to use when ordering `DbUsageModule`.""" +enum DbUsageModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + TABLE_STATS_LOG_TABLE_ID_ASC + TABLE_STATS_LOG_TABLE_ID_DESC + TABLE_STATS_LOG_TABLE_NAME_ASC + TABLE_STATS_LOG_TABLE_NAME_DESC + TABLE_STATS_DAILY_TABLE_ID_ASC + TABLE_STATS_DAILY_TABLE_ID_DESC + TABLE_STATS_DAILY_TABLE_NAME_ASC + TABLE_STATS_DAILY_TABLE_NAME_DESC + QUERY_STATS_LOG_TABLE_ID_ASC + QUERY_STATS_LOG_TABLE_ID_DESC + QUERY_STATS_LOG_TABLE_NAME_ASC + QUERY_STATS_LOG_TABLE_NAME_DESC + QUERY_STATS_DAILY_TABLE_ID_ASC + QUERY_STATS_DAILY_TABLE_ID_DESC + QUERY_STATS_DAILY_TABLE_NAME_ASC + QUERY_STATS_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC +} + +type AgentChatModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + apiId: UUID! + threadTableId: UUID! + threadTableName: String! + messageTableId: UUID! + messageTableName: String! + taskTableId: UUID! + taskTableName: String! + prefix: String + + """Reads a single `Api` that is related to this `AgentChatModule`.""" + api: Api + + """Reads a single `Database` that is related to this `AgentChatModule`.""" + database: Database + + """Reads a single `Table` that is related to this `AgentChatModule`.""" + messageTable: Table + + """Reads a single `Schema` that is related to this `AgentChatModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `AgentChatModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `AgentChatModule`.""" + taskTable: Table + + """Reads a single `Table` that is related to this `AgentChatModule`.""" + threadTable: Table +} + """A connection to a list of `DatabaseProvisionModule` values.""" type DatabaseProvisionModuleConnection { """A list of `DatabaseProvisionModule` objects.""" @@ -29880,7 +31148,9 @@ type DatabaseProvisionModule { """Base domain for the database (e.g., example.com)""" domain: String! - """Array of module IDs to install, or ["all"] for all modules""" + """ + Explicit array of module IDs to install (e.g. users_module, storage_module:full) + """ modules: [String]! """Additional configuration options for provisioning""" @@ -32711,27 +33981,32 @@ enum OrgClaimedInviteOrderBy { ENTITY_ID_DESC } -"""A connection to a list of `AuditLog` values.""" -type AuditLogConnection { - """A list of `AuditLog` objects.""" - nodes: [AuditLog]! +"""A connection to a list of `AuditLogAuth` values.""" +type AuditLogAuthConnection { + """A list of `AuditLogAuth` objects.""" + nodes: [AuditLogAuth]! """ - A list of edges which contains the `AuditLog` and cursor to aid in pagination. + A list of edges which contains the `AuditLogAuth` and cursor to aid in pagination. """ - edges: [AuditLogEdge]! + edges: [AuditLogAuthEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AuditLog` you could get from the connection.""" + """The count of *all* `AuditLogAuth` you could get from the connection.""" totalCount: Int! } """ -Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) +Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) """ -type AuditLog { +type AuditLogAuth { + createdAt: Datetime! + + """ + Unique identifier for each audit event (uuidv7 provides temporal ordering) + """ id: UUID! """ @@ -32754,27 +34029,26 @@ type AuditLog { """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`.""" + """Reads a single `User` that is related to this `AuditLogAuth`.""" actor: User } -"""A `AuditLog` edge in the connection.""" -type AuditLogEdge { +"""A `AuditLogAuth` edge in the connection.""" +type AuditLogAuthEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AuditLog` at the end of the edge.""" - node: AuditLog + """The `AuditLogAuth` at the end of the edge.""" + node: AuditLogAuth } -"""Methods to use when ordering `AuditLog`.""" -enum AuditLogOrderBy { +"""Methods to use when ordering `AuditLogAuth`.""" +enum AuditLogAuthOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC ID_ASC ID_DESC EVENT_ASC @@ -32789,391 +34063,6 @@ enum AuditLogOrderBy { IP_ADDRESS_DESC SUCCESS_ASC SUCCESS_DESC - CREATED_AT_ASC - CREATED_AT_DESC -} - -"""A connection to a list of `AgentThread` values.""" -type AgentThreadConnection { - """A list of `AgentThread` objects.""" - nodes: [AgentThread]! - - """ - A list of edges which contains the `AgentThread` and cursor to aid in pagination. - """ - edges: [AgentThreadEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AgentThread` you could get from the connection.""" - totalCount: Int! -} - -""" -Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. -""" -type AgentThread { - """ - Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. - """ - title: String - - """ - Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. - """ - mode: String! - - """ - Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. - """ - model: String - - """ - Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. - """ - systemPrompt: String - id: UUID! - - """Timestamp when this record was created""" - createdAt: Datetime! - - """Timestamp when this record was last updated""" - updatedAt: Datetime! - - """User who owns this record within the entity""" - ownerId: UUID! - - """Entity this record belongs to""" - entityId: UUID! - - """Current status of this record""" - status: String! - - """Reads a single `User` that is related to this `AgentThread`.""" - entity: User - - """Reads a single `User` that is related to this `AgentThread`.""" - owner: User - - """Reads and enables pagination through a set of `AgentMessage`.""" - agentMessagesByThreadId( - """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: AgentMessageFilter - - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentMessageConnection! - - """Reads and enables pagination through a set of `AgentTask`.""" - agentTasksByThreadId( - """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: AgentTaskFilter - - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] - ): AgentTaskConnection! -} - -"""A connection to a list of `AgentMessage` values.""" -type AgentMessageConnection { - """A list of `AgentMessage` objects.""" - nodes: [AgentMessage]! - - """ - A list of edges which contains the `AgentMessage` and cursor to aid in pagination. - """ - edges: [AgentMessageEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AgentMessage` you could get from the connection.""" - totalCount: Int! -} - -""" -A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. -""" -type AgentMessage { - """ - Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. - """ - threadId: UUID! - - """ - Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. - """ - entityId: UUID! - - """ - Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. - """ - authorRole: String! - id: UUID! - - """Timestamp when this record was created""" - createdAt: Datetime! - - """Timestamp when this record was last updated""" - updatedAt: Datetime! - - """User who owns this record""" - ownerId: UUID! - - """JSON metadata for extensible key-value storage""" - parts: JSON - - """Reads a single `User` that is related to this `AgentMessage`.""" - owner: User - - """Reads a single `AgentThread` that is related to this `AgentMessage`.""" - thread: AgentThread -} - -"""A `AgentMessage` edge in the connection.""" -type AgentMessageEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AgentMessage` at the end of the edge.""" - node: AgentMessage -} - -"""Methods to use when ordering `AgentMessage`.""" -enum AgentMessageOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - THREAD_ID_ASC - THREAD_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - AUTHOR_ROLE_ASC - AUTHOR_ROLE_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - OWNER_ID_ASC - OWNER_ID_DESC - PARTS_ASC - PARTS_DESC -} - -"""A connection to a list of `AgentTask` values.""" -type AgentTaskConnection { - """A list of `AgentTask` objects.""" - nodes: [AgentTask]! - - """ - A list of edges which contains the `AgentTask` and cursor to aid in pagination. - """ - edges: [AgentTaskEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AgentTask` you could get from the connection.""" - totalCount: Int! -} - -""" -An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. -""" -type AgentTask { - """ - Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. - """ - threadId: UUID! - - """ - Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. - """ - entityId: UUID! - - """Natural-language description of the work to do. Required.""" - description: String! - - """ - Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. - """ - source: String! - - """ - Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. - """ - error: String - id: UUID! - - """Timestamp when this record was created""" - createdAt: Datetime! - - """Timestamp when this record was last updated""" - updatedAt: Datetime! - - """User who owns this record""" - ownerId: UUID! - - """Current status of this record""" - status: String! - - """Reads a single `User` that is related to this `AgentTask`.""" - owner: User - - """Reads a single `AgentThread` that is related to this `AgentTask`.""" - thread: AgentThread -} - -"""A `AgentTask` edge in the connection.""" -type AgentTaskEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AgentTask` at the end of the edge.""" - node: AgentTask -} - -"""Methods to use when ordering `AgentTask`.""" -enum AgentTaskOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - THREAD_ID_ASC - THREAD_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - SOURCE_ASC - SOURCE_DESC - ERROR_ASC - ERROR_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - OWNER_ID_ASC - OWNER_ID_DESC - STATUS_ASC - STATUS_DESC -} - -"""A `AgentThread` edge in the connection.""" -type AgentThreadEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AgentThread` at the end of the edge.""" - node: AgentThread -} - -"""Methods to use when ordering `AgentThread`.""" -enum AgentThreadOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - TITLE_ASC - TITLE_DESC - MODE_ASC - MODE_DESC - MODEL_ASC - MODEL_DESC - SYSTEM_PROMPT_ASC - SYSTEM_PROMPT_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - OWNER_ID_ASC - OWNER_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - STATUS_ASC - STATUS_DESC -} - -"""A connection to a list of `RoleType` values.""" -type RoleTypeConnection { - """A list of `RoleType` objects.""" - nodes: [RoleType]! - - """ - A list of edges which contains the `RoleType` and cursor to aid in pagination. - """ - edges: [RoleTypeEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `RoleType` you could get from the connection.""" - totalCount: Int! -} - -"""A `RoleType` edge in the connection.""" -type RoleTypeEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RoleType` at the end of the edge.""" - node: RoleType -} - -"""Methods to use when ordering `RoleType`.""" -enum RoleTypeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC } """A connection to a list of `IdentityProvider` values.""" @@ -33280,7 +34169,7 @@ type Ref { """The name of the ref or branch""" name: String! - databaseId: UUID! + scopeId: UUID! storeId: UUID! commitId: UUID } @@ -33304,8 +34193,8 @@ input RefFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `storeId` field.""" storeId: UUIDFilter @@ -33332,8 +34221,8 @@ enum RefOrderBy { ID_DESC NAME_ASC NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC STORE_ID_ASC STORE_ID_DESC COMMIT_ID_ASC @@ -33365,8 +34254,8 @@ type Store { """The name of the store (e.g., metaschema, migrations).""" name: String! - """The database this store belongs to.""" - databaseId: UUID! + """The scope this store belongs to.""" + scopeId: UUID! """The current head tree_id for this store.""" hash: UUID @@ -33392,8 +34281,8 @@ input StoreFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `hash` field.""" hash: UUIDFilter @@ -33420,8 +34309,8 @@ enum StoreOrderBy { ID_DESC NAME_ASC NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC HASH_ASC HASH_DESC CREATED_AT_ASC @@ -33497,141 +34386,457 @@ enum AppPermissionDefaultOrderBy { PERMISSIONS_DESC } -"""A connection to a list of `AppLimitCreditCode` values.""" -type AppLimitCreditCodeConnection { - """A list of `AppLimitCreditCode` objects.""" - nodes: [AppLimitCreditCode]! +"""A connection to a list of `RoleType` values.""" +type RoleTypeConnection { + """A list of `RoleType` objects.""" + nodes: [RoleType]! """ - A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. + A list of edges which contains the `RoleType` and cursor to aid in pagination. """ - edges: [AppLimitCreditCodeEdge]! + edges: [RoleTypeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! + """The count of *all* `RoleType` you could get from the connection.""" + totalCount: Int! +} + +"""A `RoleType` edge in the connection.""" +type RoleTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RoleType` at the end of the edge.""" + node: RoleType +} + +"""Methods to use when ordering `RoleType`.""" +enum RoleTypeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `MigrateFile` values.""" +type MigrateFileConnection { + """A list of `MigrateFile` objects.""" + nodes: [MigrateFile]! + """ - The count of *all* `AppLimitCreditCode` you could get from the connection. + A list of edges which contains the `MigrateFile` and cursor to aid in pagination. """ + edges: [MigrateFileEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `MigrateFile` you could get from the connection.""" totalCount: Int! } -"""A `AppLimitCreditCode` edge in the connection.""" -type AppLimitCreditCodeEdge { +type MigrateFile { + id: UUID + databaseId: UUID + upload: ConstructiveInternalTypeUpload +} + +scalar ConstructiveInternalTypeUpload + +"""A `MigrateFile` edge in the connection.""" +type MigrateFileEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimitCreditCode` at the end of the edge.""" - node: AppLimitCreditCode + """The `MigrateFile` at the end of the edge.""" + node: MigrateFile } -"""Methods to use when ordering `AppLimitCreditCode`.""" -enum AppLimitCreditCodeOrderBy { +""" +A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ +""" +input MigrateFileFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `upload` field.""" + upload: ConstructiveInternalTypeUploadFilter + + """Checks for all expressions in this list.""" + and: [MigrateFileFilter!] + + """Checks for any expressions in this list.""" + or: [MigrateFileFilter!] + + """Negates the expression.""" + not: MigrateFileFilter +} + +""" +A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeUploadFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeUpload + + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeUpload + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeUpload + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeUpload + + """Included in the specified list.""" + in: [ConstructiveInternalTypeUpload!] + + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeUpload!] + + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeUpload + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeUpload + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeUpload + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeUpload + + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeUpload + + """Contains the specified key.""" + containsKey: String + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeUpload +} + +"""Methods to use when ordering `MigrateFile`.""" +enum MigrateFileOrderBy { + NATURAL + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + UPLOAD_ASC + UPLOAD_DESC +} + +"""A connection to a list of `DevicesModule` values.""" +type DevicesModuleConnection { + """A list of `DevicesModule` objects.""" + nodes: [DevicesModule]! + + """ + A list of edges which contains the `DevicesModule` and cursor to aid in pagination. + """ + edges: [DevicesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `DevicesModule` you could get from the connection.""" + totalCount: Int! +} + +"""A `DevicesModule` edge in the connection.""" +type DevicesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DevicesModule` at the end of the edge.""" + node: DevicesModule +} + +"""Methods to use when ordering `DevicesModule`.""" +enum DevicesModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CODE_ASC - CODE_DESC - MAX_REDEMPTIONS_ASC - MAX_REDEMPTIONS_DESC - CURRENT_REDEMPTIONS_ASC - CURRENT_REDEMPTIONS_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + USER_DEVICES_TABLE_ID_ASC + USER_DEVICES_TABLE_ID_DESC + DEVICE_SETTINGS_TABLE_ID_ASC + DEVICE_SETTINGS_TABLE_ID_DESC + USER_DEVICES_TABLE_ASC + USER_DEVICES_TABLE_DESC + DEVICE_SETTINGS_TABLE_ASC + DEVICE_SETTINGS_TABLE_DESC +} + +"""A connection to a list of `AppMembershipDefault` values.""" +type AppMembershipDefaultConnection { + """A list of `AppMembershipDefault` objects.""" + nodes: [AppMembershipDefault]! + + """ + A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. + """ + edges: [AppMembershipDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppMembershipDefault` you could get from the connection. + """ + totalCount: Int! } """ -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ +Default membership settings per entity, controlling initial approval and verification state for new members """ -input AppPermissionFilter { +type AppMembershipDefault { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! + + """Whether new members are automatically verified upon joining""" + isVerified: Boolean! +} + +"""A `AppMembershipDefault` edge in the connection.""" +type AppMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppMembershipDefault` at the end of the edge.""" + node: AppMembershipDefault +} + +""" +A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ +""" +input AppMembershipDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """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: [AppPermissionFilter!] + and: [AppMembershipDefaultFilter!] """Checks for any expressions in this list.""" - or: [AppPermissionFilter!] + or: [AppMembershipDefaultFilter!] """Negates the expression.""" - not: AppPermissionFilter + not: AppMembershipDefaultFilter } -"""Methods to use when ordering `AppPermission`.""" -enum AppPermissionOrderBy { +"""Methods to use when ordering `AppMembershipDefault`.""" +enum AppMembershipDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC +} + +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! + + """ + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + """ + edges: [OrgMembershipDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgMembershipDefault` you could get from the connection. + """ + totalCount: Int! +} + +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault +} + +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum OrgMembershipDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + ENTITY_ID_ASC + ENTITY_ID_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! +} + +type NodeTypeRegistry { + name: String! + slug: String! + category: String! + displayName: String + description: String + parameterSchema: JSON! + tags: [String]! +} + +"""A `NodeTypeRegistry` edge in the connection.""" +type NodeTypeRegistryEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `NodeTypeRegistry` at the end of the edge.""" + node: NodeTypeRegistry } """ -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ """ -input OrgPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - +input NodeTypeRegistryFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter + """Filter by the object’s `slug` field.""" + slug: StringFilter - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """Filter by the object’s `category` field.""" + category: StringFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter """Filter by the object’s `description` field.""" description: StringFilter + """Filter by the object’s `parameterSchema` field.""" + parameterSchema: JSONFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + """Checks for all expressions in this list.""" - and: [OrgPermissionFilter!] + and: [NodeTypeRegistryFilter!] """Checks for any expressions in this list.""" - or: [OrgPermissionFilter!] + or: [NodeTypeRegistryFilter!] """Negates the expression.""" - not: OrgPermissionFilter + not: NodeTypeRegistryFilter } -"""Methods to use when ordering `OrgPermission`.""" -enum OrgPermissionOrderBy { +"""Methods to use when ordering `NodeTypeRegistry`.""" +enum NodeTypeRegistryOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC - ID_ASC - ID_DESC NAME_ASC NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_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 } """A connection to a list of `AppLimitCapsDefault` values.""" @@ -33962,410 +35167,323 @@ enum OrgLimitCapOrderBy { MAX_DESC } -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! +"""A connection to a list of `UserConnectedAccount` values.""" +type UserConnectedAccountConnection { + """A list of `UserConnectedAccount` objects.""" + nodes: [UserConnectedAccount]! """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. + A list of edges which contains the `UserConnectedAccount` and cursor to aid in pagination. """ - edges: [MembershipTypeEdge]! + edges: [UserConnectedAccountEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `MembershipType` you could get from the connection.""" - totalCount: Int! -} - -""" -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) -""" -type MembershipType { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + The count of *all* `UserConnectedAccount` you could get from the connection. """ - parentMembershipType: Int + totalCount: Int! +} - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean! +type UserConnectedAccount { + id: UUID + ownerId: UUID + service: String + identifier: String + details: JSON + isVerified: Boolean + createdAt: Datetime + updatedAt: Datetime } -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { +"""A `UserConnectedAccount` edge in the connection.""" +type UserConnectedAccountEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MembershipType` at the end of the edge.""" - node: MembershipType + """The `UserConnectedAccount` at the end of the edge.""" + node: UserConnectedAccount } """ -A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `UserConnectedAccount` object types. All fields are combined with a logical ‘and.’ """ -input MembershipTypeFilter { +input UserConnectedAccountFilter { """Filter by the object’s `id` field.""" - id: IntFilter + id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `service` field.""" + service: StringFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `identifier` field.""" + identifier: StringFilter - """Filter by the object’s `parentMembershipType` field.""" - parentMembershipType: IntFilter + """Filter by the object’s `details` field.""" + details: JSONFilter - """Filter by the object’s `hasUsersTableEntry` field.""" - hasUsersTableEntry: BooleanFilter + """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: [MembershipTypeFilter!] + and: [UserConnectedAccountFilter!] """Checks for any expressions in this list.""" - or: [MembershipTypeFilter!] + or: [UserConnectedAccountFilter!] """Negates the expression.""" - not: MembershipTypeFilter + not: UserConnectedAccountFilter } -"""Methods to use when ordering `MembershipType`.""" -enum MembershipTypeOrderBy { +"""Methods to use when ordering `UserConnectedAccount`.""" +enum UserConnectedAccountOrderBy { NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PREFIX_ASC - PREFIX_DESC - PARENT_MEMBERSHIP_TYPE_ASC - PARENT_MEMBERSHIP_TYPE_DESC - HAS_USERS_TABLE_ENTRY_ASC - HAS_USERS_TABLE_ENTRY_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 } -"""A connection to a list of `MigrateFile` values.""" -type MigrateFileConnection { - """A list of `MigrateFile` objects.""" - nodes: [MigrateFile]! +"""A connection to a list of `AppLimitDefault` values.""" +type AppLimitDefaultConnection { + """A list of `AppLimitDefault` objects.""" + nodes: [AppLimitDefault]! """ - A list of edges which contains the `MigrateFile` and cursor to aid in pagination. + A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. """ - edges: [MigrateFileEdge]! + edges: [AppLimitDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `MigrateFile` you could get from the connection.""" + """ + The count of *all* `AppLimitDefault` you could get from the connection. + """ totalCount: Int! } -type MigrateFile { - id: UUID - databaseId: UUID - upload: ConstructiveInternalTypeUpload -} - -scalar ConstructiveInternalTypeUpload - -"""A `MigrateFile` edge in the connection.""" -type MigrateFileEdge { +"""A `AppLimitDefault` edge in the connection.""" +type AppLimitDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MigrateFile` at the end of the edge.""" - node: MigrateFile -} - -""" -A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ -""" -input MigrateFileFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `upload` field.""" - upload: ConstructiveInternalTypeUploadFilter - - """Checks for all expressions in this list.""" - and: [MigrateFileFilter!] - - """Checks for any expressions in this list.""" - or: [MigrateFileFilter!] - - """Negates the expression.""" - not: MigrateFileFilter -} - -""" -A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeUploadFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeUpload - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeUpload - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ConstructiveInternalTypeUpload - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeUpload - - """Included in the specified list.""" - in: [ConstructiveInternalTypeUpload!] - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeUpload!] - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeUpload - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeUpload - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeUpload - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeUpload - - """Contains the specified JSON.""" - contains: ConstructiveInternalTypeUpload - - """Contains the specified key.""" - containsKey: String - - """Contains all of the specified keys.""" - containsAllKeys: [String!] - - """Contains any of the specified keys.""" - containsAnyKeys: [String!] - - """Contained by the specified JSON.""" - containedBy: ConstructiveInternalTypeUpload + """The `AppLimitDefault` at the end of the edge.""" + node: AppLimitDefault } -"""Methods to use when ordering `MigrateFile`.""" -enum MigrateFileOrderBy { +"""Methods to use when ordering `AppLimitDefault`.""" +enum AppLimitDefaultOrderBy { NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - UPLOAD_ASC - UPLOAD_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } -"""A connection to a list of `DevicesModule` values.""" -type DevicesModuleConnection { - """A list of `DevicesModule` objects.""" - nodes: [DevicesModule]! +"""A connection to a list of `OrgLimitDefault` values.""" +type OrgLimitDefaultConnection { + """A list of `OrgLimitDefault` objects.""" + nodes: [OrgLimitDefault]! """ - A list of edges which contains the `DevicesModule` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. """ - edges: [DevicesModuleEdge]! + edges: [OrgLimitDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `DevicesModule` you could get from the connection.""" + """ + The count of *all* `OrgLimitDefault` you could get from the connection. + """ totalCount: Int! } -"""A `DevicesModule` edge in the connection.""" -type DevicesModuleEdge { +"""A `OrgLimitDefault` edge in the connection.""" +type OrgLimitDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `DevicesModule` at the end of the edge.""" - node: DevicesModule + """The `OrgLimitDefault` at the end of the edge.""" + node: OrgLimitDefault } -"""Methods to use when ordering `DevicesModule`.""" -enum DevicesModuleOrderBy { +"""Methods to use when ordering `OrgLimitDefault`.""" +enum OrgLimitDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - USER_DEVICES_TABLE_ID_ASC - USER_DEVICES_TABLE_ID_DESC - DEVICE_SETTINGS_TABLE_ID_ASC - DEVICE_SETTINGS_TABLE_ID_DESC - USER_DEVICES_TABLE_ASC - USER_DEVICES_TABLE_DESC - DEVICE_SETTINGS_TABLE_ASC - DEVICE_SETTINGS_TABLE_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } -"""A connection to a list of `NodeTypeRegistry` values.""" -type NodeTypeRegistryConnection { - """A list of `NodeTypeRegistry` objects.""" - nodes: [NodeTypeRegistry]! +""" +A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ +""" +input ObjectFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. - """ - edges: [NodeTypeRegistryEdge]! + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `kids` field.""" + kids: UUIDListFilter - """ - The count of *all* `NodeTypeRegistry` you could get from the connection. - """ - totalCount: Int! -} + """Filter by the object’s `ktree` field.""" + ktree: StringListFilter -type NodeTypeRegistry { - name: String! - slug: String! - category: String! - displayName: String - description: String - parameterSchema: JSON! - tags: [String]! -} + """Filter by the object’s `data` field.""" + data: JSONFilter -"""A `NodeTypeRegistry` edge in the connection.""" -type NodeTypeRegistryEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `frzn` field.""" + frzn: BooleanFilter - """The `NodeTypeRegistry` at the end of the edge.""" - node: NodeTypeRegistry + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [ObjectFilter!] + + """Checks for any expressions in this list.""" + or: [ObjectFilter!] + + """Negates the expression.""" + not: ObjectFilter +} + +"""Methods to use when ordering `Object`.""" +enum ObjectOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC + KIDS_ASC + KIDS_DESC + KTREE_ASC + KTREE_DESC + DATA_ASC + DATA_DESC + FRZN_ASC + FRZN_DESC + CREATED_AT_ASC + CREATED_AT_DESC } """ -A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ """ -input NodeTypeRegistryFilter { +input AppPermissionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `slug` field.""" - slug: StringFilter - - """Filter by the object’s `category` field.""" - category: StringFilter + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter - """Filter by the object’s `displayName` field.""" - displayName: StringFilter + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter """Filter by the object’s `description` field.""" description: StringFilter - """Filter by the object’s `parameterSchema` field.""" - parameterSchema: JSONFilter - - """Filter by the object’s `tags` field.""" - tags: StringListFilter - """Checks for all expressions in this list.""" - and: [NodeTypeRegistryFilter!] + and: [AppPermissionFilter!] """Checks for any expressions in this list.""" - or: [NodeTypeRegistryFilter!] + or: [AppPermissionFilter!] """Negates the expression.""" - not: NodeTypeRegistryFilter + not: AppPermissionFilter } -"""Methods to use when ordering `NodeTypeRegistry`.""" -enum NodeTypeRegistryOrderBy { +"""Methods to use when ordering `AppPermission`.""" +enum AppPermissionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + ID_ASC + ID_DESC NAME_ASC NAME_DESC - SLUG_ASC - SLUG_DESC - CATEGORY_ASC - CATEGORY_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC DESCRIPTION_ASC DESCRIPTION_DESC - PARAMETER_SCHEMA_ASC - PARAMETER_SCHEMA_DESC - TAGS_ASC - TAGS_DESC } -"""A connection to a list of `AppLimitDefault` values.""" -type AppLimitDefaultConnection { - """A list of `AppLimitDefault` objects.""" - nodes: [AppLimitDefault]! +""" +A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ +""" +input OrgPermissionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. - """ - edges: [AppLimitDefaultEdge]! + """Filter by the object’s `name` field.""" + name: StringFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter - """ - The count of *all* `AppLimitDefault` you could get from the connection. - """ - totalCount: Int! -} + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter -"""A `AppLimitDefault` edge in the connection.""" -type AppLimitDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filter by the object’s `description` field.""" + description: StringFilter - """The `AppLimitDefault` at the end of the edge.""" - node: AppLimitDefault + """Checks for all expressions in this list.""" + and: [OrgPermissionFilter!] + + """Checks for any expressions in this list.""" + or: [OrgPermissionFilter!] + + """Negates the expression.""" + not: OrgPermissionFilter } -"""Methods to use when ordering `AppLimitDefault`.""" -enum AppLimitDefaultOrderBy { +"""Methods to use when ordering `OrgPermission`.""" +enum OrgPermissionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -34373,53 +35491,57 @@ enum AppLimitDefaultOrderBy { ID_DESC NAME_ASC NAME_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC } -"""A connection to a list of `OrgLimitDefault` values.""" -type OrgLimitDefaultConnection { - """A list of `OrgLimitDefault` objects.""" - nodes: [OrgLimitDefault]! +"""A connection to a list of `AppLimitCreditCode` values.""" +type AppLimitCreditCodeConnection { + """A list of `AppLimitCreditCode` objects.""" + nodes: [AppLimitCreditCode]! """ - A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. + A list of edges which contains the `AppLimitCreditCode` and cursor to aid in pagination. """ - edges: [OrgLimitDefaultEdge]! + edges: [AppLimitCreditCodeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgLimitDefault` you could get from the connection. + The count of *all* `AppLimitCreditCode` you could get from the connection. """ totalCount: Int! } -"""A `OrgLimitDefault` edge in the connection.""" -type OrgLimitDefaultEdge { +"""A `AppLimitCreditCode` edge in the connection.""" +type AppLimitCreditCodeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitDefault` at the end of the edge.""" - node: OrgLimitDefault + """The `AppLimitCreditCode` at the end of the edge.""" + node: AppLimitCreditCode } -"""Methods to use when ordering `OrgLimitDefault`.""" -enum OrgLimitDefaultOrderBy { +"""Methods to use when ordering `AppLimitCreditCode`.""" +enum AppLimitCreditCodeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC - SOFT_MAX_ASC - SOFT_MAX_DESC + CODE_ASC + CODE_DESC + MAX_REDEMPTIONS_ASC + MAX_REDEMPTIONS_DESC + CURRENT_REDEMPTIONS_ASC + CURRENT_REDEMPTIONS_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC } """A connection to a list of `AppLimitWarning` values.""" @@ -34519,188 +35641,34 @@ enum AppLimitWarningOrderBy { TASK_IDENTIFIER_DESC } -"""A connection to a list of `UserConnectedAccount` values.""" -type UserConnectedAccountConnection { - """A list of `UserConnectedAccount` objects.""" - nodes: [UserConnectedAccount]! +"""A connection to a list of `Commit` values.""" +type CommitConnection { + """A list of `Commit` objects.""" + nodes: [Commit]! """ - A list of edges which contains the `UserConnectedAccount` and cursor to aid in pagination. + A list of edges which contains the `Commit` and cursor to aid in pagination. """ - edges: [UserConnectedAccountEdge]! + edges: [CommitEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `UserConnectedAccount` you could get from the connection. - """ + """The count of *all* `Commit` you could get from the connection.""" totalCount: Int! } -type UserConnectedAccount { - id: UUID - ownerId: UUID - service: String - identifier: String - details: JSON - isVerified: Boolean - createdAt: Datetime - updatedAt: Datetime -} +"""A commit records changes to the repository.""" +type Commit { + """The primary unique identifier for the commit.""" + id: UUID! -"""A `UserConnectedAccount` edge in the connection.""" -type UserConnectedAccountEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """The commit message""" + message: String - """The `UserConnectedAccount` at the end of the edge.""" - node: UserConnectedAccount -} - -""" -A filter to be used against `UserConnectedAccount` object types. All fields are combined with a logical ‘and.’ -""" -input UserConnectedAccountFilter { - """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: [UserConnectedAccountFilter!] - - """Checks for any expressions in this list.""" - or: [UserConnectedAccountFilter!] - - """Negates the expression.""" - not: UserConnectedAccountFilter -} - -"""Methods to use when ordering `UserConnectedAccount`.""" -enum UserConnectedAccountOrderBy { - 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 -} - -""" -A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ -""" -input ObjectFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `kids` field.""" - kids: UUIDListFilter - - """Filter by the object’s `ktree` field.""" - ktree: StringListFilter - - """Filter by the object’s `data` field.""" - data: JSONFilter - - """Filter by the object’s `frzn` field.""" - frzn: BooleanFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [ObjectFilter!] - - """Checks for any expressions in this list.""" - or: [ObjectFilter!] - - """Negates the expression.""" - not: ObjectFilter -} - -"""Methods to use when ordering `Object`.""" -enum ObjectOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_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 -} - -"""A connection to a list of `Commit` values.""" -type CommitConnection { - """A list of `Commit` objects.""" - nodes: [Commit]! - - """ - A list of edges which contains the `Commit` and cursor to aid in pagination. - """ - edges: [CommitEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Commit` you could get from the connection.""" - totalCount: Int! -} - -"""A commit records changes to the repository.""" -type Commit { - """The primary unique identifier for the commit.""" - id: UUID! - - """The commit message""" - message: String - - """The repository identifier""" - databaseId: UUID! - storeId: UUID! + """The scope identifier""" + scopeId: UUID! + storeId: UUID! """Parent commits""" parentIds: [UUID] @@ -34735,8 +35703,8 @@ input CommitFilter { """Filter by the object’s `message` field.""" message: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `scopeId` field.""" + scopeId: UUIDFilter """Filter by the object’s `storeId` field.""" storeId: UUIDFilter @@ -34775,8 +35743,8 @@ enum CommitOrderBy { ID_DESC MESSAGE_ASC MESSAGE_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC + SCOPE_ID_ASC + SCOPE_ID_DESC STORE_ID_ASC STORE_ID_DESC PARENT_IDS_ASC @@ -34880,574 +35848,180 @@ enum RateLimitsModuleOrderBy { DATABASE_ID_ASC DATABASE_ID_DESC SCHEMA_ID_ASC - SCHEMA_ID_DESC - RATE_LIMIT_SETTINGS_TABLE_ID_ASC - RATE_LIMIT_SETTINGS_TABLE_ID_DESC - IP_RATE_LIMITS_TABLE_ID_ASC - IP_RATE_LIMITS_TABLE_ID_DESC - RATE_LIMITS_TABLE_ID_ASC - RATE_LIMITS_TABLE_ID_DESC - RATE_LIMIT_SETTINGS_TABLE_ASC - RATE_LIMIT_SETTINGS_TABLE_DESC - IP_RATE_LIMITS_TABLE_ASC - IP_RATE_LIMITS_TABLE_DESC - RATE_LIMITS_TABLE_ASC - RATE_LIMITS_TABLE_DESC -} - -"""A connection to a list of `UsageSnapshot` values.""" -type UsageSnapshotConnection { - """A list of `UsageSnapshot` objects.""" - nodes: [UsageSnapshot]! - - """ - A list of edges which contains the `UsageSnapshot` and cursor to aid in pagination. - """ - edges: [UsageSnapshotEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `UsageSnapshot` you could get from the connection.""" - totalCount: Int! -} - -""" -Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. -""" -type UsageSnapshot { - """ - The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. - """ - databaseId: UUID! - - """ - Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). - """ - metricName: String! - - """ - The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). - """ - metricValue: BigInt! - - """ - Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. - """ - dimensions: JSON! - - """ - When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. - """ - capturedAt: Datetime! - id: UUID! -} - -"""A `UsageSnapshot` edge in the connection.""" -type UsageSnapshotEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `UsageSnapshot` at the end of the edge.""" - node: UsageSnapshot -} - -""" -A filter to be used against `UsageSnapshot` object types. All fields are combined with a logical ‘and.’ -""" -input UsageSnapshotFilter { - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `metricName` field.""" - metricName: StringFilter - - """Filter by the object’s `metricValue` field.""" - metricValue: BigIntFilter - - """Filter by the object’s `dimensions` field.""" - dimensions: JSONFilter - - """Filter by the object’s `capturedAt` field.""" - capturedAt: DatetimeFilter - - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Checks for all expressions in this list.""" - and: [UsageSnapshotFilter!] - - """Checks for any expressions in this list.""" - or: [UsageSnapshotFilter!] - - """Negates the expression.""" - not: UsageSnapshotFilter -} - -"""Methods to use when ordering `UsageSnapshot`.""" -enum UsageSnapshotOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - METRIC_NAME_ASC - METRIC_NAME_DESC - METRIC_VALUE_ASC - METRIC_VALUE_DESC - DIMENSIONS_ASC - DIMENSIONS_DESC - CAPTURED_AT_ASC - CAPTURED_AT_DESC - ID_ASC - ID_DESC -} - -"""A connection to a list of `AppMembershipDefault` values.""" -type AppMembershipDefaultConnection { - """A list of `AppMembershipDefault` objects.""" - nodes: [AppMembershipDefault]! - - """ - A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. - """ - edges: [AppMembershipDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppMembershipDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Default membership settings per entity, controlling initial approval and verification state for new members -""" -type AppMembershipDefault { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean! -} - -"""A `AppMembershipDefault` edge in the connection.""" -type AppMembershipDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppMembershipDefault` at the end of the edge.""" - node: AppMembershipDefault -} - -""" -A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ -""" -input 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 -} - -"""Methods to use when ordering `AppMembershipDefault`.""" -enum AppMembershipDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC -} - -"""A connection to a list of `OrgMembershipDefault` values.""" -type OrgMembershipDefaultConnection { - """A list of `OrgMembershipDefault` objects.""" - nodes: [OrgMembershipDefault]! - - """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. - """ - edges: [OrgMembershipDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMembershipDefault` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault -} - -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `RlsSetting` values.""" -type RlsSettingConnection { - """A list of `RlsSetting` objects.""" - nodes: [RlsSetting]! - - """ - A list of edges which contains the `RlsSetting` and cursor to aid in pagination. - """ - edges: [RlsSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `RlsSetting` you could get from the connection.""" - totalCount: Int! -} - -"""A `RlsSetting` edge in the connection.""" -type RlsSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RlsSetting` at the end of the edge.""" - node: RlsSetting -} - -"""Methods to use when ordering `RlsSetting`.""" -enum RlsSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - AUTHENTICATE_SCHEMA_ID_ASC - AUTHENTICATE_SCHEMA_ID_DESC - ROLE_SCHEMA_ID_ASC - ROLE_SCHEMA_ID_DESC - AUTHENTICATE_FUNCTION_ID_ASC - AUTHENTICATE_FUNCTION_ID_DESC - AUTHENTICATE_STRICT_FUNCTION_ID_ASC - AUTHENTICATE_STRICT_FUNCTION_ID_DESC - CURRENT_ROLE_FUNCTION_ID_ASC - CURRENT_ROLE_FUNCTION_ID_DESC - CURRENT_ROLE_ID_FUNCTION_ID_ASC - CURRENT_ROLE_ID_FUNCTION_ID_DESC - CURRENT_USER_AGENT_FUNCTION_ID_ASC - CURRENT_USER_AGENT_FUNCTION_ID_DESC - CURRENT_IP_ADDRESS_FUNCTION_ID_ASC - CURRENT_IP_ADDRESS_FUNCTION_ID_DESC -} - -"""A connection to a list of `AppLimitEvent` values.""" -type AppLimitEventConnection { - """A list of `AppLimitEvent` objects.""" - nodes: [AppLimitEvent]! - - """ - A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. - """ - edges: [AppLimitEventEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLimitEvent` you could get from the connection.""" - totalCount: Int! -} - -"""Append-only log of limit events for historical reporting and audit""" -type AppLimitEvent { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""A `AppLimitEvent` edge in the connection.""" -type AppLimitEventEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLimitEvent` at the end of the edge.""" - node: AppLimitEvent -} - -""" -A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ -""" -input AppLimitEventFilter { - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter - - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter - - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter - - """Filter by the object’s `reason` field.""" - reason: StringFilter - - """Checks for all expressions in this list.""" - and: [AppLimitEventFilter!] - - """Checks for any expressions in this list.""" - or: [AppLimitEventFilter!] - - """Negates the expression.""" - not: AppLimitEventFilter -} - -"""Methods to use when ordering `AppLimitEvent`.""" -enum AppLimitEventOrderBy { - NATURAL - NAME_ASC - NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC + SCHEMA_ID_DESC + RATE_LIMIT_SETTINGS_TABLE_ID_ASC + RATE_LIMIT_SETTINGS_TABLE_ID_DESC + IP_RATE_LIMITS_TABLE_ID_ASC + IP_RATE_LIMITS_TABLE_ID_DESC + RATE_LIMITS_TABLE_ID_ASC + RATE_LIMITS_TABLE_ID_DESC + RATE_LIMIT_SETTINGS_TABLE_ASC + RATE_LIMIT_SETTINGS_TABLE_DESC + IP_RATE_LIMITS_TABLE_ASC + IP_RATE_LIMITS_TABLE_DESC + RATE_LIMITS_TABLE_ASC + RATE_LIMITS_TABLE_DESC } -"""A connection to a list of `OrgLimitEvent` values.""" -type OrgLimitEventConnection { - """A list of `OrgLimitEvent` objects.""" - nodes: [OrgLimitEvent]! +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! """ - A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. + A list of edges which contains the `MembershipType` and cursor to aid in pagination. """ - edges: [OrgLimitEventEdge]! + edges: [MembershipTypeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgLimitEvent` you could get from the connection.""" + """The count of *all* `MembershipType` you could get from the connection.""" totalCount: Int! } -"""Append-only log of limit events for historical reporting and audit""" -type OrgLimitEvent { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String +""" +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +""" +type MembershipType { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! - """Change amount: positive for increment, negative for decrement""" - delta: BigInt + """Human-readable name of the membership type""" + name: String! - """Usage count before this event""" - numBefore: BigInt + """Description of what this membership type represents""" + description: String! - """Usage count after this event""" - numAfter: BigInt + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String! - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs """ - reason: String + hasUsersTableEntry: Boolean! } -"""A `OrgLimitEvent` edge in the connection.""" -type OrgLimitEventEdge { +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimitEvent` at the end of the edge.""" - node: OrgLimitEvent + """The `MembershipType` at the end of the edge.""" + node: MembershipType } """ -A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitEventFilter { +input MembershipTypeFilter { + """Filter by the object’s `id` field.""" + id: IntFilter + """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `eventType` field.""" - eventType: StringFilter - - """Filter by the object’s `delta` field.""" - delta: BigIntFilter - - """Filter by the object’s `numBefore` field.""" - numBefore: BigIntFilter + """Filter by the object’s `description` field.""" + description: StringFilter - """Filter by the object’s `numAfter` field.""" - numAfter: BigIntFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `maxAtEvent` field.""" - maxAtEvent: BigIntFilter + """Filter by the object’s `parentMembershipType` field.""" + parentMembershipType: IntFilter - """Filter by the object’s `reason` field.""" - reason: StringFilter + """Filter by the object’s `hasUsersTableEntry` field.""" + hasUsersTableEntry: BooleanFilter """Checks for all expressions in this list.""" - and: [OrgLimitEventFilter!] + and: [MembershipTypeFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitEventFilter!] + or: [MembershipTypeFilter!] """Negates the expression.""" - not: OrgLimitEventFilter + not: MembershipTypeFilter } -"""Methods to use when ordering `OrgLimitEvent`.""" -enum OrgLimitEventOrderBy { +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC NAME_ASC NAME_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - EVENT_TYPE_ASC - EVENT_TYPE_DESC - DELTA_ASC - DELTA_DESC - NUM_BEFORE_ASC - NUM_BEFORE_DESC - NUM_AFTER_ASC - NUM_AFTER_DESC - MAX_AT_EVENT_ASC - MAX_AT_EVENT_DESC - REASON_ASC - REASON_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PREFIX_ASC + PREFIX_DESC + PARENT_MEMBERSHIP_TYPE_ASC + PARENT_MEMBERSHIP_TYPE_DESC + HAS_USERS_TABLE_ENTRY_ASC + HAS_USERS_TABLE_ENTRY_DESC +} + +"""A connection to a list of `RlsSetting` values.""" +type RlsSettingConnection { + """A list of `RlsSetting` objects.""" + nodes: [RlsSetting]! + + """ + A list of edges which contains the `RlsSetting` and cursor to aid in pagination. + """ + edges: [RlsSettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `RlsSetting` you could get from the connection.""" + totalCount: Int! +} + +"""A `RlsSetting` edge in the connection.""" +type RlsSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RlsSetting` at the end of the edge.""" + node: RlsSetting +} + +"""Methods to use when ordering `RlsSetting`.""" +enum RlsSettingOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + AUTHENTICATE_SCHEMA_ID_ASC + AUTHENTICATE_SCHEMA_ID_DESC + ROLE_SCHEMA_ID_ASC + ROLE_SCHEMA_ID_DESC + AUTHENTICATE_FUNCTION_ID_ASC + AUTHENTICATE_FUNCTION_ID_DESC + AUTHENTICATE_STRICT_FUNCTION_ID_ASC + AUTHENTICATE_STRICT_FUNCTION_ID_DESC + CURRENT_ROLE_FUNCTION_ID_ASC + CURRENT_ROLE_FUNCTION_ID_DESC + CURRENT_ROLE_ID_FUNCTION_ID_ASC + CURRENT_ROLE_ID_FUNCTION_ID_DESC + CURRENT_USER_AGENT_FUNCTION_ID_ASC + CURRENT_USER_AGENT_FUNCTION_ID_DESC + CURRENT_IP_ADDRESS_FUNCTION_ID_ASC + CURRENT_IP_ADDRESS_FUNCTION_ID_DESC } """A connection to a list of `RlsModule` values.""" @@ -35505,6 +36079,65 @@ enum RlsModuleOrderBy { CURRENT_ROLE_ID_DESC } +"""A connection to a list of `AgentChatModule` values.""" +type AgentChatModuleConnection { + """A list of `AgentChatModule` objects.""" + nodes: [AgentChatModule]! + + """ + A list of edges which contains the `AgentChatModule` and cursor to aid in pagination. + """ + edges: [AgentChatModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AgentChatModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `AgentChatModule` edge in the connection.""" +type AgentChatModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentChatModule` at the end of the edge.""" + node: AgentChatModule +} + +"""Methods to use when ordering `AgentChatModule`.""" +enum AgentChatModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + API_ID_ASC + API_ID_DESC + THREAD_TABLE_ID_ASC + THREAD_TABLE_ID_DESC + THREAD_TABLE_NAME_ASC + THREAD_TABLE_NAME_DESC + MESSAGE_TABLE_ID_ASC + MESSAGE_TABLE_ID_DESC + MESSAGE_TABLE_NAME_ASC + MESSAGE_TABLE_NAME_DESC + TASK_TABLE_ID_ASC + TASK_TABLE_ID_DESC + TASK_TABLE_NAME_ASC + TASK_TABLE_NAME_DESC + PREFIX_ASC + PREFIX_DESC +} + """A connection to a list of `RateLimitMetersModule` values.""" type RateLimitMetersModuleConnection { """A list of `RateLimitMetersModule` objects.""" @@ -35656,94 +36289,372 @@ type SqlAction { actorId: UUID } -"""A `SqlAction` edge in the connection.""" -type SqlActionEdge { +"""A `SqlAction` edge in the connection.""" +type SqlActionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SqlAction` at the end of the edge.""" + node: SqlAction +} + +""" +A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ +""" +input SqlActionFilter { + """Filter by the object’s `id` field.""" + id: IntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `deploy` field.""" + deploy: StringFilter + + """Filter by the object’s `deps` field.""" + deps: StringListFilter + + """Filter by the object’s `content` field.""" + content: StringFilter + + """Filter by the object’s `revert` field.""" + revert: StringFilter + + """Filter by the object’s `verify` field.""" + verify: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `action` field.""" + action: StringFilter + + """Filter by the object’s `actionId` field.""" + actionId: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [SqlActionFilter!] + + """Checks for any expressions in this list.""" + or: [SqlActionFilter!] + + """Negates the expression.""" + not: SqlActionFilter +} + +"""Methods to use when ordering `SqlAction`.""" +enum SqlActionOrderBy { + NATURAL + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + DEPLOY_ASC + DEPLOY_DESC + DEPS_ASC + DEPS_DESC + PAYLOAD_ASC + PAYLOAD_DESC + CONTENT_ASC + CONTENT_DESC + REVERT_ASC + REVERT_DESC + VERIFY_ASC + VERIFY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ACTION_ASC + ACTION_DESC + ACTION_ID_ASC + ACTION_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC +} + +"""A connection to a list of `AppLimitEvent` values.""" +type AppLimitEventConnection { + """A list of `AppLimitEvent` objects.""" + nodes: [AppLimitEvent]! + + """ + A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. + """ + edges: [AppLimitEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLimitEvent` you could get from the connection.""" + totalCount: Int! +} + +"""Append-only log of limit events for historical reporting and audit""" +type AppLimitEvent { + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""A `AppLimitEvent` edge in the connection.""" +type AppLimitEventEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitEvent` at the end of the edge.""" + node: AppLimitEvent +} + +""" +A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ +""" +input AppLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `delta` field.""" + delta: BigIntFilter + + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter + + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter + + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter + + """Checks for all expressions in this list.""" + and: [AppLimitEventFilter!] + + """Checks for any expressions in this list.""" + or: [AppLimitEventFilter!] + + """Negates the expression.""" + not: AppLimitEventFilter +} + +"""Methods to use when ordering `AppLimitEvent`.""" +enum AppLimitEventOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC +} + +"""A connection to a list of `OrgLimitEvent` values.""" +type OrgLimitEventConnection { + """A list of `OrgLimitEvent` objects.""" + nodes: [OrgLimitEvent]! + + """ + A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. + """ + edges: [OrgLimitEventEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimitEvent` you could get from the connection.""" + totalCount: Int! +} + +"""Append-only log of limit events for historical reporting and audit""" +type OrgLimitEvent { + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""A `OrgLimitEvent` edge in the connection.""" +type OrgLimitEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `SqlAction` at the end of the edge.""" - node: SqlAction + """The `OrgLimitEvent` at the end of the edge.""" + node: OrgLimitEvent } """ -A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ """ -input SqlActionFilter { +input OrgLimitEventFilter { + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + """Filter by the object’s `id` field.""" - id: IntFilter + id: UUIDFilter """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `deploy` field.""" - deploy: StringFilter - - """Filter by the object’s `deps` field.""" - deps: StringListFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `content` field.""" - content: StringFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `revert` field.""" - revert: StringFilter + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """Filter by the object’s `verify` field.""" - verify: StringFilter + """Filter by the object’s `delta` field.""" + delta: BigIntFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter - """Filter by the object’s `action` field.""" - action: StringFilter + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter - """Filter by the object’s `actionId` field.""" - actionId: UUIDFilter + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `reason` field.""" + reason: StringFilter """Checks for all expressions in this list.""" - and: [SqlActionFilter!] + and: [OrgLimitEventFilter!] """Checks for any expressions in this list.""" - or: [SqlActionFilter!] + or: [OrgLimitEventFilter!] """Negates the expression.""" - not: SqlActionFilter + not: OrgLimitEventFilter } -"""Methods to use when ordering `SqlAction`.""" -enum SqlActionOrderBy { +"""Methods to use when ordering `OrgLimitEvent`.""" +enum OrgLimitEventOrderBy { NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + CREATED_AT_ASC + CREATED_AT_DESC ID_ASC ID_DESC NAME_ASC NAME_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - DEPLOY_ASC - DEPLOY_DESC - DEPS_ASC - DEPS_DESC - PAYLOAD_ASC - PAYLOAD_DESC - CONTENT_ASC - CONTENT_DESC - REVERT_ASC - REVERT_DESC - VERIFY_ASC - VERIFY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - ACTION_ASC - ACTION_DESC - ACTION_ID_ASC - ACTION_ID_DESC ACTOR_ID_ASC ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC } """A connection to a list of `DatabaseSetting` values.""" @@ -35809,65 +36720,187 @@ enum DatabaseSettingOrderBy { OPTIONS_DESC } -"""A connection to a list of `BillingModule` values.""" -type BillingModuleConnection { - """A list of `BillingModule` objects.""" - nodes: [BillingModule]! +"""A connection to a list of `OrgMembershipSetting` values.""" +type OrgMembershipSettingConnection { + """A list of `OrgMembershipSetting` objects.""" + nodes: [OrgMembershipSetting]! """ - A list of edges which contains the `BillingModule` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. """ - edges: [BillingModuleEdge]! + edges: [OrgMembershipSettingEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `BillingModule` you could get from the connection.""" + """ + The count of *all* `OrgMembershipSetting` you could get from the connection. + """ totalCount: Int! } -"""A `BillingModule` edge in the connection.""" -type BillingModuleEdge { +"""A `OrgMembershipSetting` edge in the connection.""" +type OrgMembershipSettingEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `BillingModule` at the end of the edge.""" - node: BillingModule + """The `OrgMembershipSetting` at the end of the edge.""" + node: OrgMembershipSetting } -"""Methods to use when ordering `BillingModule`.""" -enum BillingModuleOrderBy { +"""Methods to use when ordering `OrgMembershipSetting`.""" +enum OrgMembershipSettingOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - METERS_TABLE_ID_ASC - METERS_TABLE_ID_DESC - METERS_TABLE_NAME_ASC - METERS_TABLE_NAME_DESC - PLAN_SUBSCRIPTIONS_TABLE_ID_ASC - PLAN_SUBSCRIPTIONS_TABLE_ID_DESC - PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC - PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC - LEDGER_TABLE_ID_ASC - LEDGER_TABLE_ID_DESC - LEDGER_TABLE_NAME_ASC - LEDGER_TABLE_NAME_DESC - BALANCES_TABLE_ID_ASC - BALANCES_TABLE_ID_DESC - BALANCES_TABLE_NAME_ASC - BALANCES_TABLE_NAME_DESC - RECORD_USAGE_FUNCTION_ASC - RECORD_USAGE_FUNCTION_DESC - PREFIX_ASC - PREFIX_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + DELETE_MEMBER_CASCADE_CHILDREN_ASC + DELETE_MEMBER_CASCADE_CHILDREN_DESC + CREATE_CHILD_CASCADE_OWNERS_ASC + CREATE_CHILD_CASCADE_OWNERS_DESC + CREATE_CHILD_CASCADE_ADMINS_ASC + CREATE_CHILD_CASCADE_ADMINS_DESC + CREATE_CHILD_CASCADE_MEMBERS_ASC + CREATE_CHILD_CASCADE_MEMBERS_DESC + ALLOW_EXTERNAL_MEMBERS_ASC + ALLOW_EXTERNAL_MEMBERS_DESC + INVITE_PROFILE_ASSIGNMENT_MODE_ASC + INVITE_PROFILE_ASSIGNMENT_MODE_DESC + POPULATE_MEMBER_EMAIL_ASC + POPULATE_MEMBER_EMAIL_DESC + LIMIT_ALLOCATION_MODE_ASC + LIMIT_ALLOCATION_MODE_DESC +} + +"""A connection to a list of `AppMembership` values.""" +type AppMembershipConnection { + """A list of `AppMembership` objects.""" + nodes: [AppMembership]! + + """ + A list of edges which contains the `AppMembership` and cursor to aid in pagination. + """ + edges: [AppMembershipEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppMembership` you could get from the connection.""" + totalCount: Int! +} + +"""A `AppMembership` edge in the connection.""" +type AppMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppMembership` at the end of the edge.""" + node: AppMembership +} + +"""Methods to use when ordering `AppMembership`.""" +enum AppMembershipOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + 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 +} + +"""A connection to a list of `User` values.""" +type UserConnection { + """A list of `User` objects.""" + nodes: [User]! + + """ + A list of edges which contains the `User` and cursor to aid in pagination. + """ + edges: [UserEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `User` you could get from the connection.""" + totalCount: Int! +} + +"""A `User` edge in the connection.""" +type UserEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `User` at the end of the edge.""" + node: User +} + +"""Methods to use when ordering `User`.""" +enum UserOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + 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 + UPDATED_AT_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + DISPLAY_NAME_TRGM_SIMILARITY_ASC + DISPLAY_NAME_TRGM_SIMILARITY_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC } """A connection to a list of `AstMigration` values.""" @@ -35996,124 +37029,6 @@ enum AstMigrationOrderBy { ACTOR_ID_DESC } -"""A connection to a list of `User` values.""" -type UserConnection { - """A list of `User` objects.""" - nodes: [User]! - - """ - A list of edges which contains the `User` and cursor to aid in pagination. - """ - edges: [UserEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `User` you could get from the connection.""" - totalCount: Int! -} - -"""A `User` edge in the connection.""" -type UserEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `User` at the end of the edge.""" - node: User -} - -"""Methods to use when ordering `User`.""" -enum UserOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - 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 - UPDATED_AT_DESC - SEARCH_TSV_RANK_ASC - SEARCH_TSV_RANK_DESC - DISPLAY_NAME_TRGM_SIMILARITY_ASC - DISPLAY_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `OrgMembershipSetting` values.""" -type OrgMembershipSettingConnection { - """A list of `OrgMembershipSetting` objects.""" - nodes: [OrgMembershipSetting]! - - """ - A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. - """ - edges: [OrgMembershipSettingEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgMembershipSetting` you could get from the connection. - """ - totalCount: Int! -} - -"""A `OrgMembershipSetting` edge in the connection.""" -type OrgMembershipSettingEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgMembershipSetting` at the end of the edge.""" - node: OrgMembershipSetting -} - -"""Methods to use when ordering `OrgMembershipSetting`.""" -enum OrgMembershipSettingOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - DELETE_MEMBER_CASCADE_CHILDREN_ASC - DELETE_MEMBER_CASCADE_CHILDREN_DESC - CREATE_CHILD_CASCADE_OWNERS_ASC - CREATE_CHILD_CASCADE_OWNERS_DESC - CREATE_CHILD_CASCADE_ADMINS_ASC - CREATE_CHILD_CASCADE_ADMINS_DESC - CREATE_CHILD_CASCADE_MEMBERS_ASC - CREATE_CHILD_CASCADE_MEMBERS_DESC - ALLOW_EXTERNAL_MEMBERS_ASC - ALLOW_EXTERNAL_MEMBERS_DESC - INVITE_PROFILE_ASSIGNMENT_MODE_ASC - INVITE_PROFILE_ASSIGNMENT_MODE_DESC - POPULATE_MEMBER_EMAIL_ASC - POPULATE_MEMBER_EMAIL_DESC - LIMIT_ALLOCATION_MODE_ASC - LIMIT_ALLOCATION_MODE_DESC -} - """A connection to a list of `WebauthnSetting` values.""" type WebauthnSettingConnection { """A list of `WebauthnSetting` objects.""" @@ -36185,69 +37100,73 @@ enum WebauthnSettingOrderBy { CHALLENGE_EXPIRY_SECONDS_DESC } -"""A connection to a list of `AppMembership` values.""" -type AppMembershipConnection { - """A list of `AppMembership` objects.""" - nodes: [AppMembership]! +"""A connection to a list of `BillingModule` values.""" +type BillingModuleConnection { + """A list of `BillingModule` objects.""" + nodes: [BillingModule]! """ - A list of edges which contains the `AppMembership` and cursor to aid in pagination. + A list of edges which contains the `BillingModule` and cursor to aid in pagination. """ - edges: [AppMembershipEdge]! + edges: [BillingModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppMembership` you could get from the connection.""" + """The count of *all* `BillingModule` you could get from the connection.""" totalCount: Int! } -"""A `AppMembership` edge in the connection.""" -type AppMembershipEdge { +"""A `BillingModule` edge in the connection.""" +type BillingModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppMembership` at the end of the edge.""" - node: AppMembership + """The `BillingModule` at the end of the edge.""" + node: BillingModule } -"""Methods to use when ordering `AppMembership`.""" -enum AppMembershipOrderBy { +"""Methods to use when ordering `BillingModule`.""" +enum BillingModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - 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 + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + METERS_TABLE_ID_ASC + METERS_TABLE_ID_DESC + METERS_TABLE_NAME_ASC + METERS_TABLE_NAME_DESC + PLAN_SUBSCRIPTIONS_TABLE_ID_ASC + PLAN_SUBSCRIPTIONS_TABLE_ID_DESC + PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC + PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC + LEDGER_TABLE_ID_ASC + LEDGER_TABLE_ID_DESC + LEDGER_TABLE_NAME_ASC + LEDGER_TABLE_NAME_DESC + BALANCES_TABLE_ID_ASC + BALANCES_TABLE_ID_DESC + BALANCES_TABLE_NAME_ASC + BALANCES_TABLE_NAME_DESC + METER_CREDITS_TABLE_ID_ASC + METER_CREDITS_TABLE_ID_DESC + METER_CREDITS_TABLE_NAME_ASC + METER_CREDITS_TABLE_NAME_DESC + METER_SOURCES_TABLE_ID_ASC + METER_SOURCES_TABLE_ID_DESC + METER_SOURCES_TABLE_NAME_ASC + METER_SOURCES_TABLE_NAME_DESC + RECORD_USAGE_FUNCTION_ASC + RECORD_USAGE_FUNCTION_DESC + PREFIX_ASC + PREFIX_DESC } """A connection to a list of `BillingProviderModule` values.""" @@ -36664,7 +37583,7 @@ type Mutation { ): InitEmptyRepoPayload """ - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. """ constructBlueprint( """ @@ -36710,12 +37629,30 @@ type Mutation { """ input: ProvisionSpatialRelationInput! ): ProvisionSpatialRelationPayload + signInCrossOrigin( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInCrossOriginInput! + ): SignInCrossOriginPayload bootstrapUser( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: BootstrapUserInput! ): BootstrapUserPayload + signUp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignUpInput! + ): SignUpPayload + signIn( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInInput! + ): SignInPayload setFieldOrder( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -36814,12 +37751,6 @@ type Mutation { """ input: ApplyRlsInput! ): ApplyRlsPayload - signInCrossOrigin( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignInCrossOriginInput! - ): SignInCrossOriginPayload "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 events/analytics (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" createUserDatabase( @@ -36840,36 +37771,12 @@ type Mutation { """ input: CreateApiKeyInput! ): CreateApiKeyPayload - 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 - signUp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignUpInput! - ): SignUpPayload requestCrossOriginToken( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: RequestCrossOriginTokenInput! ): RequestCrossOriginTokenPayload - signIn( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SignInInput! - ): SignInPayload """ Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -36880,6 +37787,18 @@ type Mutation { """ input: ProvisionTableInput! ): ProvisionTablePayload + 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 """Creates a single `DefaultIdsModule`.""" createDefaultIdsModule( @@ -36889,14 +37808,6 @@ type Mutation { input: CreateDefaultIdsModuleInput! ): CreateDefaultIdsModulePayload - """Creates a single `RoleType`.""" - createRoleType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRoleTypeInput! - ): CreateRoleTypePayload - """Creates a single `AppLimitCreditRedemption`.""" createAppLimitCreditRedemption( """ @@ -36977,13 +37888,21 @@ type Mutation { input: CreateStoreInput! ): CreateStorePayload - """Creates a single `EncryptedSecretsModule`.""" - createEncryptedSecretsModule( + """Creates a single `ConfigSecretsOrgModule`.""" + createConfigSecretsOrgModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateEncryptedSecretsModuleInput! - ): CreateEncryptedSecretsModulePayload + input: CreateConfigSecretsOrgModuleInput! + ): CreateConfigSecretsOrgModulePayload + + """Creates a single `ConfigSecretsUserModule`.""" + createConfigSecretsUserModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateConfigSecretsUserModuleInput! + ): CreateConfigSecretsUserModulePayload """Creates a single `MembershipTypesModule`.""" createMembershipTypesModule( @@ -37025,13 +37944,13 @@ type Mutation { input: CreateSiteModuleInput! ): CreateSiteModulePayload - """Creates a single `AppLimitCreditCode`.""" - createAppLimitCreditCode( + """Creates a single `RoleType`.""" + createRoleType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditCodeInput! - ): CreateAppLimitCreditCodePayload + input: CreateRoleTypeInput! + ): CreateRoleTypePayload """Creates a single `SchemaGrant`.""" createSchemaGrant( @@ -37097,62 +38016,6 @@ type Mutation { input: CreateOrgPermissionDefaultInput! ): CreateOrgPermissionDefaultPayload - """Creates a single `AppPermission`.""" - createAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionInput! - ): CreateAppPermissionPayload - - """Creates a single `OrgPermission`.""" - createOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgPermissionInput! - ): CreateOrgPermissionPayload - - """Creates a single `AppLimitCapsDefault`.""" - createAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCapsDefaultInput! - ): CreateAppLimitCapsDefaultPayload - - """Creates a single `OrgLimitCapsDefault`.""" - createOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCapsDefaultInput! - ): CreateOrgLimitCapsDefaultPayload - - """Creates a single `AppLimitCap`.""" - createAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitCapInput! - ): CreateAppLimitCapPayload - - """Creates a single `OrgLimitCap`.""" - createOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitCapInput! - ): CreateOrgLimitCapPayload - - """Creates a single `MembershipType`.""" - createMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMembershipTypeInput! - ): CreateMembershipTypePayload - """Creates a single `MigrateFile`.""" createMigrateFile( """ @@ -37233,6 +38096,14 @@ type Mutation { input: CreateWebauthnCredentialsModuleInput! ): CreateWebauthnCredentialsModulePayload + """Creates a single `AppMembershipDefault`.""" + createAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipDefaultInput! + ): CreateAppMembershipDefaultPayload + """Creates a single `OrgAdminGrant`.""" createOrgAdminGrant( """ @@ -37241,6 +38112,14 @@ type Mutation { input: CreateOrgAdminGrantInput! ): CreateOrgAdminGrantPayload + """Creates a single `OrgMembershipDefault`.""" + createOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipDefaultInput! + ): CreateOrgMembershipDefaultPayload + """Creates a single `OrgOwnerGrant`.""" createOrgOwnerGrant( """ @@ -37257,37 +38136,37 @@ type Mutation { input: CreateNodeTypeRegistryInput! ): CreateNodeTypeRegistryPayload - """Creates a single `AppLimitDefault`.""" - createAppLimitDefault( + """Creates a single `AppLimitCapsDefault`.""" + createAppLimitCapsDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitDefaultInput! - ): CreateAppLimitDefaultPayload + input: CreateAppLimitCapsDefaultInput! + ): CreateAppLimitCapsDefaultPayload - """Creates a single `OrgLimitDefault`.""" - createOrgLimitDefault( + """Creates a single `OrgLimitCapsDefault`.""" + createOrgLimitCapsDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitDefaultInput! - ): CreateOrgLimitDefaultPayload + input: CreateOrgLimitCapsDefaultInput! + ): CreateOrgLimitCapsDefaultPayload - """Creates a single `AppLimitCreditCodeItem`.""" - createAppLimitCreditCodeItem( + """Creates a single `AppLimitCap`.""" + createAppLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditCodeItemInput! - ): CreateAppLimitCreditCodeItemPayload + input: CreateAppLimitCapInput! + ): CreateAppLimitCapPayload - """Creates a single `AppLimitWarning`.""" - createAppLimitWarning( + """Creates a single `OrgLimitCap`.""" + createOrgLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitWarningInput! - ): CreateAppLimitWarningPayload + input: CreateOrgLimitCapInput! + ): CreateOrgLimitCapPayload """Creates a single `UserConnectedAccount`.""" createUserConnectedAccount( @@ -37313,45 +38192,45 @@ type Mutation { input: CreateCryptoAddressesModuleInput! ): CreateCryptoAddressesModulePayload - """Creates a single `CryptoAddress`.""" - createCryptoAddress( + """Creates a single `OrgChartEdge`.""" + createOrgChartEdge( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateCryptoAddressInput! - ): CreateCryptoAddressPayload + input: CreateOrgChartEdgeInput! + ): CreateOrgChartEdgePayload - """Creates a single `AgentMessage`.""" - createAgentMessage( + """Creates a single `CryptoAddress`.""" + createCryptoAddress( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAgentMessageInput! - ): CreateAgentMessagePayload + input: CreateCryptoAddressInput! + ): CreateCryptoAddressPayload - """Creates a single `AppLimitCredit`.""" - createAppLimitCredit( + """Creates a single `AppLimitCreditCodeItem`.""" + createAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitCreditInput! - ): CreateAppLimitCreditPayload + input: CreateAppLimitCreditCodeItemInput! + ): CreateAppLimitCreditCodeItemPayload - """Creates a single `OrgLimitWarning`.""" - createOrgLimitWarning( + """Creates a single `AppLimitDefault`.""" + createAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitWarningInput! - ): CreateOrgLimitWarningPayload + input: CreateAppLimitDefaultInput! + ): CreateAppLimitDefaultPayload - """Creates a single `OrgLimitCredit`.""" - createOrgLimitCredit( + """Creates a single `OrgLimitDefault`.""" + createOrgLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitCreditInput! - ): CreateOrgLimitCreditPayload + input: CreateOrgLimitDefaultInput! + ): CreateOrgLimitDefaultPayload """Creates a single `Object`.""" createObject( @@ -37361,13 +38240,37 @@ type Mutation { input: CreateObjectInput! ): CreateObjectPayload - """Creates a single `SiteMetadatum`.""" - createSiteMetadatum( + """Creates a single `AppPermission`.""" + createAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateSiteMetadatumInput! - ): CreateSiteMetadatumPayload + input: CreateAppPermissionInput! + ): CreateAppPermissionPayload + + """Creates a single `OrgPermission`.""" + createOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionInput! + ): CreateOrgPermissionPayload + + """Creates a single `AppLimitCreditCode`.""" + createAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitCreditCodeInput! + ): CreateAppLimitCreditCodePayload + + """Creates a single `AppLimitWarning`.""" + createAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitWarningInput! + ): CreateAppLimitWarningPayload """Creates a single `FullTextSearch`.""" createFullTextSearch( @@ -37393,6 +38296,14 @@ type Mutation { input: CreateCommitInput! ): CreateCommitPayload + """Creates a single `SiteMetadatum`.""" + createSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteMetadatumInput! + ): CreateSiteMetadatumPayload + """Creates a single `PubkeySetting`.""" createPubkeySetting( """ @@ -37425,45 +38336,45 @@ type Mutation { input: CreatePhoneNumberInput! ): CreatePhoneNumberPayload - """Creates a single `UsageSnapshot`.""" - createUsageSnapshot( + """Creates a single `AppLimitCredit`.""" + createAppLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateUsageSnapshotInput! - ): CreateUsageSnapshotPayload + input: CreateAppLimitCreditInput! + ): CreateAppLimitCreditPayload - """Creates a single `AppClaimedInvite`.""" - createAppClaimedInvite( + """Creates a single `OrgLimitCredit`.""" + createOrgLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppClaimedInviteInput! - ): CreateAppClaimedInvitePayload + input: CreateOrgLimitCreditInput! + ): CreateOrgLimitCreditPayload - """Creates a single `AppMembershipDefault`.""" - createAppMembershipDefault( + """Creates a single `AppClaimedInvite`.""" + createAppClaimedInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppMembershipDefaultInput! - ): CreateAppMembershipDefaultPayload + input: CreateAppClaimedInviteInput! + ): CreateAppClaimedInvitePayload - """Creates a single `OrgMembershipDefault`.""" - createOrgMembershipDefault( + """Creates a single `OrgLimitWarning`.""" + createOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipDefaultInput! - ): CreateOrgMembershipDefaultPayload + input: CreateOrgLimitWarningInput! + ): CreateOrgLimitWarningPayload - """Creates a single `AuditLog`.""" - createAuditLog( + """Creates a single `MembershipType`.""" + createMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAuditLogInput! - ): CreateAuditLogPayload + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload """Creates a single `Domain`.""" createDomain( @@ -37481,30 +38392,6 @@ type Mutation { input: CreateRlsSettingInput! ): CreateRlsSettingPayload - """Creates a single `AgentTask`.""" - createAgentTask( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAgentTaskInput! - ): CreateAgentTaskPayload - - """Creates a single `AgentThread`.""" - createAgentThread( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAgentThreadInput! - ): CreateAgentThreadPayload - - """Creates a single `Email`.""" - createEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEmailInput! - ): CreateEmailPayload - """Creates a single `AppGrant`.""" createAppGrant( """ @@ -37521,37 +38408,13 @@ type Mutation { input: CreateOrgClaimedInviteInput! ): CreateOrgClaimedInvitePayload - """Creates a single `AppLimitEvent`.""" - createAppLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitEventInput! - ): CreateAppLimitEventPayload - - """Creates a single `OrgLimitEvent`.""" - createOrgLimitEvent( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitEventInput! - ): CreateOrgLimitEventPayload - - """Creates a single `OrgChartEdge`.""" - createOrgChartEdge( + """Creates a single `AuditLogAuth`.""" + createAuditLogAuth( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgChartEdgeInput! - ): CreateOrgChartEdgePayload - - """Creates a single `Partition`.""" - createPartition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePartitionInput! - ): CreatePartitionPayload + input: CreateAuditLogAuthInput! + ): CreateAuditLogAuthPayload """Creates a single `BlueprintConstruction`.""" createBlueprintConstruction( @@ -37577,6 +38440,14 @@ type Mutation { input: CreateSessionsModuleInput! ): CreateSessionsModulePayload + """Creates a single `OrgMemberProfile`.""" + createOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMemberProfileInput! + ): CreateOrgMemberProfilePayload + """Creates a single `OrgGrant`.""" createOrgGrant( """ @@ -37585,6 +38456,22 @@ type Mutation { input: CreateOrgGrantInput! ): CreateOrgGrantPayload + """Creates a single `Partition`.""" + createPartition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePartitionInput! + ): CreatePartitionPayload + + """Creates a single `AgentChatModule`.""" + createAgentChatModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentChatModuleInput! + ): CreateAgentChatModulePayload + """Creates a single `Blueprint`.""" createBlueprint( """ @@ -37625,21 +38512,13 @@ type Mutation { input: CreatePlansModuleInput! ): CreatePlansModulePayload - """Creates a single `AppLimit`.""" - createAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitInput! - ): CreateAppLimitPayload - - """Creates a single `OrgMemberProfile`.""" - createOrgMemberProfile( + """Creates a single `Email`.""" + createEmail( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMemberProfileInput! - ): CreateOrgMemberProfilePayload + input: CreateEmailInput! + ): CreateEmailPayload """Creates a single `SqlAction`.""" createSqlAction( @@ -37649,6 +38528,22 @@ type Mutation { input: CreateSqlActionInput! ): CreateSqlActionPayload + """Creates a single `AppLimitEvent`.""" + createAppLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitEventInput! + ): CreateAppLimitEventPayload + + """Creates a single `OrgLimitEvent`.""" + createOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitEventInput! + ): CreateOrgLimitEventPayload + """Creates a single `DatabaseTransfer`.""" createDatabaseTransfer( """ @@ -37665,14 +38560,6 @@ type Mutation { input: CreateDatabaseSettingInput! ): CreateDatabaseSettingPayload - """Creates a single `BillingModule`.""" - createBillingModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateBillingModuleInput! - ): CreateBillingModulePayload - """Creates a single `CryptoAuthModule`.""" createCryptoAuthModule( """ @@ -37697,6 +38584,14 @@ type Mutation { input: CreateInvitesModuleInput! ): CreateInvitesModulePayload + """Creates a single `OrgMembershipSetting`.""" + createOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipSettingInput! + ): CreateOrgMembershipSettingPayload + """Creates a single `SecureTableProvision`.""" createSecureTableProvision( """ @@ -37705,37 +38600,53 @@ type Mutation { input: CreateSecureTableProvisionInput! ): CreateSecureTableProvisionPayload - """Creates a single `OrgLimitAggregate`.""" - createOrgLimitAggregate( + """Creates a single `AppLimit`.""" + createAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitAggregateInput! - ): CreateOrgLimitAggregatePayload + input: CreateAppLimitInput! + ): CreateAppLimitPayload - """Creates a single `OrgLimit`.""" - createOrgLimit( + """Creates a single `ApiSetting`.""" + createApiSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitInput! - ): CreateOrgLimitPayload + input: CreateApiSettingInput! + ): CreateApiSettingPayload - """Creates a single `AstMigration`.""" - createAstMigration( + """Creates a single `ComputeLogModule`.""" + createComputeLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAstMigrationInput! - ): CreateAstMigrationPayload + input: CreateComputeLogModuleInput! + ): CreateComputeLogModulePayload - """Creates a single `ApiSetting`.""" - createApiSetting( + """Creates a single `InferenceLogModule`.""" + createInferenceLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateApiSettingInput! - ): CreateApiSettingPayload + input: CreateInferenceLogModuleInput! + ): CreateInferenceLogModulePayload + + """Creates a single `StorageLogModule`.""" + createStorageLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateStorageLogModuleInput! + ): CreateStorageLogModulePayload + + """Creates a single `TransferLogModule`.""" + createTransferLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTransferLogModuleInput! + ): CreateTransferLogModulePayload """Creates a single `Enum`.""" createEnum( @@ -37745,13 +38656,21 @@ type Mutation { input: CreateEnumInput! ): CreateEnumPayload - """Creates a single `User`.""" - createUser( + """Creates a single `OrgLimitAggregate`.""" + createOrgLimitAggregate( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateUserInput! - ): CreateUserPayload + input: CreateOrgLimitAggregateInput! + ): CreateOrgLimitAggregatePayload + + """Creates a single `OrgLimit`.""" + createOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitInput! + ): CreateOrgLimitPayload """Creates a single `View`.""" createView( @@ -37769,21 +38688,21 @@ type Mutation { input: CreateWebauthnAuthModuleInput! ): CreateWebauthnAuthModulePayload - """Creates a single `AppInvite`.""" - createAppInvite( + """Creates a single `AppMembership`.""" + createAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppInviteInput! - ): CreateAppInvitePayload + input: CreateAppMembershipInput! + ): CreateAppMembershipPayload - """Creates a single `OrgMembershipSetting`.""" - createOrgMembershipSetting( + """Creates a single `User`.""" + createUser( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipSettingInput! - ): CreateOrgMembershipSettingPayload + input: CreateUserInput! + ): CreateUserPayload """Creates a single `App`.""" createApp( @@ -37801,6 +38720,14 @@ type Mutation { input: CreateSiteInput! ): CreateSitePayload + """Creates a single `DbUsageModule`.""" + createDbUsageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDbUsageModuleInput! + ): CreateDbUsageModulePayload + """Creates a single `NotificationsModule`.""" createNotificationsModule( """ @@ -37817,6 +38744,14 @@ type Mutation { input: CreatePermissionsModuleInput! ): CreatePermissionsModulePayload + """Creates a single `AstMigration`.""" + createAstMigration( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAstMigrationInput! + ): CreateAstMigrationPayload + """Creates a single `WebauthnCredential`.""" createWebauthnCredential( """ @@ -37881,13 +38816,21 @@ type Mutation { input: CreateWebauthnSettingInput! ): CreateWebauthnSettingPayload - """Creates a single `AppMembership`.""" - createAppMembership( + """Creates a single `BillingModule`.""" + createBillingModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppMembershipInput! - ): CreateAppMembershipPayload + input: CreateBillingModuleInput! + ): CreateBillingModulePayload + + """Creates a single `OrgMembership`.""" + createOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipInput! + ): CreateOrgMembershipPayload """Creates a single `Schema`.""" createSchema( @@ -37905,13 +38848,13 @@ type Mutation { input: CreateIndexInput! ): CreateIndexPayload - """Creates a single `OrgInvite`.""" - createOrgInvite( + """Creates a single `AppInvite`.""" + createAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgInviteInput! - ): CreateOrgInvitePayload + input: CreateAppInviteInput! + ): CreateAppInvitePayload """Creates a single `BillingProviderModule`.""" createBillingProviderModule( @@ -37945,14 +38888,6 @@ type Mutation { input: CreateProfilesModuleInput! ): CreateProfilesModulePayload - """Creates a single `OrgMembership`.""" - createOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipInput! - ): CreateOrgMembershipPayload - """Creates a single `EmbeddingChunk`.""" createEmbeddingChunk( """ @@ -37969,6 +38904,14 @@ type Mutation { input: CreateForeignKeyConstraintInput! ): CreateForeignKeyConstraintPayload + """Creates a single `OrgInvite`.""" + createOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgInviteInput! + ): CreateOrgInvitePayload + """Creates a single `RelationProvision`.""" createRelationProvision( """ @@ -38017,14 +38960,6 @@ type Mutation { input: CreateLimitsModuleInput! ): CreateLimitsModulePayload - """Creates a single `StorageModule`.""" - createStorageModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateStorageModuleInput! - ): CreateStorageModulePayload - """Creates a single `MembershipsModule`.""" createMembershipsModule( """ @@ -38033,6 +38968,14 @@ type Mutation { input: CreateMembershipsModuleInput! ): CreateMembershipsModulePayload + """Creates a single `StorageModule`.""" + createStorageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateStorageModuleInput! + ): CreateStorageModulePayload + """Creates a single `EventsModule`.""" createEventsModule( """ @@ -38049,14 +38992,6 @@ type Mutation { input: UpdateDefaultIdsModuleInput! ): UpdateDefaultIdsModulePayload - """Updates a single `RoleType` using a unique key and a patch.""" - updateRoleType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRoleTypeInput! - ): UpdateRoleTypePayload - """ Updates a single `AppLimitCreditRedemption` using a unique key and a patch. """ @@ -38132,14 +39067,24 @@ type Mutation { ): UpdateStorePayload """ - Updates a single `EncryptedSecretsModule` using a unique key and a patch. + Updates a single `ConfigSecretsOrgModule` using a unique key and a patch. + """ + updateConfigSecretsOrgModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateConfigSecretsOrgModuleInput! + ): UpdateConfigSecretsOrgModulePayload + + """ + Updates a single `ConfigSecretsUserModule` using a unique key and a patch. """ - updateEncryptedSecretsModule( + updateConfigSecretsUserModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateEncryptedSecretsModuleInput! - ): UpdateEncryptedSecretsModulePayload + input: UpdateConfigSecretsUserModuleInput! + ): UpdateConfigSecretsUserModulePayload """ Updates a single `MembershipTypesModule` using a unique key and a patch. @@ -38185,13 +39130,13 @@ type Mutation { input: UpdateSiteModuleInput! ): UpdateSiteModulePayload - """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" - updateAppLimitCreditCode( + """Updates a single `RoleType` using a unique key and a patch.""" + updateRoleType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditCodeInput! - ): UpdateAppLimitCreditCodePayload + input: UpdateRoleTypeInput! + ): UpdateRoleTypePayload """Updates a single `SchemaGrant` using a unique key and a patch.""" updateSchemaGrant( @@ -38263,62 +39208,6 @@ type Mutation { input: UpdateOrgPermissionDefaultInput! ): UpdateOrgPermissionDefaultPayload - """Updates a single `AppPermission` using a unique key and a patch.""" - updateAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppPermissionInput! - ): UpdateAppPermissionPayload - - """Updates a single `OrgPermission` using a unique key and a patch.""" - updateOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionInput! - ): UpdateOrgPermissionPayload - - """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" - updateAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCapsDefaultInput! - ): UpdateAppLimitCapsDefaultPayload - - """Updates a single `OrgLimitCapsDefault` using a unique key and a patch.""" - updateOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCapsDefaultInput! - ): UpdateOrgLimitCapsDefaultPayload - - """Updates a single `AppLimitCap` using a unique key and a patch.""" - updateAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitCapInput! - ): UpdateAppLimitCapPayload - - """Updates a single `OrgLimitCap` using a unique key and a patch.""" - updateOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitCapInput! - ): UpdateOrgLimitCapPayload - - """Updates a single `MembershipType` using a unique key and a patch.""" - updateMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMembershipTypeInput! - ): UpdateMembershipTypePayload - """Updates a single `DefaultPrivilege` using a unique key and a patch.""" updateDefaultPrivilege( """ @@ -38395,6 +39284,16 @@ type Mutation { input: UpdateWebauthnCredentialsModuleInput! ): UpdateWebauthnCredentialsModulePayload + """ + Updates a single `AppMembershipDefault` using a unique key and a patch. + """ + updateAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipDefaultInput! + ): UpdateAppMembershipDefaultPayload + """Updates a single `OrgAdminGrant` using a unique key and a patch.""" updateOrgAdminGrant( """ @@ -38403,6 +39302,16 @@ type Mutation { input: UpdateOrgAdminGrantInput! ): UpdateOrgAdminGrantPayload + """ + Updates a single `OrgMembershipDefault` using a unique key and a patch. + """ + updateOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipDefaultInput! + ): UpdateOrgMembershipDefaultPayload + """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" updateOrgOwnerGrant( """ @@ -38419,39 +39328,37 @@ type Mutation { input: UpdateNodeTypeRegistryInput! ): UpdateNodeTypeRegistryPayload - """Updates a single `AppLimitDefault` using a unique key and a patch.""" - updateAppLimitDefault( + """Updates a single `AppLimitCapsDefault` using a unique key and a patch.""" + updateAppLimitCapsDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitDefaultInput! - ): UpdateAppLimitDefaultPayload + input: UpdateAppLimitCapsDefaultInput! + ): UpdateAppLimitCapsDefaultPayload - """Updates a single `OrgLimitDefault` using a unique key and a patch.""" - updateOrgLimitDefault( + """Updates a single `OrgLimitCapsDefault` using a unique key and a patch.""" + updateOrgLimitCapsDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitDefaultInput! - ): UpdateOrgLimitDefaultPayload + input: UpdateOrgLimitCapsDefaultInput! + ): UpdateOrgLimitCapsDefaultPayload - """ - Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. - """ - updateAppLimitCreditCodeItem( + """Updates a single `AppLimitCap` using a unique key and a patch.""" + updateAppLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditCodeItemInput! - ): UpdateAppLimitCreditCodeItemPayload + input: UpdateAppLimitCapInput! + ): UpdateAppLimitCapPayload - """Updates a single `AppLimitWarning` using a unique key and a patch.""" - updateAppLimitWarning( + """Updates a single `OrgLimitCap` using a unique key and a patch.""" + updateOrgLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitWarningInput! - ): UpdateAppLimitWarningPayload + input: UpdateOrgLimitCapInput! + ): UpdateOrgLimitCapPayload """Updates a single `Database` using a unique key and a patch.""" updateDatabase( @@ -38471,45 +39378,47 @@ type Mutation { input: UpdateCryptoAddressesModuleInput! ): UpdateCryptoAddressesModulePayload - """Updates a single `CryptoAddress` using a unique key and a patch.""" - updateCryptoAddress( + """Updates a single `OrgChartEdge` using a unique key and a patch.""" + updateOrgChartEdge( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateCryptoAddressInput! - ): UpdateCryptoAddressPayload + input: UpdateOrgChartEdgeInput! + ): UpdateOrgChartEdgePayload - """Updates a single `AgentMessage` using a unique key and a patch.""" - updateAgentMessage( + """Updates a single `CryptoAddress` using a unique key and a patch.""" + updateCryptoAddress( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAgentMessageInput! - ): UpdateAgentMessagePayload + input: UpdateCryptoAddressInput! + ): UpdateCryptoAddressPayload - """Updates a single `AppLimitCredit` using a unique key and a patch.""" - updateAppLimitCredit( + """ + Updates a single `AppLimitCreditCodeItem` using a unique key and a patch. + """ + updateAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitCreditInput! - ): UpdateAppLimitCreditPayload + input: UpdateAppLimitCreditCodeItemInput! + ): UpdateAppLimitCreditCodeItemPayload - """Updates a single `OrgLimitWarning` using a unique key and a patch.""" - updateOrgLimitWarning( + """Updates a single `AppLimitDefault` using a unique key and a patch.""" + updateAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitWarningInput! - ): UpdateOrgLimitWarningPayload + input: UpdateAppLimitDefaultInput! + ): UpdateAppLimitDefaultPayload - """Updates a single `OrgLimitCredit` using a unique key and a patch.""" - updateOrgLimitCredit( + """Updates a single `OrgLimitDefault` using a unique key and a patch.""" + updateOrgLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitCreditInput! - ): UpdateOrgLimitCreditPayload + input: UpdateOrgLimitDefaultInput! + ): UpdateOrgLimitDefaultPayload """Updates a single `Object` using a unique key and a patch.""" updateObject( @@ -38519,13 +39428,37 @@ type Mutation { input: UpdateObjectInput! ): UpdateObjectPayload - """Updates a single `SiteMetadatum` using a unique key and a patch.""" - updateSiteMetadatum( + """Updates a single `AppPermission` using a unique key and a patch.""" + updateAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateSiteMetadatumInput! - ): UpdateSiteMetadatumPayload + input: UpdateAppPermissionInput! + ): UpdateAppPermissionPayload + + """Updates a single `OrgPermission` using a unique key and a patch.""" + updateOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionInput! + ): UpdateOrgPermissionPayload + + """Updates a single `AppLimitCreditCode` using a unique key and a patch.""" + updateAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitCreditCodeInput! + ): UpdateAppLimitCreditCodePayload + + """Updates a single `AppLimitWarning` using a unique key and a patch.""" + updateAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitWarningInput! + ): UpdateAppLimitWarningPayload """Updates a single `FullTextSearch` using a unique key and a patch.""" updateFullTextSearch( @@ -38551,6 +39484,14 @@ type Mutation { input: UpdateCommitInput! ): UpdateCommitPayload + """Updates a single `SiteMetadatum` using a unique key and a patch.""" + updateSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteMetadatumInput! + ): UpdateSiteMetadatumPayload + """Updates a single `PubkeySetting` using a unique key and a patch.""" updatePubkeySetting( """ @@ -38583,49 +39524,45 @@ type Mutation { input: UpdatePhoneNumberInput! ): UpdatePhoneNumberPayload - """Updates a single `UsageSnapshot` using a unique key and a patch.""" - updateUsageSnapshot( + """Updates a single `AppLimitCredit` using a unique key and a patch.""" + updateAppLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateUsageSnapshotInput! - ): UpdateUsageSnapshotPayload + input: UpdateAppLimitCreditInput! + ): UpdateAppLimitCreditPayload - """Updates a single `AppClaimedInvite` using a unique key and a patch.""" - updateAppClaimedInvite( + """Updates a single `OrgLimitCredit` using a unique key and a patch.""" + updateOrgLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppClaimedInviteInput! - ): UpdateAppClaimedInvitePayload + input: UpdateOrgLimitCreditInput! + ): UpdateOrgLimitCreditPayload - """ - Updates a single `AppMembershipDefault` using a unique key and a patch. - """ - updateAppMembershipDefault( + """Updates a single `AppClaimedInvite` using a unique key and a patch.""" + updateAppClaimedInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppMembershipDefaultInput! - ): UpdateAppMembershipDefaultPayload + input: UpdateAppClaimedInviteInput! + ): UpdateAppClaimedInvitePayload - """ - Updates a single `OrgMembershipDefault` using a unique key and a patch. - """ - updateOrgMembershipDefault( + """Updates a single `OrgLimitWarning` using a unique key and a patch.""" + updateOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipDefaultInput! - ): UpdateOrgMembershipDefaultPayload + input: UpdateOrgLimitWarningInput! + ): UpdateOrgLimitWarningPayload - """Updates a single `AuditLog` using a unique key and a patch.""" - updateAuditLog( + """Updates a single `MembershipType` using a unique key and a patch.""" + updateMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAuditLogInput! - ): UpdateAuditLogPayload + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload """Updates a single `Domain` using a unique key and a patch.""" updateDomain( @@ -38643,30 +39580,6 @@ type Mutation { input: UpdateRlsSettingInput! ): UpdateRlsSettingPayload - """Updates a single `AgentTask` using a unique key and a patch.""" - updateAgentTask( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAgentTaskInput! - ): UpdateAgentTaskPayload - - """Updates a single `AgentThread` using a unique key and a patch.""" - updateAgentThread( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAgentThreadInput! - ): UpdateAgentThreadPayload - - """Updates a single `Email` using a unique key and a patch.""" - updateEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEmailInput! - ): UpdateEmailPayload - """Updates a single `AppGrant` using a unique key and a patch.""" updateAppGrant( """ @@ -38683,21 +39596,13 @@ type Mutation { input: UpdateOrgClaimedInviteInput! ): UpdateOrgClaimedInvitePayload - """Updates a single `OrgChartEdge` using a unique key and a patch.""" - updateOrgChartEdge( + """Updates a single `AuditLogAuth` using a unique key and a patch.""" + updateAuditLogAuth( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgChartEdgeInput! - ): UpdateOrgChartEdgePayload - - """Updates a single `Partition` using a unique key and a patch.""" - updatePartition( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePartitionInput! - ): UpdatePartitionPayload + input: UpdateAuditLogAuthInput! + ): UpdateAuditLogAuthPayload """ Updates a single `BlueprintConstruction` using a unique key and a patch. @@ -38725,6 +39630,14 @@ type Mutation { input: UpdateSessionsModuleInput! ): UpdateSessionsModulePayload + """Updates a single `OrgMemberProfile` using a unique key and a patch.""" + updateOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMemberProfileInput! + ): UpdateOrgMemberProfilePayload + """Updates a single `OrgGrant` using a unique key and a patch.""" updateOrgGrant( """ @@ -38733,6 +39646,22 @@ type Mutation { input: UpdateOrgGrantInput! ): UpdateOrgGrantPayload + """Updates a single `Partition` using a unique key and a patch.""" + updatePartition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePartitionInput! + ): UpdatePartitionPayload + + """Updates a single `AgentChatModule` using a unique key and a patch.""" + updateAgentChatModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentChatModuleInput! + ): UpdateAgentChatModulePayload + """Updates a single `Blueprint` using a unique key and a patch.""" updateBlueprint( """ @@ -38777,21 +39706,29 @@ type Mutation { input: UpdatePlansModuleInput! ): UpdatePlansModulePayload - """Updates a single `AppLimit` using a unique key and a patch.""" - updateAppLimit( + """Updates a single `Email` using a unique key and a patch.""" + updateEmail( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitInput! - ): UpdateAppLimitPayload + input: UpdateEmailInput! + ): UpdateEmailPayload - """Updates a single `OrgMemberProfile` using a unique key and a patch.""" - updateOrgMemberProfile( + """Updates a single `AppLimitEvent` using a unique key and a patch.""" + updateAppLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMemberProfileInput! - ): UpdateOrgMemberProfilePayload + input: UpdateAppLimitEventInput! + ): UpdateAppLimitEventPayload + + """Updates a single `OrgLimitEvent` using a unique key and a patch.""" + updateOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitEventInput! + ): UpdateOrgLimitEventPayload """Updates a single `DatabaseTransfer` using a unique key and a patch.""" updateDatabaseTransfer( @@ -38809,14 +39746,6 @@ type Mutation { input: UpdateDatabaseSettingInput! ): UpdateDatabaseSettingPayload - """Updates a single `BillingModule` using a unique key and a patch.""" - updateBillingModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateBillingModuleInput! - ): UpdateBillingModulePayload - """Updates a single `CryptoAuthModule` using a unique key and a patch.""" updateCryptoAuthModule( """ @@ -38844,30 +39773,32 @@ type Mutation { ): UpdateInvitesModulePayload """ - Updates a single `SecureTableProvision` using a unique key and a patch. + Updates a single `OrgMembershipSetting` using a unique key and a patch. """ - updateSecureTableProvision( + updateOrgMembershipSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateSecureTableProvisionInput! - ): UpdateSecureTableProvisionPayload + input: UpdateOrgMembershipSettingInput! + ): UpdateOrgMembershipSettingPayload - """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" - updateOrgLimitAggregate( + """ + 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: UpdateOrgLimitAggregateInput! - ): UpdateOrgLimitAggregatePayload + input: UpdateSecureTableProvisionInput! + ): UpdateSecureTableProvisionPayload - """Updates a single `OrgLimit` using a unique key and a patch.""" - updateOrgLimit( + """Updates a single `AppLimit` using a unique key and a patch.""" + updateAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitInput! - ): UpdateOrgLimitPayload + input: UpdateAppLimitInput! + ): UpdateAppLimitPayload """Updates a single `ApiSetting` using a unique key and a patch.""" updateApiSetting( @@ -38877,6 +39808,38 @@ type Mutation { input: UpdateApiSettingInput! ): UpdateApiSettingPayload + """Updates a single `ComputeLogModule` using a unique key and a patch.""" + updateComputeLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateComputeLogModuleInput! + ): UpdateComputeLogModulePayload + + """Updates a single `InferenceLogModule` using a unique key and a patch.""" + updateInferenceLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInferenceLogModuleInput! + ): UpdateInferenceLogModulePayload + + """Updates a single `StorageLogModule` using a unique key and a patch.""" + updateStorageLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateStorageLogModuleInput! + ): UpdateStorageLogModulePayload + + """Updates a single `TransferLogModule` using a unique key and a patch.""" + updateTransferLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTransferLogModuleInput! + ): UpdateTransferLogModulePayload + """Updates a single `Enum` using a unique key and a patch.""" updateEnum( """ @@ -38885,13 +39848,21 @@ type Mutation { input: UpdateEnumInput! ): UpdateEnumPayload - """Updates a single `User` using a unique key and a patch.""" - updateUser( + """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" + updateOrgLimitAggregate( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateUserInput! - ): UpdateUserPayload + input: UpdateOrgLimitAggregateInput! + ): UpdateOrgLimitAggregatePayload + + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload """Updates a single `View` using a unique key and a patch.""" updateView( @@ -38909,23 +39880,21 @@ type Mutation { input: UpdateWebauthnAuthModuleInput! ): UpdateWebauthnAuthModulePayload - """Updates a single `AppInvite` using a unique key and a patch.""" - updateAppInvite( + """Updates a single `AppMembership` using a unique key and a patch.""" + updateAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppInviteInput! - ): UpdateAppInvitePayload + input: UpdateAppMembershipInput! + ): UpdateAppMembershipPayload - """ - Updates a single `OrgMembershipSetting` using a unique key and a patch. - """ - updateOrgMembershipSetting( + """Updates a single `User` using a unique key and a patch.""" + updateUser( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipSettingInput! - ): UpdateOrgMembershipSettingPayload + input: UpdateUserInput! + ): UpdateUserPayload """Updates a single `App` using a unique key and a patch.""" updateApp( @@ -38943,6 +39912,14 @@ type Mutation { input: UpdateSiteInput! ): UpdateSitePayload + """Updates a single `DbUsageModule` using a unique key and a patch.""" + updateDbUsageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDbUsageModuleInput! + ): UpdateDbUsageModulePayload + """Updates a single `NotificationsModule` using a unique key and a patch.""" updateNotificationsModule( """ @@ -39025,13 +40002,21 @@ type Mutation { input: UpdateWebauthnSettingInput! ): UpdateWebauthnSettingPayload - """Updates a single `AppMembership` using a unique key and a patch.""" - updateAppMembership( + """Updates a single `BillingModule` using a unique key and a patch.""" + updateBillingModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppMembershipInput! - ): UpdateAppMembershipPayload + input: UpdateBillingModuleInput! + ): UpdateBillingModulePayload + + """Updates a single `OrgMembership` using a unique key and a patch.""" + updateOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipInput! + ): UpdateOrgMembershipPayload """Updates a single `Schema` using a unique key and a patch.""" updateSchema( @@ -39049,13 +40034,13 @@ type Mutation { input: UpdateIndexInput! ): UpdateIndexPayload - """Updates a single `OrgInvite` using a unique key and a patch.""" - updateOrgInvite( + """Updates a single `AppInvite` using a unique key and a patch.""" + updateAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgInviteInput! - ): UpdateOrgInvitePayload + input: UpdateAppInviteInput! + ): UpdateAppInvitePayload """ Updates a single `BillingProviderModule` using a unique key and a patch. @@ -39091,14 +40076,6 @@ type Mutation { input: UpdateProfilesModuleInput! ): UpdateProfilesModulePayload - """Updates a single `OrgMembership` using a unique key and a patch.""" - updateOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipInput! - ): UpdateOrgMembershipPayload - """Updates a single `EmbeddingChunk` using a unique key and a patch.""" updateEmbeddingChunk( """ @@ -39117,6 +40094,14 @@ type Mutation { input: UpdateForeignKeyConstraintInput! ): UpdateForeignKeyConstraintPayload + """Updates a single `OrgInvite` using a unique key and a patch.""" + updateOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgInviteInput! + ): UpdateOrgInvitePayload + """Updates a single `RelationProvision` using a unique key and a patch.""" updateRelationProvision( """ @@ -39165,14 +40150,6 @@ type Mutation { input: UpdateLimitsModuleInput! ): UpdateLimitsModulePayload - """Updates a single `StorageModule` using a unique key and a patch.""" - updateStorageModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateStorageModuleInput! - ): UpdateStorageModulePayload - """Updates a single `MembershipsModule` using a unique key and a patch.""" updateMembershipsModule( """ @@ -39181,6 +40158,14 @@ type Mutation { input: UpdateMembershipsModuleInput! ): UpdateMembershipsModulePayload + """Updates a single `StorageModule` using a unique key and a patch.""" + updateStorageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateStorageModuleInput! + ): UpdateStorageModulePayload + """Updates a single `EventsModule` using a unique key and a patch.""" updateEventsModule( """ @@ -39197,14 +40182,6 @@ type Mutation { input: DeleteDefaultIdsModuleInput! ): DeleteDefaultIdsModulePayload - """Deletes a single `RoleType` using a unique key.""" - deleteRoleType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRoleTypeInput! - ): DeleteRoleTypePayload - """Deletes a single `AppLimitCreditRedemption` using a unique key.""" deleteAppLimitCreditRedemption( """ @@ -39277,13 +40254,21 @@ type Mutation { input: DeleteStoreInput! ): DeleteStorePayload - """Deletes a single `EncryptedSecretsModule` using a unique key.""" - deleteEncryptedSecretsModule( + """Deletes a single `ConfigSecretsOrgModule` using a unique key.""" + deleteConfigSecretsOrgModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConfigSecretsOrgModuleInput! + ): DeleteConfigSecretsOrgModulePayload + + """Deletes a single `ConfigSecretsUserModule` using a unique key.""" + deleteConfigSecretsUserModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteEncryptedSecretsModuleInput! - ): DeleteEncryptedSecretsModulePayload + input: DeleteConfigSecretsUserModuleInput! + ): DeleteConfigSecretsUserModulePayload """Deletes a single `MembershipTypesModule` using a unique key.""" deleteMembershipTypesModule( @@ -39325,13 +40310,13 @@ type Mutation { input: DeleteSiteModuleInput! ): DeleteSiteModulePayload - """Deletes a single `AppLimitCreditCode` using a unique key.""" - deleteAppLimitCreditCode( + """Deletes a single `RoleType` using a unique key.""" + deleteRoleType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditCodeInput! - ): DeleteAppLimitCreditCodePayload + input: DeleteRoleTypeInput! + ): DeleteRoleTypePayload """Deletes a single `SchemaGrant` using a unique key.""" deleteSchemaGrant( @@ -39397,62 +40382,6 @@ type Mutation { input: DeleteOrgPermissionDefaultInput! ): DeleteOrgPermissionDefaultPayload - """Deletes a single `AppPermission` using a unique key.""" - deleteAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionInput! - ): DeleteAppPermissionPayload - - """Deletes a single `OrgPermission` using a unique key.""" - deleteOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionInput! - ): DeleteOrgPermissionPayload - - """Deletes a single `AppLimitCapsDefault` using a unique key.""" - deleteAppLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCapsDefaultInput! - ): DeleteAppLimitCapsDefaultPayload - - """Deletes a single `OrgLimitCapsDefault` using a unique key.""" - deleteOrgLimitCapsDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCapsDefaultInput! - ): DeleteOrgLimitCapsDefaultPayload - - """Deletes a single `AppLimitCap` using a unique key.""" - deleteAppLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitCapInput! - ): DeleteAppLimitCapPayload - - """Deletes a single `OrgLimitCap` using a unique key.""" - deleteOrgLimitCap( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitCapInput! - ): DeleteOrgLimitCapPayload - - """Deletes a single `MembershipType` using a unique key.""" - deleteMembershipType( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMembershipTypeInput! - ): DeleteMembershipTypePayload - """Deletes a single `DefaultPrivilege` using a unique key.""" deleteDefaultPrivilege( """ @@ -39525,6 +40454,14 @@ type Mutation { input: DeleteWebauthnCredentialsModuleInput! ): DeleteWebauthnCredentialsModulePayload + """Deletes a single `AppMembershipDefault` using a unique key.""" + deleteAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipDefaultInput! + ): DeleteAppMembershipDefaultPayload + """Deletes a single `OrgAdminGrant` using a unique key.""" deleteOrgAdminGrant( """ @@ -39533,6 +40470,14 @@ type Mutation { input: DeleteOrgAdminGrantInput! ): DeleteOrgAdminGrantPayload + """Deletes a single `OrgMembershipDefault` using a unique key.""" + deleteOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipDefaultInput! + ): DeleteOrgMembershipDefaultPayload + """Deletes a single `OrgOwnerGrant` using a unique key.""" deleteOrgOwnerGrant( """ @@ -39549,37 +40494,37 @@ type Mutation { input: DeleteNodeTypeRegistryInput! ): DeleteNodeTypeRegistryPayload - """Deletes a single `AppLimitDefault` using a unique key.""" - deleteAppLimitDefault( + """Deletes a single `AppLimitCapsDefault` using a unique key.""" + deleteAppLimitCapsDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitDefaultInput! - ): DeleteAppLimitDefaultPayload + input: DeleteAppLimitCapsDefaultInput! + ): DeleteAppLimitCapsDefaultPayload - """Deletes a single `OrgLimitDefault` using a unique key.""" - deleteOrgLimitDefault( + """Deletes a single `OrgLimitCapsDefault` using a unique key.""" + deleteOrgLimitCapsDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitDefaultInput! - ): DeleteOrgLimitDefaultPayload + input: DeleteOrgLimitCapsDefaultInput! + ): DeleteOrgLimitCapsDefaultPayload - """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" - deleteAppLimitCreditCodeItem( + """Deletes a single `AppLimitCap` using a unique key.""" + deleteAppLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditCodeItemInput! - ): DeleteAppLimitCreditCodeItemPayload + input: DeleteAppLimitCapInput! + ): DeleteAppLimitCapPayload - """Deletes a single `AppLimitWarning` using a unique key.""" - deleteAppLimitWarning( + """Deletes a single `OrgLimitCap` using a unique key.""" + deleteOrgLimitCap( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitWarningInput! - ): DeleteAppLimitWarningPayload + input: DeleteOrgLimitCapInput! + ): DeleteOrgLimitCapPayload """Deletes a single `Database` using a unique key.""" deleteDatabase( @@ -39597,45 +40542,45 @@ type Mutation { input: DeleteCryptoAddressesModuleInput! ): DeleteCryptoAddressesModulePayload - """Deletes a single `CryptoAddress` using a unique key.""" - deleteCryptoAddress( + """Deletes a single `OrgChartEdge` using a unique key.""" + deleteOrgChartEdge( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteCryptoAddressInput! - ): DeleteCryptoAddressPayload + input: DeleteOrgChartEdgeInput! + ): DeleteOrgChartEdgePayload - """Deletes a single `AgentMessage` using a unique key.""" - deleteAgentMessage( + """Deletes a single `CryptoAddress` using a unique key.""" + deleteCryptoAddress( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAgentMessageInput! - ): DeleteAgentMessagePayload + input: DeleteCryptoAddressInput! + ): DeleteCryptoAddressPayload - """Deletes a single `AppLimitCredit` using a unique key.""" - deleteAppLimitCredit( + """Deletes a single `AppLimitCreditCodeItem` using a unique key.""" + deleteAppLimitCreditCodeItem( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitCreditInput! - ): DeleteAppLimitCreditPayload + input: DeleteAppLimitCreditCodeItemInput! + ): DeleteAppLimitCreditCodeItemPayload - """Deletes a single `OrgLimitWarning` using a unique key.""" - deleteOrgLimitWarning( + """Deletes a single `AppLimitDefault` using a unique key.""" + deleteAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitWarningInput! - ): DeleteOrgLimitWarningPayload + input: DeleteAppLimitDefaultInput! + ): DeleteAppLimitDefaultPayload - """Deletes a single `OrgLimitCredit` using a unique key.""" - deleteOrgLimitCredit( + """Deletes a single `OrgLimitDefault` using a unique key.""" + deleteOrgLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitCreditInput! - ): DeleteOrgLimitCreditPayload + input: DeleteOrgLimitDefaultInput! + ): DeleteOrgLimitDefaultPayload """Deletes a single `Object` using a unique key.""" deleteObject( @@ -39645,13 +40590,37 @@ type Mutation { input: DeleteObjectInput! ): DeleteObjectPayload - """Deletes a single `SiteMetadatum` using a unique key.""" - deleteSiteMetadatum( + """Deletes a single `AppPermission` using a unique key.""" + deleteAppPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSiteMetadatumInput! - ): DeleteSiteMetadatumPayload + input: DeleteAppPermissionInput! + ): DeleteAppPermissionPayload + + """Deletes a single `OrgPermission` using a unique key.""" + deleteOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionInput! + ): DeleteOrgPermissionPayload + + """Deletes a single `AppLimitCreditCode` using a unique key.""" + deleteAppLimitCreditCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitCreditCodeInput! + ): DeleteAppLimitCreditCodePayload + + """Deletes a single `AppLimitWarning` using a unique key.""" + deleteAppLimitWarning( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitWarningInput! + ): DeleteAppLimitWarningPayload """Deletes a single `FullTextSearch` using a unique key.""" deleteFullTextSearch( @@ -39677,6 +40646,14 @@ type Mutation { input: DeleteCommitInput! ): DeleteCommitPayload + """Deletes a single `SiteMetadatum` using a unique key.""" + deleteSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteMetadatumInput! + ): DeleteSiteMetadatumPayload + """Deletes a single `PubkeySetting` using a unique key.""" deletePubkeySetting( """ @@ -39709,45 +40686,45 @@ type Mutation { input: DeletePhoneNumberInput! ): DeletePhoneNumberPayload - """Deletes a single `UsageSnapshot` using a unique key.""" - deleteUsageSnapshot( + """Deletes a single `AppLimitCredit` using a unique key.""" + deleteAppLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteUsageSnapshotInput! - ): DeleteUsageSnapshotPayload + input: DeleteAppLimitCreditInput! + ): DeleteAppLimitCreditPayload - """Deletes a single `AppClaimedInvite` using a unique key.""" - deleteAppClaimedInvite( + """Deletes a single `OrgLimitCredit` using a unique key.""" + deleteOrgLimitCredit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppClaimedInviteInput! - ): DeleteAppClaimedInvitePayload + input: DeleteOrgLimitCreditInput! + ): DeleteOrgLimitCreditPayload - """Deletes a single `AppMembershipDefault` using a unique key.""" - deleteAppMembershipDefault( + """Deletes a single `AppClaimedInvite` using a unique key.""" + deleteAppClaimedInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppMembershipDefaultInput! - ): DeleteAppMembershipDefaultPayload + input: DeleteAppClaimedInviteInput! + ): DeleteAppClaimedInvitePayload - """Deletes a single `OrgMembershipDefault` using a unique key.""" - deleteOrgMembershipDefault( + """Deletes a single `OrgLimitWarning` using a unique key.""" + deleteOrgLimitWarning( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipDefaultInput! - ): DeleteOrgMembershipDefaultPayload + input: DeleteOrgLimitWarningInput! + ): DeleteOrgLimitWarningPayload - """Deletes a single `AuditLog` using a unique key.""" - deleteAuditLog( + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAuditLogInput! - ): DeleteAuditLogPayload + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload """Deletes a single `Domain` using a unique key.""" deleteDomain( @@ -39765,30 +40742,6 @@ type Mutation { input: DeleteRlsSettingInput! ): DeleteRlsSettingPayload - """Deletes a single `AgentTask` using a unique key.""" - deleteAgentTask( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAgentTaskInput! - ): DeleteAgentTaskPayload - - """Deletes a single `AgentThread` using a unique key.""" - deleteAgentThread( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAgentThreadInput! - ): DeleteAgentThreadPayload - - """Deletes a single `Email` using a unique key.""" - deleteEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEmailInput! - ): DeleteEmailPayload - """Deletes a single `AppGrant` using a unique key.""" deleteAppGrant( """ @@ -39805,21 +40758,13 @@ type Mutation { input: DeleteOrgClaimedInviteInput! ): DeleteOrgClaimedInvitePayload - """Deletes a single `OrgChartEdge` using a unique key.""" - deleteOrgChartEdge( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgChartEdgeInput! - ): DeleteOrgChartEdgePayload - - """Deletes a single `Partition` using a unique key.""" - deletePartition( + """Deletes a single `AuditLogAuth` using a unique key.""" + deleteAuditLogAuth( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePartitionInput! - ): DeletePartitionPayload + input: DeleteAuditLogAuthInput! + ): DeleteAuditLogAuthPayload """Deletes a single `BlueprintConstruction` using a unique key.""" deleteBlueprintConstruction( @@ -39845,6 +40790,14 @@ type Mutation { input: DeleteSessionsModuleInput! ): DeleteSessionsModulePayload + """Deletes a single `OrgMemberProfile` using a unique key.""" + deleteOrgMemberProfile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMemberProfileInput! + ): DeleteOrgMemberProfilePayload + """Deletes a single `OrgGrant` using a unique key.""" deleteOrgGrant( """ @@ -39853,6 +40806,22 @@ type Mutation { input: DeleteOrgGrantInput! ): DeleteOrgGrantPayload + """Deletes a single `Partition` using a unique key.""" + deletePartition( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePartitionInput! + ): DeletePartitionPayload + + """Deletes a single `AgentChatModule` using a unique key.""" + deleteAgentChatModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentChatModuleInput! + ): DeleteAgentChatModulePayload + """Deletes a single `Blueprint` using a unique key.""" deleteBlueprint( """ @@ -39893,21 +40862,29 @@ type Mutation { input: DeletePlansModuleInput! ): DeletePlansModulePayload - """Deletes a single `AppLimit` using a unique key.""" - deleteAppLimit( + """Deletes a single `Email` using a unique key.""" + deleteEmail( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitInput! - ): DeleteAppLimitPayload + input: DeleteEmailInput! + ): DeleteEmailPayload - """Deletes a single `OrgMemberProfile` using a unique key.""" - deleteOrgMemberProfile( + """Deletes a single `AppLimitEvent` using a unique key.""" + deleteAppLimitEvent( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMemberProfileInput! - ): DeleteOrgMemberProfilePayload + input: DeleteAppLimitEventInput! + ): DeleteAppLimitEventPayload + + """Deletes a single `OrgLimitEvent` using a unique key.""" + deleteOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitEventInput! + ): DeleteOrgLimitEventPayload """Deletes a single `DatabaseTransfer` using a unique key.""" deleteDatabaseTransfer( @@ -39925,14 +40902,6 @@ type Mutation { input: DeleteDatabaseSettingInput! ): DeleteDatabaseSettingPayload - """Deletes a single `BillingModule` using a unique key.""" - deleteBillingModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteBillingModuleInput! - ): DeleteBillingModulePayload - """Deletes a single `CryptoAuthModule` using a unique key.""" deleteCryptoAuthModule( """ @@ -39957,29 +40926,29 @@ type Mutation { input: DeleteInvitesModuleInput! ): DeleteInvitesModulePayload - """Deletes a single `SecureTableProvision` using a unique key.""" - deleteSecureTableProvision( + """Deletes a single `OrgMembershipSetting` using a unique key.""" + deleteOrgMembershipSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteSecureTableProvisionInput! - ): DeleteSecureTableProvisionPayload + input: DeleteOrgMembershipSettingInput! + ): DeleteOrgMembershipSettingPayload - """Deletes a single `OrgLimitAggregate` using a unique key.""" - deleteOrgLimitAggregate( + """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: DeleteOrgLimitAggregateInput! - ): DeleteOrgLimitAggregatePayload + input: DeleteSecureTableProvisionInput! + ): DeleteSecureTableProvisionPayload - """Deletes a single `OrgLimit` using a unique key.""" - deleteOrgLimit( + """Deletes a single `AppLimit` using a unique key.""" + deleteAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitInput! - ): DeleteOrgLimitPayload + input: DeleteAppLimitInput! + ): DeleteAppLimitPayload """Deletes a single `ApiSetting` using a unique key.""" deleteApiSetting( @@ -39989,6 +40958,38 @@ type Mutation { input: DeleteApiSettingInput! ): DeleteApiSettingPayload + """Deletes a single `ComputeLogModule` using a unique key.""" + deleteComputeLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteComputeLogModuleInput! + ): DeleteComputeLogModulePayload + + """Deletes a single `InferenceLogModule` using a unique key.""" + deleteInferenceLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInferenceLogModuleInput! + ): DeleteInferenceLogModulePayload + + """Deletes a single `StorageLogModule` using a unique key.""" + deleteStorageLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteStorageLogModuleInput! + ): DeleteStorageLogModulePayload + + """Deletes a single `TransferLogModule` using a unique key.""" + deleteTransferLogModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTransferLogModuleInput! + ): DeleteTransferLogModulePayload + """Deletes a single `Enum` using a unique key.""" deleteEnum( """ @@ -39997,13 +40998,21 @@ type Mutation { input: DeleteEnumInput! ): DeleteEnumPayload - """Deletes a single `User` using a unique key.""" - deleteUser( + """Deletes a single `OrgLimitAggregate` using a unique key.""" + deleteOrgLimitAggregate( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteUserInput! - ): DeleteUserPayload + input: DeleteOrgLimitAggregateInput! + ): DeleteOrgLimitAggregatePayload + + """Deletes a single `OrgLimit` using a unique key.""" + deleteOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitInput! + ): DeleteOrgLimitPayload """Deletes a single `View` using a unique key.""" deleteView( @@ -40021,21 +41030,21 @@ type Mutation { input: DeleteWebauthnAuthModuleInput! ): DeleteWebauthnAuthModulePayload - """Deletes a single `AppInvite` using a unique key.""" - deleteAppInvite( + """Deletes a single `AppMembership` using a unique key.""" + deleteAppMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppInviteInput! - ): DeleteAppInvitePayload + input: DeleteAppMembershipInput! + ): DeleteAppMembershipPayload - """Deletes a single `OrgMembershipSetting` using a unique key.""" - deleteOrgMembershipSetting( + """Deletes a single `User` using a unique key.""" + deleteUser( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipSettingInput! - ): DeleteOrgMembershipSettingPayload + input: DeleteUserInput! + ): DeleteUserPayload """Deletes a single `App` using a unique key.""" deleteApp( @@ -40053,6 +41062,14 @@ type Mutation { input: DeleteSiteInput! ): DeleteSitePayload + """Deletes a single `DbUsageModule` using a unique key.""" + deleteDbUsageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDbUsageModuleInput! + ): DeleteDbUsageModulePayload + """Deletes a single `NotificationsModule` using a unique key.""" deleteNotificationsModule( """ @@ -40133,13 +41150,21 @@ type Mutation { input: DeleteWebauthnSettingInput! ): DeleteWebauthnSettingPayload - """Deletes a single `AppMembership` using a unique key.""" - deleteAppMembership( + """Deletes a single `BillingModule` using a unique key.""" + deleteBillingModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppMembershipInput! - ): DeleteAppMembershipPayload + input: DeleteBillingModuleInput! + ): DeleteBillingModulePayload + + """Deletes a single `OrgMembership` using a unique key.""" + deleteOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipInput! + ): DeleteOrgMembershipPayload """Deletes a single `Schema` using a unique key.""" deleteSchema( @@ -40157,13 +41182,13 @@ type Mutation { input: DeleteIndexInput! ): DeleteIndexPayload - """Deletes a single `OrgInvite` using a unique key.""" - deleteOrgInvite( + """Deletes a single `AppInvite` using a unique key.""" + deleteAppInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgInviteInput! - ): DeleteOrgInvitePayload + input: DeleteAppInviteInput! + ): DeleteAppInvitePayload """Deletes a single `BillingProviderModule` using a unique key.""" deleteBillingProviderModule( @@ -40197,14 +41222,6 @@ type Mutation { input: DeleteProfilesModuleInput! ): DeleteProfilesModulePayload - """Deletes a single `OrgMembership` using a unique key.""" - deleteOrgMembership( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipInput! - ): DeleteOrgMembershipPayload - """Deletes a single `EmbeddingChunk` using a unique key.""" deleteEmbeddingChunk( """ @@ -40221,6 +41238,14 @@ type Mutation { input: DeleteForeignKeyConstraintInput! ): DeleteForeignKeyConstraintPayload + """Deletes a single `OrgInvite` using a unique key.""" + deleteOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgInviteInput! + ): DeleteOrgInvitePayload + """Deletes a single `RelationProvision` using a unique key.""" deleteRelationProvision( """ @@ -40269,14 +41294,6 @@ type Mutation { input: DeleteLimitsModuleInput! ): DeleteLimitsModulePayload - """Deletes a single `StorageModule` using a unique key.""" - deleteStorageModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteStorageModuleInput! - ): DeleteStorageModulePayload - """Deletes a single `MembershipsModule` using a unique key.""" deleteMembershipsModule( """ @@ -40285,6 +41302,14 @@ type Mutation { input: DeleteMembershipsModuleInput! ): DeleteMembershipsModulePayload + """Deletes a single `StorageModule` using a unique key.""" + deleteStorageModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteStorageModuleInput! + ): DeleteStorageModulePayload + """Deletes a single `EventsModule` using a unique key.""" deleteEventsModule( """ @@ -40727,7 +41752,7 @@ input FreezeObjectsInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - databaseId: UUID + sId: UUID id: UUID } @@ -40752,7 +41777,7 @@ input InitEmptyRepoInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID } @@ -40857,7 +41882,7 @@ input RemoveNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] } @@ -40923,6 +41948,41 @@ input ProvisionSpatialRelationInput { pParamName: String } +"""The output of our `signInCrossOrigin` mutation.""" +type SignInCrossOriginPayload { + """ + 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: SignInCrossOriginRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignInCrossOriginRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signInCrossOrigin` mutation.""" +input SignInCrossOriginInput { + """ + 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 + credentialKind: String +} + """The output of our `bootstrapUser` mutation.""" type BootstrapUserPayload { """ @@ -40965,6 +42025,86 @@ input BootstrapUserInput { returnApiKey: Boolean } +"""The output of our `signUp` mutation.""" +type SignUpPayload { + """ + 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: SignUpRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignUpRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signUp` mutation.""" +input SignUpInput { + """ + 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 + email: String + password: String + rememberMe: Boolean + credentialKind: String + csrfToken: String + deviceToken: String +} + +"""The output of our `signIn` mutation.""" +type SignInPayload { + """ + 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: SignInRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignInRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean + mfaRequired: Boolean + mfaChallengeToken: String +} + +"""All input for the `signIn` mutation.""" +input SignInInput { + """ + 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 + email: String + password: String + rememberMe: Boolean + credentialKind: String + csrfToken: String + deviceToken: String +} + """The output of our `setFieldOrder` mutation.""" type SetFieldOrderPayload { """ @@ -41117,7 +42257,7 @@ input SetDataAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -41145,7 +42285,7 @@ input SetPropsAndCommitInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID refname: String path: [String] @@ -41208,7 +42348,7 @@ input InsertNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -41238,7 +42378,7 @@ input UpdateNodeAtPathInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID root: UUID path: [String] data: JSON @@ -41268,7 +42408,7 @@ input SetAndCommitInput { payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - dbId: UUID + sId: UUID storeId: UUID refname: String path: [String] @@ -41357,41 +42497,6 @@ input ApplyRlsInput { name: String } -"""The output of our `signInCrossOrigin` mutation.""" -type SignInCrossOriginPayload { - """ - 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: SignInCrossOriginRecord - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -type SignInCrossOriginRecord { - id: UUID - userId: UUID - accessToken: String - accessTokenExpiresAt: Datetime - isVerified: Boolean - totpEnabled: Boolean -} - -"""All input for the `signInCrossOrigin` mutation.""" -input SignInCrossOriginInput { - """ - 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 - credentialKind: String -} - """The output of our `createUserDatabase` mutation.""" type CreateUserDatabasePayload { """ @@ -41488,63 +42593,14 @@ input CreateApiKeyInput { expiresIn: IntervalInput } -"""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. - """ - query: Query -} - -"""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. - """ - clientMutationId: String - email: ConstructiveInternalTypeEmail -} - -"""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 - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""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. - """ - clientMutationId: String - email: ConstructiveInternalTypeEmail -} - -"""The output of our `signUp` mutation.""" -type SignUpPayload { +"""The output of our `requestCrossOriginToken` mutation.""" +type RequestCrossOriginTokenPayload { """ 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: SignUpRecord + result: String """ Our root query field type. Allows us to run any query from our mutation payload. @@ -41552,17 +42608,8 @@ type SignUpPayload { query: Query } -type SignUpRecord { - id: UUID - userId: UUID - accessToken: String - accessTokenExpiresAt: Datetime - isVerified: Boolean - totpEnabled: Boolean -} - -"""All input for the `signUp` mutation.""" -input SignUpInput { +"""All input for the `requestCrossOriginToken` mutation.""" +input RequestCrossOriginTokenInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -41570,20 +42617,18 @@ input SignUpInput { clientMutationId: String email: String password: String + origin: ConstructiveInternalTypeOrigin rememberMe: Boolean - credentialKind: String - csrfToken: String - deviceToken: String } -"""The output of our `requestCrossOriginToken` mutation.""" -type RequestCrossOriginTokenPayload { +"""The output of our `provisionTable` mutation.""" +type ProvisionTablePayload { """ 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: String + result: [ProvisionTableRecord] """ Our root query field type. Allows us to run any query from our mutation payload. @@ -41591,27 +42636,41 @@ type RequestCrossOriginTokenPayload { query: Query } -"""All input for the `requestCrossOriginToken` mutation.""" -input RequestCrossOriginTokenInput { +type ProvisionTableRecord { + outTableId: UUID + outFields: [UUID] +} + +"""All input for the `provisionTable` mutation.""" +input ProvisionTableInput { """ 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 - email: String - password: String - origin: ConstructiveInternalTypeOrigin - rememberMe: Boolean + databaseId: UUID + schemaId: UUID + tableName: String + tableId: UUID + nodes: JSON + fields: JSON + policies: JSON + grants: JSON + useRls: Boolean + indexes: JSON + fullTextSearches: JSON + uniqueConstraints: JSON + description: String } -"""The output of our `signIn` mutation.""" -type SignInPayload { +"""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: SignInRecord + result: Boolean """ Our root query field type. Allows us to run any query from our mutation payload. @@ -41619,40 +42678,23 @@ type SignInPayload { query: Query } -type SignInRecord { - id: UUID - userId: UUID - accessToken: String - accessTokenExpiresAt: Datetime - isVerified: Boolean - totpEnabled: Boolean - mfaRequired: Boolean - mfaChallengeToken: String -} - -"""All input for the `signIn` mutation.""" -input SignInInput { +"""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. """ clientMutationId: String - email: String - password: String - rememberMe: Boolean - credentialKind: String - csrfToken: String - deviceToken: String + email: ConstructiveInternalTypeEmail } -"""The output of our `provisionTable` mutation.""" -type ProvisionTablePayload { +"""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: [ProvisionTableRecord] """ Our root query field type. Allows us to run any query from our mutation payload. @@ -41660,31 +42702,14 @@ type ProvisionTablePayload { query: Query } -type ProvisionTableRecord { - outTableId: UUID - outFields: [UUID] -} - -"""All input for the `provisionTable` mutation.""" -input ProvisionTableInput { +"""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. """ clientMutationId: String - databaseId: UUID - schemaId: UUID - tableName: String - tableId: UUID - nodes: JSON - fields: JSON - policies: JSON - grants: JSON - useRls: Boolean - indexes: JSON - fullTextSearches: JSON - uniqueConstraints: JSON - description: String + email: ConstructiveInternalTypeEmail } """The output of our create `DefaultIdsModule` mutation.""" @@ -41728,47 +42753,6 @@ input DefaultIdsModuleInput { databaseId: UUID! } -"""The output of our create `RoleType` mutation.""" -type CreateRoleTypePayload { - """ - 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 `RoleType` that was created by this mutation.""" - roleType: RoleType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge -} - -"""All input for the create `RoleType` mutation.""" -input CreateRoleTypeInput { - """ - 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 `RoleType` to be created by this mutation.""" - roleType: RoleTypeInput! -} - -"""An input for mutations affecting `RoleType`""" -input RoleTypeInput { - id: Int! - name: String! -} - """The output of our create `AppLimitCreditRedemption` mutation.""" type CreateAppLimitCreditRedemptionPayload { """ @@ -42182,7 +43166,7 @@ input RefInput { """The name of the ref or branch""" name: String! - databaseId: UUID! + scopeId: UUID! storeId: UUID! commitId: UUID } @@ -42230,51 +43214,95 @@ input StoreInput { """The name of the store (e.g., metaschema, migrations).""" name: String! - """The database this store belongs to.""" - databaseId: UUID! + """The scope this store belongs to.""" + scopeId: UUID! """The current head tree_id for this store.""" hash: UUID createdAt: Datetime } -"""The output of our create `EncryptedSecretsModule` mutation.""" -type CreateEncryptedSecretsModulePayload { +"""The output of our create `ConfigSecretsOrgModule` mutation.""" +type CreateConfigSecretsOrgModulePayload { """ 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 `EncryptedSecretsModule` that was created by this mutation.""" - encryptedSecretsModule: EncryptedSecretsModule + """The `ConfigSecretsOrgModule` that was created by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EncryptedSecretsModule`. May be used by Relay 1.""" - encryptedSecretsModuleEdge( - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleEdge + """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" + configSecretsOrgModuleEdge( + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleEdge } -"""All input for the create `EncryptedSecretsModule` mutation.""" -input CreateEncryptedSecretsModuleInput { +"""All input for the create `ConfigSecretsOrgModule` mutation.""" +input CreateConfigSecretsOrgModuleInput { """ 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 `EncryptedSecretsModule` to be created by this mutation.""" - encryptedSecretsModule: EncryptedSecretsModuleInput! + """The `ConfigSecretsOrgModule` to be created by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModuleInput! } -"""An input for mutations affecting `EncryptedSecretsModule`""" -input EncryptedSecretsModuleInput { +"""An input for mutations affecting `ConfigSecretsOrgModule`""" +input ConfigSecretsOrgModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our create `ConfigSecretsUserModule` mutation.""" +type CreateConfigSecretsUserModulePayload { + """ + 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 `ConfigSecretsUserModule` that was created by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge +} + +"""All input for the create `ConfigSecretsUserModule` mutation.""" +input CreateConfigSecretsUserModuleInput { + """ + 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 `ConfigSecretsUserModule` to be created by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModuleInput! +} + +"""An input for mutations affecting `ConfigSecretsUserModule`""" +input ConfigSecretsUserModuleInput { id: UUID databaseId: UUID! schemaId: UUID @@ -42519,58 +43547,45 @@ input SiteModuleInput { data: JSON! } -"""The output of our create `AppLimitCreditCode` mutation.""" -type CreateAppLimitCreditCodePayload { +"""The output of our create `RoleType` mutation.""" +type CreateRoleTypePayload { """ 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 `AppLimitCreditCode` that was created by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `RoleType` that was created by this mutation.""" + roleType: RoleType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge } -"""All input for the create `AppLimitCreditCode` mutation.""" -input CreateAppLimitCreditCodeInput { +"""All input for the create `RoleType` mutation.""" +input CreateRoleTypeInput { """ 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 `AppLimitCreditCode` to be created by this mutation.""" - appLimitCreditCode: AppLimitCreditCodeInput! + """The `RoleType` to be created by this mutation.""" + roleType: RoleTypeInput! } -"""An input for mutations affecting `AppLimitCreditCode`""" -input AppLimitCreditCodeInput { - id: UUID - - """Human-readable credit code (case-insensitive, unique)""" - code: String! - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int - - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int - - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime +"""An input for mutations affecting `RoleType`""" +input RoleTypeInput { + id: Int! + name: String! } """The output of our create `SchemaGrant` mutation.""" @@ -42954,380 +43969,6 @@ input OrgPermissionDefaultInput { entityId: UUID! } -"""The output of our create `AppPermission` mutation.""" -type CreateAppPermissionPayload { - """ - 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 `AppPermission` that was created by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the create `AppPermission` mutation.""" -input CreateAppPermissionInput { - """ - 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 `AppPermission` to be created by this mutation.""" - appPermission: AppPermissionInput! -} - -"""An input for mutations affecting `AppPermission`""" -input AppPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our create `OrgPermission` mutation.""" -type CreateOrgPermissionPayload { - """ - 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 `OrgPermission` that was created by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the create `OrgPermission` mutation.""" -input CreateOrgPermissionInput { - """ - 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 `OrgPermission` to be created by this mutation.""" - orgPermission: OrgPermissionInput! -} - -"""An input for mutations affecting `OrgPermission`""" -input OrgPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our create `AppLimitCapsDefault` mutation.""" -type CreateAppLimitCapsDefaultPayload { - """ - 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 `AppLimitCapsDefault` that was created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge -} - -"""All input for the create `AppLimitCapsDefault` mutation.""" -input CreateAppLimitCapsDefaultInput { - """ - 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 `AppLimitCapsDefault` to be created by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefaultInput! -} - -"""An input for mutations affecting `AppLimitCapsDefault`""" -input AppLimitCapsDefaultInput { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our create `OrgLimitCapsDefault` mutation.""" -type CreateOrgLimitCapsDefaultPayload { - """ - 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 `OrgLimitCapsDefault` that was created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge -} - -"""All input for the create `OrgLimitCapsDefault` mutation.""" -input CreateOrgLimitCapsDefaultInput { - """ - 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 `OrgLimitCapsDefault` to be created by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefaultInput! -} - -"""An input for mutations affecting `OrgLimitCapsDefault`""" -input OrgLimitCapsDefaultInput { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String! - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our create `AppLimitCap` mutation.""" -type CreateAppLimitCapPayload { - """ - 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 `AppLimitCap` that was created by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the create `AppLimitCap` mutation.""" -input CreateAppLimitCapInput { - """ - 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 `AppLimitCap` to be created by this mutation.""" - appLimitCap: AppLimitCapInput! -} - -"""An input for mutations affecting `AppLimitCap`""" -input AppLimitCapInput { - id: UUID - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our create `OrgLimitCap` mutation.""" -type CreateOrgLimitCapPayload { - """ - 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 `OrgLimitCap` that was created by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the create `OrgLimitCap` mutation.""" -input CreateOrgLimitCapInput { - """ - 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 `OrgLimitCap` to be created by this mutation.""" - orgLimitCap: OrgLimitCapInput! -} - -"""An input for mutations affecting `OrgLimitCap`""" -input OrgLimitCapInput { - id: UUID - - """Name identifier of the cap being overridden""" - name: String! - - """Entity this cap override applies to""" - entityId: UUID! - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our create `MembershipType` mutation.""" -type CreateMembershipTypePayload { - """ - 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 `MembershipType` that was created by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the create `MembershipType` mutation.""" -input CreateMembershipTypeInput { - """ - 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 `MembershipType` to be created by this mutation.""" - membershipType: MembershipTypeInput! -} - -"""An input for mutations affecting `MembershipType`""" -input MembershipTypeInput { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean -} - """The output of our create `MigrateFile` mutation.""" type CreateMigrateFilePayload { """ @@ -43795,6 +44436,56 @@ input WebauthnCredentialsModuleInput { tableName: String } +"""The output of our create `AppMembershipDefault` mutation.""" +type CreateAppMembershipDefaultPayload { + """ + 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 `AppMembershipDefault` that was created by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the create `AppMembershipDefault` mutation.""" +input CreateAppMembershipDefaultInput { + """ + 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 `AppMembershipDefault` to be created by this mutation.""" + appMembershipDefault: AppMembershipDefaultInput! +} + +"""An input for mutations affecting `AppMembershipDefault`""" +input AppMembershipDefaultInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """Whether new members are automatically verified upon joining""" + isVerified: Boolean +} + """The output of our create `OrgAdminGrant` mutation.""" type CreateOrgAdminGrantPayload { """ @@ -43847,6 +44538,56 @@ input OrgAdminGrantInput { updatedAt: Datetime } +"""The output of our create `OrgMembershipDefault` mutation.""" +type CreateOrgMembershipDefaultPayload { + """ + 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 `OrgMembershipDefault` that was created by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the create `OrgMembershipDefault` mutation.""" +input CreateOrgMembershipDefaultInput { + """ + 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 `OrgMembershipDefault` to be created by this mutation.""" + orgMembershipDefault: OrgMembershipDefaultInput! +} + +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID! +} + """The output of our create `OrgOwnerGrant` mutation.""" type CreateOrgOwnerGrantPayload { """ @@ -43945,212 +44686,202 @@ input NodeTypeRegistryInput { tags: [String] } -"""The output of our create `AppLimitDefault` mutation.""" -type CreateAppLimitDefaultPayload { +"""The output of our create `AppLimitCapsDefault` mutation.""" +type CreateAppLimitCapsDefaultPayload { """ 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 `AppLimitDefault` that was created by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppLimitCapsDefault` that was created by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge } -"""All input for the create `AppLimitDefault` mutation.""" -input CreateAppLimitDefaultInput { +"""All input for the create `AppLimitCapsDefault` mutation.""" +input CreateAppLimitCapsDefaultInput { """ 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 `AppLimitDefault` to be created by this mutation.""" - appLimitDefault: AppLimitDefaultInput! + """The `AppLimitCapsDefault` to be created by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefaultInput! } -"""An input for mutations affecting `AppLimitDefault`""" -input AppLimitDefaultInput { +"""An input for mutations affecting `AppLimitCapsDefault`""" +input AppLimitCapsDefaultInput { id: UUID - """Name identifier of the limit this default applies to""" + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ name: String! - """Default maximum usage allowed for this limit""" + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt } -"""The output of our create `OrgLimitDefault` mutation.""" -type CreateOrgLimitDefaultPayload { +"""The output of our create `OrgLimitCapsDefault` mutation.""" +type CreateOrgLimitCapsDefaultPayload { """ 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 `OrgLimitDefault` that was created by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `OrgLimitCapsDefault` that was created by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge } -"""All input for the create `OrgLimitDefault` mutation.""" -input CreateOrgLimitDefaultInput { +"""All input for the create `OrgLimitCapsDefault` mutation.""" +input CreateOrgLimitCapsDefaultInput { """ 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 `OrgLimitDefault` to be created by this mutation.""" - orgLimitDefault: OrgLimitDefaultInput! + """The `OrgLimitCapsDefault` to be created by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefaultInput! } -"""An input for mutations affecting `OrgLimitDefault`""" -input OrgLimitDefaultInput { +"""An input for mutations affecting `OrgLimitCapsDefault`""" +input OrgLimitCapsDefaultInput { id: UUID - """Name identifier of the limit this default applies to""" + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ name: String! - """Default maximum usage allowed for this limit""" + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt } -"""The output of our create `AppLimitCreditCodeItem` mutation.""" -type CreateAppLimitCreditCodeItemPayload { +"""The output of our create `AppLimitCap` mutation.""" +type CreateAppLimitCapPayload { """ 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 `AppLimitCreditCodeItem` that was created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `AppLimitCap` that was created by this mutation.""" + appLimitCap: AppLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge } -"""All input for the create `AppLimitCreditCodeItem` mutation.""" -input CreateAppLimitCreditCodeItemInput { +"""All input for the create `AppLimitCap` mutation.""" +input CreateAppLimitCapInput { """ 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 `AppLimitCreditCodeItem` to be created by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItemInput! + """The `AppLimitCap` to be created by this mutation.""" + appLimitCap: AppLimitCapInput! } -"""An input for mutations affecting `AppLimitCreditCodeItem`""" -input AppLimitCreditCodeItemInput { +"""An input for mutations affecting `AppLimitCap`""" +input AppLimitCapInput { id: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID! - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID! + """Name identifier of the cap being overridden""" + name: String! - """Number of credits this item grants per redemption""" - amount: BigInt! + """Entity this cap override applies to""" + entityId: UUID! - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String + """Override cap value for this entity""" + max: BigInt } -"""The output of our create `AppLimitWarning` mutation.""" -type CreateAppLimitWarningPayload { +"""The output of our create `OrgLimitCap` mutation.""" +type CreateOrgLimitCapPayload { """ 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 `AppLimitWarning` that was created by this mutation.""" - appLimitWarning: AppLimitWarning + """The `OrgLimitCap` that was created by this mutation.""" + orgLimitCap: OrgLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge } -"""All input for the create `AppLimitWarning` mutation.""" -input CreateAppLimitWarningInput { +"""All input for the create `OrgLimitCap` mutation.""" +input CreateOrgLimitCapInput { """ 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 `AppLimitWarning` to be created by this mutation.""" - appLimitWarning: AppLimitWarningInput! + """The `OrgLimitCap` to be created by this mutation.""" + orgLimitCap: OrgLimitCapInput! } -"""An input for mutations affecting `AppLimitWarning`""" -input AppLimitWarningInput { +"""An input for mutations affecting `OrgLimitCap`""" +input OrgLimitCapInput { id: UUID - """Limit name this warning applies to (must match a default_limits entry)""" + """Name identifier of the cap being overridden""" name: String! - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt! + """Entity this cap override applies to""" + entityId: UUID! - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String! + """Override cap value for this entity""" + max: BigInt } """The output of our create `UserConnectedAccount` mutation.""" @@ -44272,20 +45003,79 @@ input CreateCryptoAddressesModuleInput { """ clientMutationId: String - """The `CryptoAddressesModule` to be created by this mutation.""" - cryptoAddressesModule: CryptoAddressesModuleInput! + """The `CryptoAddressesModule` to be created by this mutation.""" + cryptoAddressesModule: CryptoAddressesModuleInput! +} + +"""An input for mutations affecting `CryptoAddressesModule`""" +input CryptoAddressesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! + cryptoNetwork: String +} + +"""The output of our create `OrgChartEdge` mutation.""" +type CreateOrgChartEdgePayload { + """ + 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 `OrgChartEdge` that was created by this mutation.""" + orgChartEdge: OrgChartEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge +} + +"""All input for the create `OrgChartEdge` mutation.""" +input CreateOrgChartEdgeInput { + """ + 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 `OrgChartEdge` to be created by this mutation.""" + orgChartEdge: OrgChartEdgeInput! } -"""An input for mutations affecting `CryptoAddressesModule`""" -input CryptoAddressesModuleInput { +"""An input for mutations affecting `OrgChartEdge`""" +input OrgChartEdgeInput { id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - ownerTableId: UUID - tableName: String! - cryptoNetwork: String + createdAt: Datetime + updatedAt: Datetime + + """Organization this hierarchy edge belongs to""" + entityId: UUID! + + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! + + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int } """The output of our create `CryptoAddress` mutation.""" @@ -44347,348 +45137,424 @@ input CryptoAddressInput { updatedAt: Datetime } -"""The output of our create `AgentMessage` mutation.""" -type CreateAgentMessagePayload { +"""The output of our create `AppLimitCreditCodeItem` mutation.""" +type CreateAppLimitCreditCodeItemPayload { """ 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 `AgentMessage` that was created by this mutation.""" - agentMessage: AgentMessage + """The `AppLimitCreditCodeItem` that was created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AgentMessage`. May be used by Relay 1.""" - agentMessageEdge( - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentMessageEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the create `AgentMessage` mutation.""" -input CreateAgentMessageInput { +"""All input for the create `AppLimitCreditCodeItem` mutation.""" +input CreateAppLimitCreditCodeItemInput { """ 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 `AgentMessage` to be created by this mutation.""" - agentMessage: AgentMessageInput! + """The `AppLimitCreditCodeItem` to be created by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItemInput! +} + +"""An input for mutations affecting `AppLimitCreditCodeItem`""" +input AppLimitCreditCodeItemInput { + id: UUID + + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID! + + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID! + + """Number of credits this item grants per redemption""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String } -"""An input for mutations affecting `AgentMessage`""" -input AgentMessageInput { +"""The output of our create `AppLimitDefault` mutation.""" +type CreateAppLimitDefaultPayload { """ - Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - threadId: UUID! + clientMutationId: String + + """The `AppLimitDefault` that was created by this mutation.""" + appLimitDefault: AppLimitDefault """ - Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. + Our root query field type. Allows us to run any query from our mutation payload. """ - entityId: UUID! + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} +"""All input for the create `AppLimitDefault` mutation.""" +input CreateAppLimitDefaultInput { """ - Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - authorRole: String! - id: UUID + clientMutationId: String - """Timestamp when this record was created""" - createdAt: Datetime + """The `AppLimitDefault` to be created by this mutation.""" + appLimitDefault: AppLimitDefaultInput! +} - """Timestamp when this record was last updated""" - updatedAt: Datetime +"""An input for mutations affecting `AppLimitDefault`""" +input AppLimitDefaultInput { + id: UUID - """User who owns this record""" - ownerId: UUID + """Name identifier of the limit this default applies to""" + name: String! + + """Default maximum usage allowed for this limit""" + max: BigInt - """JSON metadata for extensible key-value storage""" - parts: JSON + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""The output of our create `AppLimitCredit` mutation.""" -type CreateAppLimitCreditPayload { +"""The output of our create `OrgLimitDefault` mutation.""" +type CreateOrgLimitDefaultPayload { """ 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 `AppLimitCredit` that was created by this mutation.""" - appLimitCredit: AppLimitCredit + """The `OrgLimitDefault` that was created by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the create `AppLimitCredit` mutation.""" -input CreateAppLimitCreditInput { +"""All input for the create `OrgLimitDefault` mutation.""" +input CreateOrgLimitDefaultInput { """ 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 `AppLimitCredit` to be created by this mutation.""" - appLimitCredit: AppLimitCreditInput! + """The `OrgLimitDefault` to be created by this mutation.""" + orgLimitDefault: OrgLimitDefaultInput! } -"""An input for mutations affecting `AppLimitCredit`""" -input AppLimitCreditInput { +"""An input for mutations affecting `OrgLimitDefault`""" +input OrgLimitDefaultInput { id: UUID - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! + """Name identifier of the limit this default applies to""" + name: String! - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID + """Default maximum usage allowed for this limit""" + max: BigInt - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} +"""The output of our create `Object` mutation.""" +type CreateObjectPayload { """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - creditType: String + clientMutationId: String - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """The `Object` that was created by this mutation.""" + object: Object + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge } -"""The output of our create `OrgLimitWarning` mutation.""" -type CreateOrgLimitWarningPayload { +"""All input for the create `Object` mutation.""" +input CreateObjectInput { + """ + 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 `Object` to be created by this mutation.""" + object: ObjectInput! +} + +"""An input for mutations affecting `Object`""" +input ObjectInput { + id: UUID! + scopeId: UUID! + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +"""The output of our create `AppPermission` mutation.""" +type CreateAppPermissionPayload { """ 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 `OrgLimitWarning` that was created by this mutation.""" - orgLimitWarning: OrgLimitWarning + """The `AppPermission` that was created by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the create `OrgLimitWarning` mutation.""" -input CreateOrgLimitWarningInput { +"""All input for the create `AppPermission` mutation.""" +input CreateAppPermissionInput { """ 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 `OrgLimitWarning` to be created by this mutation.""" - orgLimitWarning: OrgLimitWarningInput! + """The `AppPermission` to be created by this mutation.""" + appPermission: AppPermissionInput! } -"""An input for mutations affecting `OrgLimitWarning`""" -input OrgLimitWarningInput { +"""An input for mutations affecting `AppPermission`""" +input AppPermissionInput { id: UUID - """Limit name this warning applies to (must match a default_limits entry)""" - name: String! - - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String! + """Human-readable permission name (e.g. read, write, manage)""" + name: String """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Position of this permission in the bitmask (1-indexed), must be unique per permission set """ - thresholdValue: BigInt! + bitnum: Int """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations """ - taskIdentifier: String! + bitstr: BitString - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID + """Human-readable description of what this permission allows""" + description: String } -"""The output of our create `OrgLimitCredit` mutation.""" -type CreateOrgLimitCreditPayload { +"""The output of our create `OrgPermission` mutation.""" +type CreateOrgPermissionPayload { """ 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 `OrgLimitCredit` that was created by this mutation.""" - orgLimitCredit: OrgLimitCredit + """The `OrgPermission` that was created by this mutation.""" + orgPermission: OrgPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge } -"""All input for the create `OrgLimitCredit` mutation.""" -input CreateOrgLimitCreditInput { +"""All input for the create `OrgPermission` mutation.""" +input CreateOrgPermissionInput { """ 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 `OrgLimitCredit` to be created by this mutation.""" - orgLimitCredit: OrgLimitCreditInput! + """The `OrgPermission` to be created by this mutation.""" + orgPermission: OrgPermissionInput! } -"""An input for mutations affecting `OrgLimitCredit`""" -input OrgLimitCreditInput { +"""An input for mutations affecting `OrgPermission`""" +input OrgPermissionInput { id: UUID - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID! - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt! + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations """ - creditType: String + bitstr: BitString - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """Human-readable description of what this permission allows""" + description: String } -"""The output of our create `Object` mutation.""" -type CreateObjectPayload { +"""The output of our create `AppLimitCreditCode` mutation.""" +type CreateAppLimitCreditCodePayload { """ 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 `Object` that was created by this mutation.""" - object: Object + """The `AppLimitCreditCode` that was created by this mutation.""" + appLimitCreditCode: AppLimitCreditCode """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Object`. May be used by Relay 1.""" - objectEdge( - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): ObjectEdge + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge } -"""All input for the create `Object` mutation.""" -input CreateObjectInput { +"""All input for the create `AppLimitCreditCode` mutation.""" +input CreateAppLimitCreditCodeInput { """ 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 `Object` to be created by this mutation.""" - object: ObjectInput! + """The `AppLimitCreditCode` to be created by this mutation.""" + appLimitCreditCode: AppLimitCreditCodeInput! } -"""An input for mutations affecting `Object`""" -input ObjectInput { - id: UUID! - databaseId: UUID! - kids: [UUID] - ktree: [String] - data: JSON - frzn: Boolean - createdAt: Datetime +"""An input for mutations affecting `AppLimitCreditCode`""" +input AppLimitCreditCodeInput { + id: UUID + + """Human-readable credit code (case-insensitive, unique)""" + code: String! + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int + + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime } -"""The output of our create `SiteMetadatum` mutation.""" -type CreateSiteMetadatumPayload { +"""The output of our create `AppLimitWarning` mutation.""" +type CreateAppLimitWarningPayload { """ 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 `SiteMetadatum` that was created by this mutation.""" - siteMetadatum: SiteMetadatum + """The `AppLimitWarning` that was created by this mutation.""" + appLimitWarning: AppLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge } -"""All input for the create `SiteMetadatum` mutation.""" -input CreateSiteMetadatumInput { +"""All input for the create `AppLimitWarning` mutation.""" +input CreateAppLimitWarningInput { """ 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 `SiteMetadatum` to be created by this mutation.""" - siteMetadatum: SiteMetadatumInput! + """The `AppLimitWarning` to be created by this mutation.""" + appLimitWarning: AppLimitWarningInput! } -"""An input for mutations affecting `SiteMetadatum`""" -input SiteMetadatumInput { - """Unique identifier for this metadata record""" +"""An input for mutations affecting `AppLimitWarning`""" +input AppLimitWarningInput { id: UUID - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this metadata belongs to""" - siteId: UUID! + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """Page title for SEO (max 120 characters)""" - title: String + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! - """Meta description for SEO and social sharing (max 120 characters)""" - description: String + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt! - """Open Graph image for social media previews""" - ogImage: ConstructiveInternalTypeImage + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String! } """The output of our create `FullTextSearch` mutation.""" @@ -44830,8 +45696,8 @@ input CommitInput { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! storeId: UUID! """Parent commits""" @@ -44848,6 +45714,62 @@ input CommitInput { date: Datetime } +"""The output of our create `SiteMetadatum` mutation.""" +type CreateSiteMetadatumPayload { + """ + 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 `SiteMetadatum` that was created by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the create `SiteMetadatum` mutation.""" +input CreateSiteMetadatumInput { + """ + 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 `SiteMetadatum` to be created by this mutation.""" + siteMetadatum: SiteMetadatumInput! +} + +"""An input for mutations affecting `SiteMetadatum`""" +input SiteMetadatumInput { + """Unique identifier for this metadata record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this metadata belongs to""" + siteId: UUID! + + """Page title for SEO (max 120 characters)""" + title: String + + """Meta description for SEO and social sharing (max 120 characters)""" + description: String + + """Open Graph image for social media previews""" + ogImage: ConstructiveInternalTypeImage +} + """The output of our create `PubkeySetting` mutation.""" type CreatePubkeySettingPayload { """ @@ -45097,68 +46019,121 @@ input PhoneNumberInput { updatedAt: Datetime } -"""The output of our create `UsageSnapshot` mutation.""" -type CreateUsageSnapshotPayload { +"""The output of our create `AppLimitCredit` mutation.""" +type CreateAppLimitCreditPayload { + """ + 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 `AppLimitCredit` that was created by this mutation.""" + appLimitCredit: AppLimitCredit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge +} + +"""All input for the create `AppLimitCredit` mutation.""" +input CreateAppLimitCreditInput { + """ + 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 `AppLimitCredit` to be created by this mutation.""" + appLimitCredit: AppLimitCreditInput! +} + +"""An input for mutations affecting `AppLimitCredit`""" +input AppLimitCreditInput { + id: UUID + + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! + + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String +} + +"""The output of our create `OrgLimitCredit` mutation.""" +type CreateOrgLimitCreditPayload { """ 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 `UsageSnapshot` that was created by this mutation.""" - usageSnapshot: UsageSnapshot + """The `OrgLimitCredit` that was created by this mutation.""" + orgLimitCredit: OrgLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsageSnapshot`. May be used by Relay 1.""" - usageSnapshotEdge( - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsageSnapshotEdge + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge } -"""All input for the create `UsageSnapshot` mutation.""" -input CreateUsageSnapshotInput { +"""All input for the create `OrgLimitCredit` mutation.""" +input CreateOrgLimitCreditInput { """ 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 `UsageSnapshot` to be created by this mutation.""" - usageSnapshot: UsageSnapshotInput! + """The `OrgLimitCredit` to be created by this mutation.""" + orgLimitCredit: OrgLimitCreditInput! } -"""An input for mutations affecting `UsageSnapshot`""" -input UsageSnapshotInput { - """ - The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. - """ - databaseId: UUID! +"""An input for mutations affecting `OrgLimitCredit`""" +input OrgLimitCreditInput { + id: UUID - """ - Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). - """ - metricName: String! + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID! - """ - The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). - """ - metricValue: BigInt + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """ - Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. - """ - dimensions: JSON + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt! """ - When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - capturedAt: Datetime - id: UUID + creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } """The output of our create `AppClaimedInvite` mutation.""" @@ -45212,167 +46187,127 @@ input AppClaimedInviteInput { updatedAt: Datetime } -"""The output of our create `AppMembershipDefault` mutation.""" -type CreateAppMembershipDefaultPayload { +"""The output of our create `OrgLimitWarning` mutation.""" +type CreateOrgLimitWarningPayload { """ 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 `AppMembershipDefault` that was created by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `OrgLimitWarning` that was created by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge } -"""All input for the create `AppMembershipDefault` mutation.""" -input CreateAppMembershipDefaultInput { +"""All input for the create `OrgLimitWarning` mutation.""" +input CreateOrgLimitWarningInput { """ 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 `AppMembershipDefault` to be created by this mutation.""" - appMembershipDefault: AppMembershipDefaultInput! + """The `OrgLimitWarning` to be created by this mutation.""" + orgLimitWarning: OrgLimitWarningInput! } -"""An input for mutations affecting `AppMembershipDefault`""" -input AppMembershipDefaultInput { +"""An input for mutations affecting `OrgLimitWarning`""" +input OrgLimitWarningInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean -} -"""The output of our create `OrgMembershipDefault` mutation.""" -type CreateOrgMembershipDefaultPayload { - """ - 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 + """Limit name this warning applies to (must match a default_limits entry)""" + name: String! - """The `OrgMembershipDefault` that was created by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type """ - query: Query - - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge -} + thresholdValue: BigInt! -"""All input for the create `OrgMembershipDefault` mutation.""" -input CreateOrgMembershipDefaultInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) """ - clientMutationId: String - - """The `OrgMembershipDefault` to be created by this mutation.""" - orgMembershipDefault: OrgMembershipDefaultInput! -} - -"""An input for mutations affecting `OrgMembershipDefault`""" -input OrgMembershipDefaultInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + taskIdentifier: String! - """References the entity these membership defaults apply to""" - entityId: UUID! + """Per-entity override (NULL = scope default for all entities)""" + entityId: UUID } -"""The output of our create `AuditLog` mutation.""" -type CreateAuditLogPayload { +"""The output of our create `MembershipType` mutation.""" +type CreateMembershipTypePayload { """ 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 `AuditLog` that was created by this mutation.""" - auditLog: AuditLog + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the create `AuditLog` mutation.""" -input CreateAuditLogInput { +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { """ 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 `AuditLog` to be created by this mutation.""" - auditLog: AuditLogInput! + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! } -"""An input for mutations affecting `AuditLog`""" -input AuditLogInput { - id: UUID - +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - event: String! - - """User who performed the authentication action; NULL if user was deleted""" - actorId: UUID + id: Int! - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin + """Human-readable name of the membership type""" + name: String! - """Browser or client user-agent string from the request""" - userAgent: String + """Description of what this membership type represents""" + description: String! - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String! - """Whether the authentication attempt succeeded""" - success: Boolean! + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int - """Timestamp when the audit event was recorded""" - createdAt: Datetime + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean } """The output of our create `Domain` mutation.""" @@ -45515,209 +46450,6 @@ input RlsSettingInput { currentIpAddressFunctionId: UUID } -"""The output of our create `AgentTask` mutation.""" -type CreateAgentTaskPayload { - """ - 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 `AgentTask` that was created by this mutation.""" - agentTask: AgentTask - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AgentTask`. May be used by Relay 1.""" - agentTaskEdge( - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentTaskEdge -} - -"""All input for the create `AgentTask` mutation.""" -input CreateAgentTaskInput { - """ - 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 `AgentTask` to be created by this mutation.""" - agentTask: AgentTaskInput! -} - -"""An input for mutations affecting `AgentTask`""" -input AgentTaskInput { - """ - Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. - """ - threadId: UUID! - - """ - Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. - """ - entityId: UUID! - - """Natural-language description of the work to do. Required.""" - description: String! - - """ - Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. - """ - source: String - - """ - Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. - """ - error: String - id: UUID - - """Timestamp when this record was created""" - createdAt: Datetime - - """Timestamp when this record was last updated""" - updatedAt: Datetime - - """User who owns this record""" - ownerId: UUID - - """Current status of this record""" - status: String -} - -"""The output of our create `AgentThread` mutation.""" -type CreateAgentThreadPayload { - """ - 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 `AgentThread` that was created by this mutation.""" - agentThread: AgentThread - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AgentThread`. May be used by Relay 1.""" - agentThreadEdge( - """The method to use when ordering `AgentThread`.""" - orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentThreadEdge -} - -"""All input for the create `AgentThread` mutation.""" -input CreateAgentThreadInput { - """ - 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 `AgentThread` to be created by this mutation.""" - agentThread: AgentThreadInput! -} - -"""An input for mutations affecting `AgentThread`""" -input AgentThreadInput { - """ - Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. - """ - title: String - - """ - Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. - """ - mode: String - - """ - Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. - """ - model: String - - """ - Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. - """ - systemPrompt: String - id: UUID - - """Timestamp when this record was created""" - createdAt: Datetime - - """Timestamp when this record was last updated""" - updatedAt: Datetime - - """User who owns this record within the entity""" - ownerId: UUID - - """Entity this record belongs to""" - entityId: UUID! - - """Current status of this record""" - status: String -} - -"""The output of our create `Email` mutation.""" -type CreateEmailPayload { - """ - 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 `Email` that was created by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the create `Email` mutation.""" -input CreateEmailInput { - """ - 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 `Email` to be created by this mutation.""" - email: EmailInput! -} - -"""An input for mutations affecting `Email`""" -input EmailInput { - 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 - - """Optional user-provided label for this email (e.g. "Work", "Personal").""" - name: String - createdAt: Datetime - updatedAt: Datetime -} - """The output of our create `AppGrant` mutation.""" type CreateAppGrantPayload { """ @@ -45749,308 +46481,142 @@ input CreateAppGrantInput { """ clientMutationId: String - """The `AppGrant` to be created by this mutation.""" - appGrant: AppGrantInput! -} - -"""An input for mutations affecting `AppGrant`""" -input AppGrantInput { - id: UUID - - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean - - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `OrgClaimedInvite` mutation.""" -type CreateOrgClaimedInvitePayload { - """ - 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 `OrgClaimedInvite` that was created by this mutation.""" - orgClaimedInvite: OrgClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge -} - -"""All input for the create `OrgClaimedInvite` mutation.""" -input CreateOrgClaimedInviteInput { - """ - 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 `OrgClaimedInvite` to be created by this mutation.""" - orgClaimedInvite: OrgClaimedInviteInput! -} - -"""An input for mutations affecting `OrgClaimedInvite`""" -input OrgClaimedInviteInput { - id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! -} - -"""The output of our create `AppLimitEvent` mutation.""" -type CreateAppLimitEventPayload { - """ - 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 `AppLimitEvent` that was created by this mutation.""" - appLimitEvent: AppLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `AppLimitEvent` mutation.""" -input CreateAppLimitEventInput { - """ - 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 `AppLimitEvent` to be created by this mutation.""" - appLimitEvent: AppLimitEventInput! -} - -"""An input for mutations affecting `AppLimitEvent`""" -input AppLimitEventInput { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt - - """Usage count before this event""" - numBefore: BigInt - - """Usage count after this event""" - numAfter: BigInt - - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt - - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String -} - -"""The output of our create `OrgLimitEvent` mutation.""" -type CreateOrgLimitEventPayload { - """ - 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 `OrgLimitEvent` that was created by this mutation.""" - orgLimitEvent: OrgLimitEvent - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `OrgLimitEvent` mutation.""" -input CreateOrgLimitEventInput { - """ - 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 `OrgLimitEvent` to be created by this mutation.""" - orgLimitEvent: OrgLimitEventInput! -} - -"""An input for mutations affecting `OrgLimitEvent`""" -input OrgLimitEventInput { - """Limit name this event applies to""" - name: String - - """User who triggered this event; NULL for system/aggregate events""" - actorId: UUID - - """Entity this event applies to; NULL for app-level events""" - entityId: UUID - - """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" - eventType: String - - """Change amount: positive for increment, negative for decrement""" - delta: BigInt + """The `AppGrant` to be created by this mutation.""" + appGrant: AppGrantInput! +} - """Usage count before this event""" - numBefore: BigInt +"""An input for mutations affecting `AppGrant`""" +input AppGrantInput { + id: UUID - """Usage count after this event""" - numAfter: BigInt + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """Max limit ceiling at the time of this event""" - maxAtEvent: BigInt + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """ - Optional reason or source: achievement, invite, plan_change, purchase, etc. - """ - reason: String + """The member receiving or losing the permission grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `OrgChartEdge` mutation.""" -type CreateOrgChartEdgePayload { +"""The output of our create `OrgClaimedInvite` mutation.""" +type CreateOrgClaimedInvitePayload { """ 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 `OrgChartEdge` that was created by this mutation.""" - orgChartEdge: OrgChartEdge + """The `OrgClaimedInvite` that was created by this mutation.""" + orgClaimedInvite: OrgClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge } -"""All input for the create `OrgChartEdge` mutation.""" -input CreateOrgChartEdgeInput { +"""All input for the create `OrgClaimedInvite` mutation.""" +input CreateOrgClaimedInviteInput { """ 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 `OrgChartEdge` to be created by this mutation.""" - orgChartEdge: OrgChartEdgeInput! + """The `OrgClaimedInvite` to be created by this mutation.""" + orgClaimedInvite: OrgClaimedInviteInput! } -"""An input for mutations affecting `OrgChartEdge`""" -input OrgChartEdgeInput { +"""An input for mutations affecting `OrgClaimedInvite`""" +input OrgClaimedInviteInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - - """Organization this hierarchy edge belongs to""" - entityId: UUID! - - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Job title or role name for this position in the org chart""" - positionTitle: String + """User ID of the original invitation sender""" + senderId: UUID - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! } -"""The output of our create `Partition` mutation.""" -type CreatePartitionPayload { +"""The output of our create `AuditLogAuth` mutation.""" +type CreateAuditLogAuthPayload { """ 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 `Partition` that was created by this mutation.""" - partition: Partition + """The `AuditLogAuth` that was created by this mutation.""" + auditLogAuth: AuditLogAuth """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Partition`. May be used by Relay 1.""" - partitionEdge( - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PartitionEdge + """An edge for our `AuditLogAuth`. May be used by Relay 1.""" + auditLogAuthEdge( + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogAuthEdge } -"""All input for the create `Partition` mutation.""" -input CreatePartitionInput { +"""All input for the create `AuditLogAuth` mutation.""" +input CreateAuditLogAuthInput { """ 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 `Partition` to be created by this mutation.""" - partition: PartitionInput! + """The `AuditLogAuth` to be created by this mutation.""" + auditLogAuth: AuditLogAuthInput! } -"""An input for mutations affecting `Partition`""" -input PartitionInput { - id: UUID - databaseId: UUID! - tableId: UUID! - strategy: String! - partitionKeyId: UUID! - interval: String - retention: String - premake: Int - namingPattern: String +"""An input for mutations affecting `AuditLogAuth`""" +input AuditLogAuthInput { createdAt: Datetime - updatedAt: Datetime + + """ + Unique identifier for each audit event (uuidv7 provides temporal ordering) + """ + 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! } """The output of our create `BlueprintConstruction` mutation.""" @@ -46236,6 +46802,74 @@ input SessionsModuleInput { authSettingsTable: String } +"""The output of our create `OrgMemberProfile` mutation.""" +type CreateOrgMemberProfilePayload { + """ + 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 `OrgMemberProfile` that was created by this mutation.""" + orgMemberProfile: OrgMemberProfile + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge +} + +"""All input for the create `OrgMemberProfile` mutation.""" +input CreateOrgMemberProfileInput { + """ + 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 `OrgMemberProfile` to be created by this mutation.""" + orgMemberProfile: OrgMemberProfileInput! +} + +"""An input for mutations affecting `OrgMemberProfile`""" +input OrgMemberProfileInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """References the membership this profile belongs to (1:1)""" + membershipId: UUID! + + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID! + + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID! + + """Display name shown to other entity members""" + displayName: String + + """ + Email address visible to other entity members (auto-populated from verified primary email) + """ + email: String + + """Job title or role description visible to other entity members""" + title: String + + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage +} + """The output of our create `OrgGrant` mutation.""" type CreateOrgGrantPayload { """ @@ -46291,6 +46925,108 @@ input OrgGrantInput { updatedAt: Datetime } +"""The output of our create `Partition` mutation.""" +type CreatePartitionPayload { + """ + 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 `Partition` that was created by this mutation.""" + partition: Partition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Partition`. May be used by Relay 1.""" + partitionEdge( + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PartitionEdge +} + +"""All input for the create `Partition` mutation.""" +input CreatePartitionInput { + """ + 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 `Partition` to be created by this mutation.""" + partition: PartitionInput! +} + +"""An input for mutations affecting `Partition`""" +input PartitionInput { + id: UUID + databaseId: UUID! + tableId: UUID! + strategy: String! + partitionKeyId: UUID! + interval: String + retention: String + retentionKeepTable: Boolean + premake: Int + namingPattern: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AgentChatModule` mutation.""" +type CreateAgentChatModulePayload { + """ + 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 `AgentChatModule` that was created by this mutation.""" + agentChatModule: AgentChatModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentChatModule`. May be used by Relay 1.""" + agentChatModuleEdge( + """The method to use when ordering `AgentChatModule`.""" + orderBy: [AgentChatModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentChatModuleEdge +} + +"""All input for the create `AgentChatModule` mutation.""" +input CreateAgentChatModuleInput { + """ + 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 `AgentChatModule` to be created by this mutation.""" + agentChatModule: AgentChatModuleInput! +} + +"""An input for mutations affecting `AgentChatModule`""" +input AgentChatModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + apiId: UUID + threadTableId: UUID + threadTableName: String + messageTableId: UUID + messageTableName: String + taskTableId: UUID + taskTableName: String + prefix: String +} + """The output of our create `Blueprint` mutation.""" type CreateBlueprintPayload { """ @@ -46580,200 +47316,249 @@ input PlansModuleInput { prefix: String } -"""The output of our create `AppLimit` mutation.""" -type CreateAppLimitPayload { +"""The output of our create `Email` mutation.""" +type CreateEmailPayload { """ 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 `AppLimit` that was created by this mutation.""" - appLimit: AppLimit + """The `Email` that was created by this mutation.""" + email: Email """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge } -"""All input for the create `AppLimit` mutation.""" -input CreateAppLimitInput { +"""All input for the create `Email` mutation.""" +input CreateEmailInput { """ 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 `AppLimit` to be created by this mutation.""" - appLimit: AppLimitInput! + """The `Email` to be created by this mutation.""" + email: EmailInput! } -"""An input for mutations affecting `AppLimit`""" -input AppLimitInput { +"""An input for mutations affecting `Email`""" +input EmailInput { id: UUID + ownerId: UUID - """Name identifier of the limit being tracked""" - name: String + """The email address""" + email: ConstructiveInternalTypeEmail! - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Whether the email address has been verified via confirmation link""" + isVerified: Boolean - """Current usage count for this actor and limit""" - num: BigInt + """Whether this is the user's primary email address""" + isPrimary: Boolean - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt + """Optional user-provided label for this email (e.g. "Work", "Personal").""" + name: String + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our create `SqlAction` mutation.""" +type CreateSqlActionPayload { """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - softMax: BigInt + clientMutationId: String - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """The `SqlAction` that was created by this mutation.""" + sqlAction: SqlAction """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + Our root query field type. Allows us to run any query from our mutation payload. """ - windowDuration: IntervalInput + query: Query +} +"""All input for the create `SqlAction` mutation.""" +input CreateSqlActionInput { """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - planMax: BigInt + clientMutationId: String - """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt + """The `SqlAction` to be created by this mutation.""" + sqlAction: SqlActionInput! +} - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt +"""An input for mutations affecting `SqlAction`""" +input SqlActionInput { + id: Int + name: String + databaseId: UUID + deploy: String + deps: [String] + payload: JSON + content: String + revert: String + verify: String + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID } -"""The output of our create `OrgMemberProfile` mutation.""" -type CreateOrgMemberProfilePayload { +"""The output of our create `AppLimitEvent` mutation.""" +type CreateAppLimitEventPayload { """ 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 `OrgMemberProfile` that was created by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `AppLimitEvent` that was created by this mutation.""" + appLimitEvent: AppLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } -"""All input for the create `OrgMemberProfile` mutation.""" -input CreateOrgMemberProfileInput { +"""All input for the create `AppLimitEvent` mutation.""" +input CreateAppLimitEventInput { """ 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 `OrgMemberProfile` to be created by this mutation.""" - orgMemberProfile: OrgMemberProfileInput! + """The `AppLimitEvent` to be created by this mutation.""" + appLimitEvent: AppLimitEventInput! } -"""An input for mutations affecting `OrgMemberProfile`""" -input OrgMemberProfileInput { - id: UUID +"""An input for mutations affecting `AppLimitEvent`""" +input AppLimitEventInput { createdAt: Datetime - updatedAt: Datetime - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! + """Unique identifier for each limit event""" + id: UUID - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! + """Limit name this event applies to""" + name: String - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """Display name shown to other entity members""" - displayName: String + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Job title or role description visible to other entity members""" - title: String + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Short biography visible to other entity members""" - bio: String + """Usage count before this event""" + numBefore: BigInt - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } -"""The output of our create `SqlAction` mutation.""" -type CreateSqlActionPayload { +"""The output of our create `OrgLimitEvent` mutation.""" +type CreateOrgLimitEventPayload { """ 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 `SqlAction` that was created by this mutation.""" - sqlAction: SqlAction + """The `OrgLimitEvent` that was created by this mutation.""" + orgLimitEvent: OrgLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } -"""All input for the create `SqlAction` mutation.""" -input CreateSqlActionInput { +"""All input for the create `OrgLimitEvent` mutation.""" +input CreateOrgLimitEventInput { """ 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 `SqlAction` to be created by this mutation.""" - sqlAction: SqlActionInput! + """The `OrgLimitEvent` to be created by this mutation.""" + orgLimitEvent: OrgLimitEventInput! } -"""An input for mutations affecting `SqlAction`""" -input SqlActionInput { - id: Int - name: String - databaseId: UUID - deploy: String - deps: [String] - payload: JSON - content: String - revert: String - verify: String +"""An input for mutations affecting `OrgLimitEvent`""" +input OrgLimitEventInput { createdAt: Datetime - action: String - actionId: UUID + + """Unique identifier for each limit event""" + id: UUID + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } """The output of our create `DatabaseTransfer` mutation.""" @@ -46917,59 +47702,6 @@ input DatabaseSettingInput { options: JSON } -"""The output of our create `BillingModule` mutation.""" -type CreateBillingModulePayload { - """ - 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 `BillingModule` that was created by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the create `BillingModule` mutation.""" -input CreateBillingModuleInput { - """ - 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 `BillingModule` to be created by this mutation.""" - billingModule: BillingModuleInput! -} - -"""An input for mutations affecting `BillingModule`""" -input BillingModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - recordUsageFunction: String - prefix: String -} - """The output of our create `CryptoAuthModule` mutation.""" type CreateCryptoAuthModulePayload { """ @@ -47076,7 +47808,9 @@ input DatabaseProvisionModuleInput { """Base domain for the database (e.g., example.com)""" domain: String! - """Array of module IDs to install, or ["all"] for all modules""" + """ + Explicit array of module IDs to install (e.g. users_module, storage_module:full) + """ modules: [String] """Additional configuration options for provisioning""" @@ -47151,215 +47885,219 @@ input InvitesModuleInput { entityTableId: UUID } -"""The output of our create `SecureTableProvision` mutation.""" -type CreateSecureTableProvisionPayload { +"""The output of our create `OrgMembershipSetting` mutation.""" +type CreateOrgMembershipSettingPayload { """ 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 + """The `OrgMembershipSetting` that was created by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ 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 `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the create `SecureTableProvision` mutation.""" -input CreateSecureTableProvisionInput { +"""All input for the create `OrgMembershipSetting` mutation.""" +input CreateOrgMembershipSettingInput { """ 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! + """The `OrgMembershipSetting` to be created by this mutation.""" + orgMembershipSetting: OrgMembershipSettingInput! } -"""An input for mutations affecting `SecureTableProvision`""" -input SecureTableProvisionInput { - """Unique identifier for this provision row.""" +"""An input for mutations affecting `OrgMembershipSetting`""" +input OrgMembershipSettingInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: 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 + """References the entity these settings apply to""" + entityId: UUID! """ - Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ - tableId: UUID + deleteMemberCascadeChildren: Boolean """ - 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. + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners """ - tableName: String + createChildCascadeOwners: Boolean """ - Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - nodes: JSON + createChildCascadeAdmins: Boolean """ - If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members """ - useRls: Boolean + createChildCascadeMembers: Boolean """ - 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). + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) """ - fields: [JSON] + allowExternalMembers: Boolean """ - Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) """ - grants: JSON + inviteProfileAssignmentMode: String """ - Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. """ - policies: JSON + populateMemberEmail: Boolean """ - 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 nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) """ - outFields: [UUID] + limitAllocationMode: String } -"""The output of our create `OrgLimitAggregate` mutation.""" -type CreateOrgLimitAggregatePayload { +"""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 `OrgLimitAggregate` that was created by this mutation.""" - orgLimitAggregate: OrgLimitAggregate + """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 `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge + """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 `OrgLimitAggregate` mutation.""" -input CreateOrgLimitAggregateInput { +"""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 `OrgLimitAggregate` to be created by this mutation.""" - orgLimitAggregate: OrgLimitAggregateInput! + """The `SecureTableProvision` to be created by this mutation.""" + secureTableProvision: SecureTableProvisionInput! } -"""An input for mutations affecting `OrgLimitAggregate`""" -input OrgLimitAggregateInput { +"""An input for mutations affecting `SecureTableProvision`""" +input SecureTableProvisionInput { + """Unique identifier for this provision row.""" id: UUID - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID! + """The database this provision belongs to. Required.""" + databaseId: UUID! - """Current aggregate usage count for this entity and limit""" - num: BigInt + """ + Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. + """ + schemaId: UUID - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt + """ + Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + """ + tableId: UUID - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """ + 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 - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """ + Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). + """ + nodes: JSON """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. """ - windowDuration: IntervalInput + useRls: Boolean """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + 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). """ - planMax: BigInt + fields: [JSON] """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. """ - purchasedCredits: BigInt + grants: JSON """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. """ - periodCredits: BigInt + policies: JSON """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + 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 nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. """ - reserved: BigInt + outFields: [UUID] } -"""The output of our create `OrgLimit` mutation.""" -type CreateOrgLimitPayload { +"""The output of our create `AppLimit` mutation.""" +type CreateAppLimitPayload { """ 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 `OrgLimit` that was created by this mutation.""" - orgLimit: OrgLimit + """The `AppLimit` that was created by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the create `OrgLimit` mutation.""" -input CreateOrgLimitInput { +"""All input for the create `AppLimit` mutation.""" +input CreateAppLimitInput { """ 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 `OrgLimit` to be created by this mutation.""" - orgLimit: OrgLimitInput! + """The `AppLimit` to be created by this mutation.""" + appLimit: AppLimitInput! } -"""An input for mutations affecting `OrgLimit`""" -input OrgLimitInput { +"""An input for mutations affecting `AppLimit`""" +input AppLimitInput { id: UUID """Name identifier of the limit being tracked""" @@ -47395,61 +48133,14 @@ input OrgLimitInput { planMax: BigInt """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. - """ - purchasedCredits: BigInt - - """ - Temporary credits for the current billing window. Resets to 0 on window expiry. - """ - periodCredits: BigInt - entityId: UUID! -} - -"""The output of our create `AstMigration` mutation.""" -type CreateAstMigrationPayload { - """ - 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 `AstMigration` that was created by this mutation.""" - astMigration: AstMigration - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the create `AstMigration` mutation.""" -input CreateAstMigrationInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. """ - clientMutationId: String - - """The `AstMigration` to be created by this mutation.""" - astMigration: AstMigrationInput! -} + purchasedCredits: BigInt -"""An input for mutations affecting `AstMigration`""" -input AstMigrationInput { - id: Int - databaseId: UUID - name: String - requires: [String] - payload: JSON - deploys: String - deploy: JSON - revert: JSON - verify: JSON - createdAt: Datetime - action: String - actionId: UUID - actorId: UUID + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt } """The output of our create `ApiSetting` mutation.""" @@ -47559,6 +48250,222 @@ input ApiSettingInput { options: JSON } +"""The output of our create `ComputeLogModule` mutation.""" +type CreateComputeLogModulePayload { + """ + 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 `ComputeLogModule` that was created by this mutation.""" + computeLogModule: ComputeLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge +} + +"""All input for the create `ComputeLogModule` mutation.""" +input CreateComputeLogModuleInput { + """ + 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 `ComputeLogModule` to be created by this mutation.""" + computeLogModule: ComputeLogModuleInput! +} + +"""An input for mutations affecting `ComputeLogModule`""" +input ComputeLogModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + computeLogTableId: UUID + computeLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String +} + +"""The output of our create `InferenceLogModule` mutation.""" +type CreateInferenceLogModulePayload { + """ + 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 `InferenceLogModule` that was created by this mutation.""" + inferenceLogModule: InferenceLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the create `InferenceLogModule` mutation.""" +input CreateInferenceLogModuleInput { + """ + 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 `InferenceLogModule` to be created by this mutation.""" + inferenceLogModule: InferenceLogModuleInput! +} + +"""An input for mutations affecting `InferenceLogModule`""" +input InferenceLogModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + inferenceLogTableId: UUID + inferenceLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String +} + +"""The output of our create `StorageLogModule` mutation.""" +type CreateStorageLogModulePayload { + """ + 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 `StorageLogModule` that was created by this mutation.""" + storageLogModule: StorageLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageLogModule`. May be used by Relay 1.""" + storageLogModuleEdge( + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageLogModuleEdge +} + +"""All input for the create `StorageLogModule` mutation.""" +input CreateStorageLogModuleInput { + """ + 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 `StorageLogModule` to be created by this mutation.""" + storageLogModule: StorageLogModuleInput! +} + +"""An input for mutations affecting `StorageLogModule`""" +input StorageLogModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + storageLogTableId: UUID + storageLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String +} + +"""The output of our create `TransferLogModule` mutation.""" +type CreateTransferLogModulePayload { + """ + 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 `TransferLogModule` that was created by this mutation.""" + transferLogModule: TransferLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TransferLogModule`. May be used by Relay 1.""" + transferLogModuleEdge( + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TransferLogModuleEdge +} + +"""All input for the create `TransferLogModule` mutation.""" +input CreateTransferLogModuleInput { + """ + 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 `TransferLogModule` to be created by this mutation.""" + transferLogModule: TransferLogModuleInput! +} + +"""An input for mutations affecting `TransferLogModule`""" +input TransferLogModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + transferLogTableId: UUID + transferLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String +} + """The output of our create `Enum` mutation.""" type CreateEnumPayload { """ @@ -47610,50 +48517,170 @@ input EnumInput { tags: [String] } -"""The output of our create `User` mutation.""" -type CreateUserPayload { +"""The output of our create `OrgLimitAggregate` mutation.""" +type CreateOrgLimitAggregatePayload { """ 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 `User` that was created by this mutation.""" - user: User + """The `OrgLimitAggregate` that was created by this mutation.""" + orgLimitAggregate: OrgLimitAggregate """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `User`. May be used by Relay 1.""" - userEdge( - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserEdge + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge } -"""All input for the create `User` mutation.""" -input CreateUserInput { +"""All input for the create `OrgLimitAggregate` mutation.""" +input CreateOrgLimitAggregateInput { """ 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 `User` to be created by this mutation.""" - user: UserInput! + """The `OrgLimitAggregate` to be created by this mutation.""" + orgLimitAggregate: OrgLimitAggregateInput! } -"""An input for mutations affecting `User`""" -input UserInput { +"""An input for mutations affecting `OrgLimitAggregate`""" +input OrgLimitAggregateInput { id: UUID - username: String - displayName: String - profilePicture: ConstructiveInternalTypeImage - type: Int - createdAt: Datetime - updatedAt: Datetime + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """ + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + """ + reserved: BigInt +} + +"""The output of our create `OrgLimit` mutation.""" +type CreateOrgLimitPayload { + """ + 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 `OrgLimit` that was created by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the create `OrgLimit` mutation.""" +input CreateOrgLimitInput { + """ + 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 `OrgLimit` to be created by this mutation.""" + orgLimit: OrgLimitInput! +} + +"""An input for mutations affecting `OrgLimit`""" +input OrgLimitInput { + id: UUID + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + entityId: UUID! } """The output of our create `View` mutation.""" @@ -47766,165 +48793,131 @@ input WebauthnAuthModuleInput { challengeExpiry: IntervalInput } -"""The output of our create `AppInvite` mutation.""" -type CreateAppInvitePayload { +"""The output of our create `AppMembership` mutation.""" +type CreateAppMembershipPayload { """ 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 `AppInvite` that was created by this mutation.""" - appInvite: AppInvite + """The `AppMembership` that was created by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the create `AppInvite` mutation.""" -input CreateAppInviteInput { +"""All input for the create `AppMembership` mutation.""" +input CreateAppMembershipInput { """ 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 `AppInvite` to be created by this mutation.""" - appInvite: AppInviteInput! + """The `AppMembership` to be created by this mutation.""" + appMembership: AppMembershipInput! } -"""An input for mutations affecting `AppInvite`""" -input AppInviteInput { +"""An input for mutations affecting `AppMembership`""" +input AppMembershipInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """User ID of the member who sent this invitation""" - senderId: UUID + """Whether this member has been banned from the entity""" + isBanned: Boolean - """Unique random hex token used to redeem this invitation""" - inviteToken: String + """Whether this membership is temporarily disabled""" + isDisabled: Boolean - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean - """Optional JSON payload of additional invite metadata""" - data: JSON + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + Bitmask of permissions directly granted to this member (not from profiles) """ - profileId: UUID + granted: BitString - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime + """References the user who holds this membership""" + actorId: UUID! + profileId: UUID } -"""The output of our create `OrgMembershipSetting` mutation.""" -type CreateOrgMembershipSettingPayload { +"""The output of our create `User` mutation.""" +type CreateUserPayload { """ 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 `OrgMembershipSetting` that was created by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `User` that was created by this mutation.""" + user: User """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge } -"""All input for the create `OrgMembershipSetting` mutation.""" -input CreateOrgMembershipSettingInput { +"""All input for the create `User` mutation.""" +input CreateUserInput { """ 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 `OrgMembershipSetting` to be created by this mutation.""" - orgMembershipSetting: OrgMembershipSettingInput! + """The `User` to be created by this mutation.""" + user: UserInput! } -"""An input for mutations affecting `OrgMembershipSetting`""" -input OrgMembershipSettingInput { +"""An input for mutations affecting `User`""" +input UserInput { id: UUID + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + type: Int createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID! - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean - - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean - - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String } """The output of our create `App` mutation.""" @@ -48059,6 +49052,62 @@ input SiteInput { dbname: String } +"""The output of our create `DbUsageModule` mutation.""" +type CreateDbUsageModulePayload { + """ + 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 `DbUsageModule` that was created by this mutation.""" + dbUsageModule: DbUsageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge +} + +"""All input for the create `DbUsageModule` mutation.""" +input CreateDbUsageModuleInput { + """ + 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 `DbUsageModule` to be created by this mutation.""" + dbUsageModule: DbUsageModuleInput! +} + +"""An input for mutations affecting `DbUsageModule`""" +input DbUsageModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableStatsLogTableId: UUID + tableStatsLogTableName: String + tableStatsDailyTableId: UUID + tableStatsDailyTableName: String + queryStatsLogTableId: UUID + queryStatsLogTableName: String + queryStatsDailyTableId: UUID + queryStatsDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + prefix: String +} + """The output of our create `NotificationsModule` mutation.""" type CreateNotificationsModulePayload { """ @@ -48171,6 +49220,52 @@ input PermissionsModuleInput { getMaskByName: String } +"""The output of our create `AstMigration` mutation.""" +type CreateAstMigrationPayload { + """ + 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 `AstMigration` that was created by this mutation.""" + astMigration: AstMigration + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `AstMigration` mutation.""" +input CreateAstMigrationInput { + """ + 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 `AstMigration` to be created by this mutation.""" + astMigration: AstMigrationInput! +} + +"""An input for mutations affecting `AstMigration`""" +input AstMigrationInput { + id: Int + databaseId: UUID + name: String + requires: [String] + payload: JSON + deploys: String + deploy: JSON + revert: JSON + verify: JSON + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + """The output of our create `WebauthnCredential` mutation.""" type CreateWebauthnCredentialPayload { """ @@ -48682,43 +49777,100 @@ input WebauthnSettingInput { challengeExpirySeconds: BigInt } -"""The output of our create `AppMembership` mutation.""" -type CreateAppMembershipPayload { +"""The output of our create `BillingModule` mutation.""" +type CreateBillingModulePayload { """ 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 `AppMembership` that was created by this mutation.""" - appMembership: AppMembership + """The `BillingModule` that was created by this mutation.""" + billingModule: BillingModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge } -"""All input for the create `AppMembership` mutation.""" -input CreateAppMembershipInput { +"""All input for the create `BillingModule` mutation.""" +input CreateBillingModuleInput { """ 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 `AppMembership` to be created by this mutation.""" - appMembership: AppMembershipInput! + """The `BillingModule` to be created by this mutation.""" + billingModule: BillingModuleInput! } -"""An input for mutations affecting `AppMembership`""" -input AppMembershipInput { +"""An input for mutations affecting `BillingModule`""" +input BillingModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + meterSourcesTableId: UUID + meterSourcesTableName: String + recordUsageFunction: String + prefix: String +} + +"""The output of our create `OrgMembership` mutation.""" +type CreateOrgMembershipPayload { + """ + 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 `OrgMembership` that was created by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the create `OrgMembership` mutation.""" +input CreateOrgMembershipInput { + """ + 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 `OrgMembership` to be created by this mutation.""" + orgMembership: OrgMembershipInput! +} + +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { id: UUID createdAt: Datetime updatedAt: Datetime @@ -48734,14 +49886,16 @@ input AppMembershipInput { """Whether this membership is temporarily disabled""" isDisabled: Boolean - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - """ Computed field indicating the membership is approved, verified, not banned, and not disabled """ isActive: Boolean + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean + """Whether the actor is the owner of this entity""" isOwner: Boolean @@ -48760,6 +49914,12 @@ input AppMembershipInput { """References the user who holds this membership""" actorId: UUID! + + """References the entity (org or group) this membership belongs to""" + entityId: UUID! + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean profileId: UUID } @@ -48874,43 +50034,43 @@ input IndexInput { updatedAt: Datetime } -"""The output of our create `OrgInvite` mutation.""" -type CreateOrgInvitePayload { +"""The output of our create `AppInvite` mutation.""" +type CreateAppInvitePayload { """ 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 `OrgInvite` that was created by this mutation.""" - orgInvite: OrgInvite + """The `AppInvite` that was created by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the create `OrgInvite` mutation.""" -input CreateOrgInviteInput { +"""All input for the create `AppInvite` mutation.""" +input CreateAppInviteInput { """ 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 `OrgInvite` to be created by this mutation.""" - orgInvite: OrgInviteInput! + """The `AppInvite` to be created by this mutation.""" + appInvite: AppInviteInput! } -"""An input for mutations affecting `OrgInvite`""" -input OrgInviteInput { +"""An input for mutations affecting `AppInvite`""" +input AppInviteInput { id: UUID """Email address of the invited recipient""" @@ -48919,9 +50079,6 @@ input OrgInviteInput { """User ID of the member who sent this invitation""" senderId: UUID - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - """Unique random hex token used to redeem this invitation""" inviteToken: String @@ -48945,16 +50102,10 @@ input OrgInviteInput { """ profileId: UUID - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime updatedAt: Datetime - entityId: UUID! } """The output of our create `BillingProviderModule` mutation.""" @@ -49258,95 +50409,6 @@ input ProfilesModuleInput { prefix: String } -"""The output of our create `OrgMembership` mutation.""" -type CreateOrgMembershipPayload { - """ - 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 `OrgMembership` that was created by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the create `OrgMembership` mutation.""" -input CreateOrgMembershipInput { - """ - 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 `OrgMembership` to be created by this mutation.""" - orgMembership: OrgMembershipInput! -} - -"""An input for mutations affecting `OrgMembership`""" -input OrgMembershipInput { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID! - - """References the entity (org or group) this membership belongs to""" - entityId: UUID! - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID -} - """The output of our create `EmbeddingChunk` mutation.""" type CreateEmbeddingChunkPayload { """ @@ -49464,6 +50526,89 @@ input ForeignKeyConstraintInput { updatedAt: Datetime } +"""The output of our create `OrgInvite` mutation.""" +type CreateOrgInvitePayload { + """ + 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 `OrgInvite` that was created by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the create `OrgInvite` mutation.""" +input CreateOrgInviteInput { + """ + 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 `OrgInvite` to be created by this mutation.""" + orgInvite: OrgInviteInput! +} + +"""An input for mutations affecting `OrgInvite`""" +input OrgInviteInput { + id: UUID + + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID + + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """ + Whether the resulting membership should be read-only when this invite is claimed + """ + isReadOnly: Boolean + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + """The output of our create `RelationProvision` mutation.""" type CreateRelationProvisionPayload { """ @@ -49810,36 +50955,34 @@ input EntityTypeProvisionInput { hasInviteAchievements: Boolean """ - Optional jsonb object for storage module configuration and initial bucket seeding. - Only used when has_storage = true; ignored otherwise. NULL = use defaults. - Recognized keys (all optional): - - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - - download_url_expiry_seconds (integer) presigned GET URL expiry override - - default_max_file_size (bigint) global max file size in bytes for this scope - - allowed_origins (text[]) default CORS origins for all buckets in this scope - - buckets (jsonb[]) array of initial bucket definitions to seed - Each bucket in the buckets array recognizes: - - name (text, required) bucket name e.g. 'documents' - - description (text) human-readable description - - is_public (boolean) whether files are publicly readable (default false) - - allowed_mime_types (text[]) whitelist of MIME types (null = any) - - max_file_size (bigint) max file size in bytes (null = use scope default) - - allowed_origins (text[]) per-bucket CORS override - - provisions (jsonb object) optional: customize storage tables - with additional nodes, fields, grants, and policies. - Keyed by table role: "files", "buckets". - Each value uses the same shape as table_provision: - { nodes, fields, grants, use_rls, policies }. Fanned out - to secure_table_provision targeting the corresponding table. - When a key includes policies[], those REPLACE the default - storage policies for that table; tables without a key still - get defaults. Missing "data" on policy entries is auto-populated - with storage-specific defaults (same as table_provision). - Example: add SearchBm25 for full-text search on files: - {"provisions": {"files": {"nodes": [{"$type": - "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - Example: - storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + Optional JSON array of storage module definitions. Each element provisions a separate + storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + and feature flags. Only used when has_storage = true; ignored otherwise. + NULL = provision a single default storage module with all defaults. + Each array element recognizes (all optional): + - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + Defaults to 'default' (omitted from table names). + Non-default keys become infixes: {prefix}_{key}_buckets. + - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + - download_url_expiry_seconds (integer) presigned GET URL expiry override + - default_max_file_size (bigint) global max file size in bytes for this module + - allowed_origins (text[]) default CORS origins for all buckets in this module + - restrict_reads (boolean) require read_files permission for SELECT on files + - has_path_shares (boolean) enable virtual filesystem + path share policies + - has_versioning (boolean) enable file version chains + - has_content_hash (boolean) enable content hash for dedup + - has_custom_keys (boolean) allow client-provided S3 keys + - has_audit_log (boolean) enable file events audit table + - has_confirm_upload (boolean) enable HeadObject confirmation flow + - confirm_upload_delay (interval) delay before first confirmation attempt + - buckets (jsonb[]) array of initial bucket definitions to seed. + Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + Each value: { nodes, fields, grants, use_rls, policies }. + Example (single module, backward compat): + storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + Example (multi-module): + storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb """ storageConfig: JSON @@ -50199,78 +51342,6 @@ input LimitsModuleInput { actorTableId: UUID } -"""The output of our create `StorageModule` mutation.""" -type CreateStorageModulePayload { - """ - 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 `StorageModule` that was created by this mutation.""" - storageModule: StorageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge -} - -"""All input for the create `StorageModule` mutation.""" -input CreateStorageModuleInput { - """ - 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 `StorageModule` to be created by this mutation.""" - storageModule: StorageModuleInput! -} - -"""An input for mutations affecting `StorageModule`""" -input StorageModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - bucketsTableId: UUID - filesTableId: UUID - bucketsTableName: String - filesTableName: String - membershipType: Int - policies: JSON - skipDefaultPolicyTables: [String] - entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean - hasPathShares: Boolean - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean - hasContentHash: Boolean - hasCustomKeys: Boolean - hasAuditLog: Boolean - hasConfirmUpload: Boolean - confirmUploadDelay: IntervalInput - fileEventsTableId: UUID -} - """The output of our create `MembershipsModule` mutation.""" type CreateMembershipsModulePayload { """ @@ -50344,6 +51415,79 @@ input MembershipsModuleInput { memberProfilesTableId: UUID } +"""The output of our create `StorageModule` mutation.""" +type CreateStorageModulePayload { + """ + 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 `StorageModule` that was created by this mutation.""" + storageModule: StorageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge +} + +"""All input for the create `StorageModule` mutation.""" +input CreateStorageModuleInput { + """ + 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 `StorageModule` to be created by this mutation.""" + storageModule: StorageModuleInput! +} + +"""An input for mutations affecting `StorageModule`""" +input StorageModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + bucketsTableId: UUID + filesTableId: UUID + bucketsTableName: String + filesTableName: String + membershipType: Int + storageKey: String + policies: JSON + skipDefaultPolicyTables: [String] + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean + hasPathShares: Boolean + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean + hasContentHash: Boolean + hasCustomKeys: Boolean + hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput + fileEventsTableId: UUID +} + """The output of our create `EventsModule` mutation.""" type CreateEventsModulePayload { """ @@ -50468,52 +51612,6 @@ input DefaultIdsModulePatch { databaseId: UUID } -"""The output of our update `RoleType` mutation.""" -type UpdateRoleTypePayload { - """ - 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 `RoleType` that was updated by this mutation.""" - roleType: RoleType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge -} - -"""All input for the `updateRoleType` mutation.""" -input UpdateRoleTypeInput { - """ - 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: Int! - - """ - An object where the defined keys will be set on the `RoleType` being updated. - """ - roleTypePatch: RoleTypePatch! -} - -""" -Represents an update to a `RoleType`. Fields that are set will be updated. -""" -input RoleTypePatch { - id: Int - name: String -} - """The output of our update `AppLimitCreditRedemption` mutation.""" type UpdateAppLimitCreditRedemptionPayload { """ @@ -50921,7 +52019,7 @@ input UpdateRefInput { """The primary unique identifier for the ref.""" id: UUID! - databaseId: UUID! + scopeId: UUID! """ An object where the defined keys will be set on the `Ref` being updated. @@ -50936,7 +52034,7 @@ input RefPatch { """The name of the ref or branch""" name: String - databaseId: UUID + scopeId: UUID storeId: UUID commitId: UUID } @@ -50991,39 +52089,39 @@ input StorePatch { """The name of the store (e.g., metaschema, migrations).""" name: String - """The database this store belongs to.""" - databaseId: UUID + """The scope this store belongs to.""" + scopeId: UUID """The current head tree_id for this store.""" hash: UUID createdAt: Datetime } -"""The output of our update `EncryptedSecretsModule` mutation.""" -type UpdateEncryptedSecretsModulePayload { +"""The output of our update `ConfigSecretsOrgModule` mutation.""" +type UpdateConfigSecretsOrgModulePayload { """ 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 `EncryptedSecretsModule` that was updated by this mutation.""" - encryptedSecretsModule: EncryptedSecretsModule + """The `ConfigSecretsOrgModule` that was updated by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EncryptedSecretsModule`. May be used by Relay 1.""" - encryptedSecretsModuleEdge( - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleEdge + """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" + configSecretsOrgModuleEdge( + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleEdge } -"""All input for the `updateEncryptedSecretsModule` mutation.""" -input UpdateEncryptedSecretsModuleInput { +"""All input for the `updateConfigSecretsOrgModule` mutation.""" +input UpdateConfigSecretsOrgModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -51032,15 +52130,64 @@ input UpdateEncryptedSecretsModuleInput { id: UUID! """ - An object where the defined keys will be set on the `EncryptedSecretsModule` being updated. + An object where the defined keys will be set on the `ConfigSecretsOrgModule` being updated. """ - encryptedSecretsModulePatch: EncryptedSecretsModulePatch! + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch! } """ -Represents an update to a `EncryptedSecretsModule`. Fields that are set will be updated. +Represents an update to a `ConfigSecretsOrgModule`. Fields that are set will be updated. """ -input EncryptedSecretsModulePatch { +input ConfigSecretsOrgModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our update `ConfigSecretsUserModule` mutation.""" +type UpdateConfigSecretsUserModulePayload { + """ + 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 `ConfigSecretsUserModule` that was updated by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge +} + +"""All input for the `updateConfigSecretsUserModule` mutation.""" +input UpdateConfigSecretsUserModuleInput { + """ + 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 `ConfigSecretsUserModule` being updated. + """ + configSecretsUserModulePatch: ConfigSecretsUserModulePatch! +} + +""" +Represents an update to a `ConfigSecretsUserModule`. Fields that are set will be updated. +""" +input ConfigSecretsUserModulePatch { id: UUID databaseId: UUID schemaId: UUID @@ -51314,63 +52461,50 @@ input SiteModulePatch { data: JSON } -"""The output of our update `AppLimitCreditCode` mutation.""" -type UpdateAppLimitCreditCodePayload { +"""The output of our update `RoleType` mutation.""" +type UpdateRoleTypePayload { """ 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 `AppLimitCreditCode` that was updated by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `RoleType` that was updated by this mutation.""" + roleType: RoleType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge } -"""All input for the `updateAppLimitCreditCode` mutation.""" -input UpdateAppLimitCreditCodeInput { +"""All input for the `updateRoleType` mutation.""" +input UpdateRoleTypeInput { """ 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! + id: Int! """ - An object where the defined keys will be set on the `AppLimitCreditCode` being updated. + An object where the defined keys will be set on the `RoleType` being updated. """ - appLimitCreditCodePatch: AppLimitCreditCodePatch! + roleTypePatch: RoleTypePatch! } """ -Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. +Represents an update to a `RoleType`. Fields that are set will be updated. """ -input AppLimitCreditCodePatch { - id: UUID - - """Human-readable credit code (case-insensitive, unique)""" - code: String - - """Maximum total redemptions allowed; NULL for unlimited""" - maxRedemptions: Int - - """ - Current number of redemptions (incremented by trigger on credit_redemptions) - """ - currentRedemptions: Int - - """Expiration timestamp; NULL for no expiry""" - expiresAt: Datetime +input RoleTypePatch { + id: Int + name: String } """The output of our update `SchemaGrant` mutation.""" @@ -51794,419 +52928,6 @@ input OrgPermissionDefaultPatch { entityId: UUID } -"""The output of our update `AppPermission` mutation.""" -type UpdateAppPermissionPayload { - """ - 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 `AppPermission` that was updated by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the `updateAppPermission` mutation.""" -input UpdateAppPermissionInput { - """ - 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 `AppPermission` being updated. - """ - appPermissionPatch: AppPermissionPatch! -} - -""" -Represents an update to a `AppPermission`. Fields that are set will be updated. -""" -input AppPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our update `OrgPermission` mutation.""" -type UpdateOrgPermissionPayload { - """ - 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 `OrgPermission` that was updated by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the `updateOrgPermission` mutation.""" -input UpdateOrgPermissionInput { - """ - 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 `OrgPermission` being updated. - """ - orgPermissionPatch: OrgPermissionPatch! -} - -""" -Represents an update to a `OrgPermission`. Fields that are set will be updated. -""" -input OrgPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our update `AppLimitCapsDefault` mutation.""" -type UpdateAppLimitCapsDefaultPayload { - """ - 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 `AppLimitCapsDefault` that was updated by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge -} - -"""All input for the `updateAppLimitCapsDefault` mutation.""" -input UpdateAppLimitCapsDefaultInput { - """ - 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 `AppLimitCapsDefault` being updated. - """ - appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch! -} - -""" -Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. -""" -input AppLimitCapsDefaultPatch { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our update `OrgLimitCapsDefault` mutation.""" -type UpdateOrgLimitCapsDefaultPayload { - """ - 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 `OrgLimitCapsDefault` that was updated by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge -} - -"""All input for the `updateOrgLimitCapsDefault` mutation.""" -input UpdateOrgLimitCapsDefaultInput { - """ - 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 `OrgLimitCapsDefault` being updated. - """ - orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch! -} - -""" -Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. -""" -input OrgLimitCapsDefaultPatch { - id: UUID - - """ - Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) - """ - name: String - - """ - Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. - """ - max: BigInt -} - -"""The output of our update `AppLimitCap` mutation.""" -type UpdateAppLimitCapPayload { - """ - 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 `AppLimitCap` that was updated by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the `updateAppLimitCap` mutation.""" -input UpdateAppLimitCapInput { - """ - 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 `AppLimitCap` being updated. - """ - appLimitCapPatch: AppLimitCapPatch! -} - -""" -Represents an update to a `AppLimitCap`. Fields that are set will be updated. -""" -input AppLimitCapPatch { - id: UUID - - """Name identifier of the cap being overridden""" - name: String - - """Entity this cap override applies to""" - entityId: UUID - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our update `OrgLimitCap` mutation.""" -type UpdateOrgLimitCapPayload { - """ - 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 `OrgLimitCap` that was updated by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the `updateOrgLimitCap` mutation.""" -input UpdateOrgLimitCapInput { - """ - 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 `OrgLimitCap` being updated. - """ - orgLimitCapPatch: OrgLimitCapPatch! -} - -""" -Represents an update to a `OrgLimitCap`. Fields that are set will be updated. -""" -input OrgLimitCapPatch { - id: UUID - - """Name identifier of the cap being overridden""" - name: String - - """Entity this cap override applies to""" - entityId: UUID - - """Override cap value for this entity""" - max: BigInt -} - -"""The output of our update `MembershipType` mutation.""" -type UpdateMembershipTypePayload { - """ - 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 `MembershipType` that was updated by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the `updateMembershipType` mutation.""" -input UpdateMembershipTypeInput { - """ - 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 - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """ - An object where the defined keys will be set on the `MembershipType` being updated. - """ - membershipTypePatch: MembershipTypePatch! -} - -""" -Represents an update to a `MembershipType`. Fields that are set will be updated. -""" -input MembershipTypePatch { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int - - """Human-readable name of the membership type""" - name: String - - """Description of what this membership type represents""" - description: String - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String - - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int - - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean -} - """The output of our update `DefaultPrivilege` mutation.""" type UpdateDefaultPrivilegePayload { """ @@ -52683,6 +53404,61 @@ input WebauthnCredentialsModulePatch { tableName: String } +"""The output of our update `AppMembershipDefault` mutation.""" +type UpdateAppMembershipDefaultPayload { + """ + 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 `AppMembershipDefault` that was updated by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the `updateAppMembershipDefault` mutation.""" +input UpdateAppMembershipDefaultInput { + """ + 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 `AppMembershipDefault` being updated. + """ + appMembershipDefaultPatch: AppMembershipDefaultPatch! +} + +""" +Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. +""" +input AppMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """Whether new members are automatically verified upon joining""" + isVerified: Boolean +} + """The output of our update `OrgAdminGrant` mutation.""" type UpdateOrgAdminGrantPayload { """ @@ -52740,6 +53516,61 @@ input OrgAdminGrantPatch { updatedAt: Datetime } +"""The output of our update `OrgMembershipDefault` mutation.""" +type UpdateOrgMembershipDefaultPayload { + """ + 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 `OrgMembershipDefault` that was updated by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `updateOrgMembershipDefault` mutation.""" +input UpdateOrgMembershipDefaultInput { + """ + 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 `OrgMembershipDefault` being updated. + """ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch! +} + +""" +Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. +""" +input OrgMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID +} + """The output of our update `OrgOwnerGrant` mutation.""" type UpdateOrgOwnerGrantPayload { """ @@ -52848,31 +53679,31 @@ input NodeTypeRegistryPatch { tags: [String] } -"""The output of our update `AppLimitDefault` mutation.""" -type UpdateAppLimitDefaultPayload { +"""The output of our update `AppLimitCapsDefault` mutation.""" +type UpdateAppLimitCapsDefaultPayload { """ 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 `AppLimitDefault` that was updated by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppLimitCapsDefault` that was updated by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge } -"""All input for the `updateAppLimitDefault` mutation.""" -input UpdateAppLimitDefaultInput { +"""All input for the `updateAppLimitCapsDefault` mutation.""" +input UpdateAppLimitCapsDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -52881,52 +53712,53 @@ input UpdateAppLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitDefault` being updated. + An object where the defined keys will be set on the `AppLimitCapsDefault` being updated. """ - appLimitDefaultPatch: AppLimitDefaultPatch! + appLimitCapsDefaultPatch: AppLimitCapsDefaultPatch! } """ -Represents an update to a `AppLimitDefault`. Fields that are set will be updated. +Represents an update to a `AppLimitCapsDefault`. Fields that are set will be updated. """ -input AppLimitDefaultPatch { +input AppLimitCapsDefaultPatch { id: UUID - """Name identifier of the limit this default applies to""" + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ name: String - """Default maximum usage allowed for this limit""" + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt } -"""The output of our update `OrgLimitDefault` mutation.""" -type UpdateOrgLimitDefaultPayload { +"""The output of our update `OrgLimitCapsDefault` mutation.""" +type UpdateOrgLimitCapsDefaultPayload { """ 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 `OrgLimitDefault` that was updated by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `OrgLimitCapsDefault` that was updated by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge } -"""All input for the `updateOrgLimitDefault` mutation.""" -input UpdateOrgLimitDefaultInput { +"""All input for the `updateOrgLimitCapsDefault` mutation.""" +input UpdateOrgLimitCapsDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -52935,52 +53767,53 @@ input UpdateOrgLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitDefault` being updated. + An object where the defined keys will be set on the `OrgLimitCapsDefault` being updated. """ - orgLimitDefaultPatch: OrgLimitDefaultPatch! + orgLimitCapsDefaultPatch: OrgLimitCapsDefaultPatch! } """ -Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. +Represents an update to a `OrgLimitCapsDefault`. Fields that are set will be updated. """ -input OrgLimitDefaultPatch { +input OrgLimitCapsDefaultPatch { id: UUID - """Name identifier of the limit this default applies to""" + """ + Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) + """ name: String - """Default maximum usage allowed for this limit""" + """ + Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. + """ max: BigInt - - """Default soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt } -"""The output of our update `AppLimitCreditCodeItem` mutation.""" -type UpdateAppLimitCreditCodeItemPayload { +"""The output of our update `AppLimitCap` mutation.""" +type UpdateAppLimitCapPayload { """ 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 `AppLimitCreditCodeItem` that was updated by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `AppLimitCap` that was updated by this mutation.""" + appLimitCap: AppLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge } -"""All input for the `updateAppLimitCreditCodeItem` mutation.""" -input UpdateAppLimitCreditCodeItemInput { +"""All input for the `updateAppLimitCap` mutation.""" +input UpdateAppLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -52989,57 +53822,52 @@ input UpdateAppLimitCreditCodeItemInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitCreditCodeItem` being updated. + An object where the defined keys will be set on the `AppLimitCap` being updated. """ - appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! + appLimitCapPatch: AppLimitCapPatch! } """ -Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. +Represents an update to a `AppLimitCap`. Fields that are set will be updated. """ -input AppLimitCreditCodeItemPatch { +input AppLimitCapPatch { id: UUID - """FK to credit_codes — which code this item belongs to""" - creditCodeId: UUID - - """FK to default_limits — which limit this item grants credits for""" - defaultLimitId: UUID + """Name identifier of the cap being overridden""" + name: String - """Number of credits this item grants per redemption""" - amount: BigInt + """Entity this cap override applies to""" + entityId: UUID - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String + """Override cap value for this entity""" + max: BigInt } -"""The output of our update `AppLimitWarning` mutation.""" -type UpdateAppLimitWarningPayload { +"""The output of our update `OrgLimitCap` mutation.""" +type UpdateOrgLimitCapPayload { """ 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 `AppLimitWarning` that was updated by this mutation.""" - appLimitWarning: AppLimitWarning + """The `OrgLimitCap` that was updated by this mutation.""" + orgLimitCap: OrgLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge } -"""All input for the `updateAppLimitWarning` mutation.""" -input UpdateAppLimitWarningInput { +"""All input for the `updateOrgLimitCap` mutation.""" +input UpdateOrgLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -53048,32 +53876,25 @@ input UpdateAppLimitWarningInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitWarning` being updated. + An object where the defined keys will be set on the `OrgLimitCap` being updated. """ - appLimitWarningPatch: AppLimitWarningPatch! + orgLimitCapPatch: OrgLimitCapPatch! } """ -Represents an update to a `AppLimitWarning`. Fields that are set will be updated. +Represents an update to a `OrgLimitCap`. Fields that are set will be updated. """ -input AppLimitWarningPatch { +input OrgLimitCapPatch { id: UUID - """Limit name this warning applies to (must match a default_limits entry)""" + """Name identifier of the cap being overridden""" name: String - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String - - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type - """ - thresholdValue: BigInt + """Entity this cap override applies to""" + entityId: UUID - """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) - """ - taskIdentifier: String + """Override cap value for this entity""" + max: BigInt } """The output of our update `Database` mutation.""" @@ -53180,6 +54001,70 @@ input CryptoAddressesModulePatch { cryptoNetwork: String } +"""The output of our update `OrgChartEdge` mutation.""" +type UpdateOrgChartEdgePayload { + """ + 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 `OrgChartEdge` that was updated by this mutation.""" + orgChartEdge: OrgChartEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge +} + +"""All input for the `updateOrgChartEdge` mutation.""" +input UpdateOrgChartEdgeInput { + """ + 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 `OrgChartEdge` being updated. + """ + orgChartEdgePatch: OrgChartEdgePatch! +} + +""" +Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +""" +input OrgChartEdgePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Organization this hierarchy edge belongs to""" + entityId: UUID + + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID + + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int +} + """The output of our update `CryptoAddress` mutation.""" type UpdateCryptoAddressPayload { """ @@ -53244,31 +54129,90 @@ input CryptoAddressPatch { updatedAt: Datetime } -"""The output of our update `AgentMessage` mutation.""" -type UpdateAgentMessagePayload { +"""The output of our update `AppLimitCreditCodeItem` mutation.""" +type UpdateAppLimitCreditCodeItemPayload { + """ + 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 `AppLimitCreditCodeItem` that was updated by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge +} + +"""All input for the `updateAppLimitCreditCodeItem` mutation.""" +input UpdateAppLimitCreditCodeItemInput { + """ + 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 `AppLimitCreditCodeItem` being updated. + """ + appLimitCreditCodeItemPatch: AppLimitCreditCodeItemPatch! +} + +""" +Represents an update to a `AppLimitCreditCodeItem`. Fields that are set will be updated. +""" +input AppLimitCreditCodeItemPatch { + id: UUID + + """FK to credit_codes — which code this item belongs to""" + creditCodeId: UUID + + """FK to default_limits — which limit this item grants credits for""" + defaultLimitId: UUID + + """Number of credits this item grants per redemption""" + amount: BigInt + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String +} + +"""The output of our update `AppLimitDefault` mutation.""" +type UpdateAppLimitDefaultPayload { """ 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 `AgentMessage` that was updated by this mutation.""" - agentMessage: AgentMessage + """The `AppLimitDefault` that was updated by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AgentMessage`. May be used by Relay 1.""" - agentMessageEdge( - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentMessageEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the `updateAgentMessage` mutation.""" -input UpdateAgentMessageInput { +"""All input for the `updateAppLimitDefault` mutation.""" +input UpdateAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -53277,131 +54221,158 @@ input UpdateAgentMessageInput { id: UUID! """ - An object where the defined keys will be set on the `AgentMessage` being updated. + An object where the defined keys will be set on the `AppLimitDefault` being updated. """ - agentMessagePatch: AgentMessagePatch! + appLimitDefaultPatch: AppLimitDefaultPatch! } """ -Represents an update to a `AgentMessage`. Fields that are set will be updated. +Represents an update to a `AppLimitDefault`. Fields that are set will be updated. """ -input AgentMessagePatch { +input AppLimitDefaultPatch { + id: UUID + + """Name identifier of the limit this default applies to""" + name: String + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} + +"""The output of our update `OrgLimitDefault` mutation.""" +type UpdateOrgLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. + clientMutationId: String + + """The `OrgLimitDefault` that was updated by this mutation.""" + orgLimitDefault: OrgLimitDefault + """ - threadId: UUID + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the `updateOrgLimitDefault` mutation.""" +input UpdateOrgLimitDefaultInput { """ - Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - entityId: UUID + clientMutationId: String + id: UUID! """ - Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. + An object where the defined keys will be set on the `OrgLimitDefault` being updated. """ - authorRole: String + orgLimitDefaultPatch: OrgLimitDefaultPatch! +} + +""" +Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. +""" +input OrgLimitDefaultPatch { id: UUID - """Timestamp when this record was created""" - createdAt: Datetime - - """Timestamp when this record was last updated""" - updatedAt: Datetime + """Name identifier of the limit this default applies to""" + name: String - """User who owns this record""" - ownerId: UUID + """Default maximum usage allowed for this limit""" + max: BigInt - """JSON metadata for extensible key-value storage""" - parts: JSON + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""The output of our update `AppLimitCredit` mutation.""" -type UpdateAppLimitCreditPayload { +"""The output of our update `Object` mutation.""" +type UpdateObjectPayload { """ 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 `AppLimitCredit` that was updated by this mutation.""" - appLimitCredit: AppLimitCredit + """The `Object` that was updated by this mutation.""" + object: Object """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge } -"""All input for the `updateAppLimitCredit` mutation.""" -input UpdateAppLimitCreditInput { +"""All input for the `updateObject` mutation.""" +input UpdateObjectInput { """ 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! + scopeId: UUID! """ - An object where the defined keys will be set on the `AppLimitCredit` being updated. + An object where the defined keys will be set on the `Object` being updated. """ - appLimitCreditPatch: AppLimitCreditPatch! + objectPatch: ObjectPatch! } """ -Represents an update to a `AppLimitCredit`. Fields that are set will be updated. +Represents an update to a `Object`. Fields that are set will be updated. """ -input AppLimitCreditPatch { +input ObjectPatch { id: UUID - - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt - - """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) - """ - creditType: String - - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + scopeId: UUID + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime } -"""The output of our update `OrgLimitWarning` mutation.""" -type UpdateOrgLimitWarningPayload { +"""The output of our update `AppPermission` mutation.""" +type UpdateAppPermissionPayload { """ 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 `OrgLimitWarning` that was updated by this mutation.""" - orgLimitWarning: OrgLimitWarning + """The `AppPermission` that was updated by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `updateOrgLimitWarning` mutation.""" -input UpdateOrgLimitWarningInput { +"""All input for the `updateAppPermission` mutation.""" +input UpdateAppPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -53410,62 +54381,59 @@ input UpdateOrgLimitWarningInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitWarning` being updated. + An object where the defined keys will be set on the `AppPermission` being updated. """ - orgLimitWarningPatch: OrgLimitWarningPatch! + appPermissionPatch: AppPermissionPatch! } """ -Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. +Represents an update to a `AppPermission`. Fields that are set will be updated. """ -input OrgLimitWarningPatch { +input AppPermissionPatch { id: UUID - """Limit name this warning applies to (must match a default_limits entry)""" + """Human-readable permission name (e.g. read, write, manage)""" name: String - """Threshold type: absolute (fixed count) or percentage (of max)""" - warningType: String - """ - Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + Position of this permission in the bitmask (1-indexed), must be unique per permission set """ - thresholdValue: BigInt + bitnum: Int """ - Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations """ - taskIdentifier: String + bitstr: BitString - """Per-entity override (NULL = scope default for all entities)""" - entityId: UUID + """Human-readable description of what this permission allows""" + description: String } -"""The output of our update `OrgLimitCredit` mutation.""" -type UpdateOrgLimitCreditPayload { +"""The output of our update `OrgPermission` mutation.""" +type UpdateOrgPermissionPayload { """ 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 `OrgLimitCredit` that was updated by this mutation.""" - orgLimitCredit: OrgLimitCredit + """The `OrgPermission` that was updated by this mutation.""" + orgPermission: OrgPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge } -"""All input for the `updateOrgLimitCredit` mutation.""" -input UpdateOrgLimitCreditInput { +"""All input for the `updateOrgPermission` mutation.""" +input UpdateOrgPermissionInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -53474,159 +54442,154 @@ input UpdateOrgLimitCreditInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitCredit` being updated. + An object where the defined keys will be set on the `OrgPermission` being updated. """ - orgLimitCreditPatch: OrgLimitCreditPatch! + orgPermissionPatch: OrgPermissionPatch! } """ -Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. +Represents an update to a `OrgPermission`. Fields that are set will be updated. """ -input OrgLimitCreditPatch { +input OrgPermissionPatch { id: UUID - """FK to default_limits — which limit definition this credit applies to""" - defaultLimitId: UUID - - """User this credit is for; NULL for aggregate entity-level credits""" - actorId: UUID - - """Entity this credit applies to; NULL for actor-only credits""" - entityId: UUID + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """Number of credits to grant (positive to add, negative to revoke)""" - amount: BigInt + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int """ - Credit durability: permanent (survives window reset) or period (resets on window expiry) + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations """ - creditType: String + bitstr: BitString - """Optional reason for the credit grant (promo code, admin grant, etc.)""" - reason: String + """Human-readable description of what this permission allows""" + description: String } -"""The output of our update `Object` mutation.""" -type UpdateObjectPayload { +"""The output of our update `AppLimitCreditCode` mutation.""" +type UpdateAppLimitCreditCodePayload { """ 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 `Object` that was updated by this mutation.""" - object: Object + """The `AppLimitCreditCode` that was updated by this mutation.""" + appLimitCreditCode: AppLimitCreditCode """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Object`. May be used by Relay 1.""" - objectEdge( - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): ObjectEdge + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge } -"""All input for the `updateObject` mutation.""" -input UpdateObjectInput { +"""All input for the `updateAppLimitCreditCode` mutation.""" +input UpdateAppLimitCreditCodeInput { """ 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! - databaseId: UUID! """ - An object where the defined keys will be set on the `Object` being updated. + An object where the defined keys will be set on the `AppLimitCreditCode` being updated. """ - objectPatch: ObjectPatch! + appLimitCreditCodePatch: AppLimitCreditCodePatch! } """ -Represents an update to a `Object`. Fields that are set will be updated. +Represents an update to a `AppLimitCreditCode`. Fields that are set will be updated. """ -input ObjectPatch { +input AppLimitCreditCodePatch { id: UUID - databaseId: UUID - kids: [UUID] - ktree: [String] - data: JSON - frzn: Boolean - createdAt: Datetime + + """Human-readable credit code (case-insensitive, unique)""" + code: String + + """Maximum total redemptions allowed; NULL for unlimited""" + maxRedemptions: Int + + """ + Current number of redemptions (incremented by trigger on credit_redemptions) + """ + currentRedemptions: Int + + """Expiration timestamp; NULL for no expiry""" + expiresAt: Datetime } -"""The output of our update `SiteMetadatum` mutation.""" -type UpdateSiteMetadatumPayload { +"""The output of our update `AppLimitWarning` mutation.""" +type UpdateAppLimitWarningPayload { """ 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 `SiteMetadatum` that was updated by this mutation.""" - siteMetadatum: SiteMetadatum + """The `AppLimitWarning` that was updated by this mutation.""" + appLimitWarning: AppLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge } -"""All input for the `updateSiteMetadatum` mutation.""" -input UpdateSiteMetadatumInput { +"""All input for the `updateAppLimitWarning` mutation.""" +input UpdateAppLimitWarningInput { """ 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 metadata record""" id: UUID! """ - An object where the defined keys will be set on the `SiteMetadatum` being updated. + An object where the defined keys will be set on the `AppLimitWarning` being updated. """ - siteMetadatumPatch: SiteMetadatumPatch! + appLimitWarningPatch: AppLimitWarningPatch! } """ -Represents an update to a `SiteMetadatum`. Fields that are set will be updated. +Represents an update to a `AppLimitWarning`. Fields that are set will be updated. """ -input SiteMetadatumPatch { - """Unique identifier for this metadata record""" +input AppLimitWarningPatch { id: UUID - """Reference to the metaschema database""" - databaseId: UUID - - """Site this metadata belongs to""" - siteId: UUID - - """Page title for SEO (max 120 characters)""" - title: String + """Limit name this warning applies to (must match a default_limits entry)""" + name: String - """Meta description for SEO and social sharing (max 120 characters)""" - description: String + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String - """Open Graph image for social media previews""" - ogImage: ConstructiveInternalTypeImage + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt - """Upload for Open Graph image for social media previews""" - ogImageUpload: Upload + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String } -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - """The output of our update `FullTextSearch` mutation.""" type UpdateFullTextSearchPayload { """ @@ -53767,8 +54730,8 @@ input UpdateCommitInput { """The primary unique identifier for the commit.""" id: UUID! - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! """ An object where the defined keys will be set on the `Commit` being updated. @@ -53786,8 +54749,8 @@ input CommitPatch { """The commit message""" message: String - """The repository identifier""" - databaseId: UUID + """The scope identifier""" + scopeId: UUID storeId: UUID """Parent commits""" @@ -53804,6 +54767,75 @@ input CommitPatch { date: Datetime } +"""The output of our update `SiteMetadatum` mutation.""" +type UpdateSiteMetadatumPayload { + """ + 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 `SiteMetadatum` that was updated by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the `updateSiteMetadatum` mutation.""" +input UpdateSiteMetadatumInput { + """ + 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 metadata record""" + id: UUID! + + """ + An object where the defined keys will be set on the `SiteMetadatum` being updated. + """ + siteMetadatumPatch: SiteMetadatumPatch! +} + +""" +Represents an update to a `SiteMetadatum`. Fields that are set will be updated. +""" +input SiteMetadatumPatch { + """Unique identifier for this metadata record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """Site this metadata belongs to""" + siteId: UUID + + """Page title for SEO (max 120 characters)""" + title: String + + """Meta description for SEO and social sharing (max 120 characters)""" + description: String + + """Open Graph image for social media previews""" + ogImage: ConstructiveInternalTypeImage + + """Upload for Open Graph image for social media previews""" + ogImageUpload: Upload +} + +"""The `Upload` scalar type represents a file upload.""" +scalar Upload + """The output of our update `PubkeySetting` mutation.""" type UpdatePubkeySettingPayload { """ @@ -54075,31 +55107,31 @@ input PhoneNumberPatch { updatedAt: Datetime } -"""The output of our update `UsageSnapshot` mutation.""" -type UpdateUsageSnapshotPayload { +"""The output of our update `AppLimitCredit` mutation.""" +type UpdateAppLimitCreditPayload { """ 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 `UsageSnapshot` that was updated by this mutation.""" - usageSnapshot: UsageSnapshot + """The `AppLimitCredit` that was updated by this mutation.""" + appLimitCredit: AppLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsageSnapshot`. May be used by Relay 1.""" - usageSnapshotEdge( - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsageSnapshotEdge + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge } -"""All input for the `updateUsageSnapshot` mutation.""" -input UpdateUsageSnapshotInput { +"""All input for the `updateAppLimitCredit` mutation.""" +input UpdateAppLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -54108,67 +55140,60 @@ input UpdateUsageSnapshotInput { id: UUID! """ - An object where the defined keys will be set on the `UsageSnapshot` being updated. + An object where the defined keys will be set on the `AppLimitCredit` being updated. """ - usageSnapshotPatch: UsageSnapshotPatch! + appLimitCreditPatch: AppLimitCreditPatch! } """ -Represents an update to a `UsageSnapshot`. Fields that are set will be updated. +Represents an update to a `AppLimitCredit`. Fields that are set will be updated. """ -input UsageSnapshotPatch { - """ - The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. - """ - databaseId: UUID +input AppLimitCreditPatch { + id: UUID - """ - Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). - """ - metricName: String + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID - """ - The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). - """ - metricValue: BigInt + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """ - Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. - """ - dimensions: JSON + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt """ - When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. + Credit durability: permanent (survives window reset) or period (resets on window expiry) """ - capturedAt: Datetime - id: UUID + creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } -"""The output of our update `AppClaimedInvite` mutation.""" -type UpdateAppClaimedInvitePayload { +"""The output of our update `OrgLimitCredit` mutation.""" +type UpdateOrgLimitCreditPayload { """ 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 `AppClaimedInvite` that was updated by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `OrgLimitCredit` that was updated by this mutation.""" + orgLimitCredit: OrgLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge } -"""All input for the `updateAppClaimedInvite` mutation.""" -input UpdateAppClaimedInviteInput { +"""All input for the `updateOrgLimitCredit` mutation.""" +input UpdateOrgLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -54177,54 +55202,63 @@ input UpdateAppClaimedInviteInput { id: UUID! """ - An object where the defined keys will be set on the `AppClaimedInvite` being updated. + An object where the defined keys will be set on the `OrgLimitCredit` being updated. """ - appClaimedInvitePatch: AppClaimedInvitePatch! + orgLimitCreditPatch: OrgLimitCreditPatch! } """ -Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. +Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. """ -input AppClaimedInvitePatch { +input OrgLimitCreditPatch { id: UUID - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """FK to default_limits — which limit definition this credit applies to""" + defaultLimitId: UUID - """User ID of the original invitation sender""" - senderId: UUID + """User this credit is for; NULL for aggregate entity-level credits""" + actorId: UUID - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime + """Entity this credit applies to; NULL for actor-only credits""" + entityId: UUID + + """Number of credits to grant (positive to add, negative to revoke)""" + amount: BigInt + + """ + Credit durability: permanent (survives window reset) or period (resets on window expiry) + """ + creditType: String + + """Optional reason for the credit grant (promo code, admin grant, etc.)""" + reason: String } -"""The output of our update `AppMembershipDefault` mutation.""" -type UpdateAppMembershipDefaultPayload { +"""The output of our update `AppClaimedInvite` mutation.""" +type UpdateAppClaimedInvitePayload { """ 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 `AppMembershipDefault` that was updated by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `AppClaimedInvite` that was updated by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `updateAppMembershipDefault` mutation.""" -input UpdateAppMembershipDefaultInput { +"""All input for the `updateAppClaimedInvite` mutation.""" +input UpdateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -54233,53 +55267,54 @@ input UpdateAppMembershipDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppMembershipDefault` being updated. + An object where the defined keys will be set on the `AppClaimedInvite` being updated. """ - appMembershipDefaultPatch: AppMembershipDefaultPatch! + appClaimedInvitePatch: AppClaimedInvitePatch! } """ -Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. +Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. """ -input AppMembershipDefaultPatch { +input AppClaimedInvitePatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Whether new members are automatically verified upon joining""" - isVerified: Boolean + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgMembershipDefault` mutation.""" -type UpdateOrgMembershipDefaultPayload { +"""The output of our update `OrgLimitWarning` mutation.""" +type UpdateOrgLimitWarningPayload { """ 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 `OrgMembershipDefault` that was updated by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `OrgLimitWarning` that was updated by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge } -"""All input for the `updateOrgMembershipDefault` mutation.""" -input UpdateOrgMembershipDefaultInput { +"""All input for the `updateOrgLimitWarning` mutation.""" +input UpdateOrgLimitWarningInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -54288,94 +55323,108 @@ input UpdateOrgMembershipDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipDefault` being updated. + An object where the defined keys will be set on the `OrgLimitWarning` being updated. """ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch! + orgLimitWarningPatch: OrgLimitWarningPatch! } """ -Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. +Represents an update to a `OrgLimitWarning`. Fields that are set will be updated. """ -input OrgMembershipDefaultPatch { +input OrgLimitWarningPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Limit name this warning applies to (must match a default_limits entry)""" + name: String - """References the entity these membership defaults apply to""" + """Threshold type: absolute (fixed count) or percentage (of max)""" + warningType: String + + """ + Threshold value — either an absolute count or a percentage (1-100) depending on warning_type + """ + thresholdValue: BigInt + + """ + Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) + """ + taskIdentifier: String + + """Per-entity override (NULL = scope default for all entities)""" entityId: UUID } -"""The output of our update `AuditLog` mutation.""" -type UpdateAuditLogPayload { +"""The output of our update `MembershipType` mutation.""" +type UpdateMembershipTypePayload { """ 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 `AuditLog` that was updated by this mutation.""" - auditLog: AuditLog + """The `MembershipType` that was updated by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `updateAuditLog` mutation.""" -input UpdateAuditLogInput { +"""All input for the `updateMembershipType` mutation.""" +input UpdateMembershipTypeInput { """ 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 `AuditLog` being updated. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! + + """ + An object where the defined keys will be set on the `MembershipType` being updated. """ - auditLogPatch: AuditLogPatch! + membershipTypePatch: MembershipTypePatch! } """ -Represents an update to a `AuditLog`. Fields that are set will be updated. +Represents an update to a `MembershipType`. Fields that are set will be updated. """ -input AuditLogPatch { - id: UUID - +input MembershipTypePatch { """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - event: String - - """User who performed the authentication action; NULL if user was deleted""" - actorId: UUID + id: Int - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin + """Human-readable name of the membership type""" + name: String - """Browser or client user-agent string from the request""" - userAgent: String + """Description of what this membership type represents""" + description: String - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String - """Whether the authentication attempt succeeded""" - success: Boolean + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int - """Timestamp when the audit event was recorded""" - createdAt: Datetime + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean } """The output of our update `Domain` mutation.""" @@ -54532,224 +55581,6 @@ input RlsSettingPatch { currentIpAddressFunctionId: UUID } -"""The output of our update `AgentTask` mutation.""" -type UpdateAgentTaskPayload { - """ - 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 `AgentTask` that was updated by this mutation.""" - agentTask: AgentTask - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AgentTask`. May be used by Relay 1.""" - agentTaskEdge( - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentTaskEdge -} - -"""All input for the `updateAgentTask` mutation.""" -input UpdateAgentTaskInput { - """ - 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 `AgentTask` being updated. - """ - agentTaskPatch: AgentTaskPatch! -} - -""" -Represents an update to a `AgentTask`. Fields that are set will be updated. -""" -input AgentTaskPatch { - """ - Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. - """ - threadId: UUID - - """ - Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. - """ - entityId: UUID - - """Natural-language description of the work to do. Required.""" - description: String - - """ - Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. - """ - source: String - - """ - Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. - """ - error: String - id: UUID - - """Timestamp when this record was created""" - createdAt: Datetime - - """Timestamp when this record was last updated""" - updatedAt: Datetime - - """User who owns this record""" - ownerId: UUID - - """Current status of this record""" - status: String -} - -"""The output of our update `AgentThread` mutation.""" -type UpdateAgentThreadPayload { - """ - 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 `AgentThread` that was updated by this mutation.""" - agentThread: AgentThread - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AgentThread`. May be used by Relay 1.""" - agentThreadEdge( - """The method to use when ordering `AgentThread`.""" - orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentThreadEdge -} - -"""All input for the `updateAgentThread` mutation.""" -input UpdateAgentThreadInput { - """ - 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 `AgentThread` being updated. - """ - agentThreadPatch: AgentThreadPatch! -} - -""" -Represents an update to a `AgentThread`. Fields that are set will be updated. -""" -input AgentThreadPatch { - """ - Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. - """ - title: String - - """ - Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. - """ - mode: String - - """ - Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. - """ - model: String - - """ - Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. - """ - systemPrompt: String - id: UUID - - """Timestamp when this record was created""" - createdAt: Datetime - - """Timestamp when this record was last updated""" - updatedAt: Datetime - - """User who owns this record within the entity""" - ownerId: UUID - - """Entity this record belongs to""" - entityId: UUID - - """Current status of this record""" - status: String -} - -"""The output of our update `Email` mutation.""" -type UpdateEmailPayload { - """ - 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 `Email` that was updated by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the `updateEmail` mutation.""" -input UpdateEmailInput { - """ - 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 `Email` being updated. - """ - emailPatch: EmailPatch! -} - -""" -Represents an update to a `Email`. Fields that are set will be updated. -""" -input EmailPatch { - 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 - - """Optional user-provided label for this email (e.g. "Work", "Personal").""" - name: String - createdAt: Datetime - updatedAt: Datetime -} - """The output of our update `AppGrant` mutation.""" type UpdateAppGrantPayload { """ @@ -54864,123 +55695,79 @@ input OrgClaimedInvitePatch { entityId: UUID } -"""The output of our update `OrgChartEdge` mutation.""" -type UpdateOrgChartEdgePayload { +"""The output of our update `AuditLogAuth` mutation.""" +type UpdateAuditLogAuthPayload { """ 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 `OrgChartEdge` that was updated by this mutation.""" - orgChartEdge: OrgChartEdge + """The `AuditLogAuth` that was updated by this mutation.""" + auditLogAuth: AuditLogAuth """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """An edge for our `AuditLogAuth`. May be used by Relay 1.""" + auditLogAuthEdge( + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogAuthEdge } -"""All input for the `updateOrgChartEdge` mutation.""" -input UpdateOrgChartEdgeInput { +"""All input for the `updateAuditLogAuth` mutation.""" +input UpdateAuditLogAuthInput { """ 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 + createdAt: Datetime! + + """ + Unique identifier for each audit event (uuidv7 provides temporal ordering) + """ id: UUID! """ - An object where the defined keys will be set on the `OrgChartEdge` being updated. + An object where the defined keys will be set on the `AuditLogAuth` being updated. """ - orgChartEdgePatch: OrgChartEdgePatch! + auditLogAuthPatch: AuditLogAuthPatch! } """ -Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +Represents an update to a `AuditLogAuth`. Fields that are set will be updated. """ -input OrgChartEdgePatch { - id: UUID +input AuditLogAuthPatch { createdAt: Datetime - updatedAt: Datetime - - """Organization this hierarchy edge belongs to""" - entityId: UUID - - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID """ - User ID of the manager; NULL indicates a top-level position with no direct report + Unique identifier for each audit event (uuidv7 provides temporal ordering) """ - parentId: UUID - - """Job title or role name for this position in the org chart""" - positionTitle: String - - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int -} + id: UUID -"""The output of our update `Partition` mutation.""" -type UpdatePartitionPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) """ - clientMutationId: String - - """The `Partition` that was updated by this mutation.""" - partition: Partition + event: String - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """User who performed the authentication action; NULL if user was deleted""" + actorId: UUID - """An edge for our `Partition`. May be used by Relay 1.""" - partitionEdge( - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PartitionEdge -} + """Request origin (domain) where the auth event occurred""" + origin: ConstructiveInternalTypeOrigin -"""All input for the `updatePartition` mutation.""" -input UpdatePartitionInput { - """ - 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! + """Browser or client user-agent string from the request""" + userAgent: String - """ - An object where the defined keys will be set on the `Partition` being updated. - """ - partitionPatch: PartitionPatch! -} + """IP address of the client that initiated the auth event""" + ipAddress: InternetAddress -""" -Represents an update to a `Partition`. Fields that are set will be updated. -""" -input PartitionPatch { - id: UUID - databaseId: UUID - tableId: UUID - strategy: String - partitionKeyId: UUID - interval: String - retention: String - premake: Int - namingPattern: String - createdAt: Datetime - updatedAt: Datetime + """Whether the authentication attempt succeeded""" + success: Boolean } """The output of our update `BlueprintConstruction` mutation.""" @@ -55183,6 +55970,82 @@ input SessionsModulePatch { authSettingsTable: String } +"""The output of our update `OrgMemberProfile` mutation.""" +type UpdateOrgMemberProfilePayload { + """ + 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 `OrgMemberProfile` that was updated by this mutation.""" + orgMemberProfile: OrgMemberProfile + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge +} + +"""All input for the `updateOrgMemberProfile` mutation.""" +input UpdateOrgMemberProfileInput { + """ + 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 `OrgMemberProfile` being updated. + """ + orgMemberProfilePatch: OrgMemberProfilePatch! +} + +""" +Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. +""" +input OrgMemberProfilePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """References the membership this profile belongs to (1:1)""" + membershipId: UUID + + """References the entity this profile belongs to (used for RLS lookups)""" + entityId: UUID + + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID + + """Display name shown to other entity members""" + displayName: String + + """ + Email address visible to other entity members (auto-populated from verified primary email) + """ + email: String + + """Job title or role description visible to other entity members""" + title: String + + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage + + """Upload for Profile picture visible to other entity members""" + profilePictureUpload: Upload +} + """The output of our update `OrgGrant` mutation.""" type UpdateOrgGrantPayload { """ @@ -55243,6 +56106,118 @@ input OrgGrantPatch { updatedAt: Datetime } +"""The output of our update `Partition` mutation.""" +type UpdatePartitionPayload { + """ + 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 `Partition` that was updated by this mutation.""" + partition: Partition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Partition`. May be used by Relay 1.""" + partitionEdge( + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PartitionEdge +} + +"""All input for the `updatePartition` mutation.""" +input UpdatePartitionInput { + """ + 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 `Partition` being updated. + """ + partitionPatch: PartitionPatch! +} + +""" +Represents an update to a `Partition`. Fields that are set will be updated. +""" +input PartitionPatch { + id: UUID + databaseId: UUID + tableId: UUID + strategy: String + partitionKeyId: UUID + interval: String + retention: String + retentionKeepTable: Boolean + premake: Int + namingPattern: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AgentChatModule` mutation.""" +type UpdateAgentChatModulePayload { + """ + 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 `AgentChatModule` that was updated by this mutation.""" + agentChatModule: AgentChatModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentChatModule`. May be used by Relay 1.""" + agentChatModuleEdge( + """The method to use when ordering `AgentChatModule`.""" + orderBy: [AgentChatModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentChatModuleEdge +} + +"""All input for the `updateAgentChatModule` mutation.""" +input UpdateAgentChatModuleInput { + """ + 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 `AgentChatModule` being updated. + """ + agentChatModulePatch: AgentChatModulePatch! +} + +""" +Represents an update to a `AgentChatModule`. Fields that are set will be updated. +""" +input AgentChatModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + apiId: UUID + threadTableId: UUID + threadTableName: String + messageTableId: UUID + messageTableName: String + taskTableId: UUID + taskTableName: String + prefix: String +} + """The output of our update `Blueprint` mutation.""" type UpdateBlueprintPayload { """ @@ -55559,31 +56534,31 @@ input PlansModulePatch { prefix: String } -"""The output of our update `AppLimit` mutation.""" -type UpdateAppLimitPayload { +"""The output of our update `Email` mutation.""" +type UpdateEmailPayload { """ 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 `AppLimit` that was updated by this mutation.""" - appLimit: AppLimit + """The `Email` that was updated by this mutation.""" + email: Email """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge } -"""All input for the `updateAppLimit` mutation.""" -input UpdateAppLimitInput { +"""All input for the `updateEmail` mutation.""" +input UpdateEmailInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -55592,134 +56567,191 @@ input UpdateAppLimitInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimit` being updated. + An object where the defined keys will be set on the `Email` being updated. """ - appLimitPatch: AppLimitPatch! + emailPatch: EmailPatch! } """ -Represents an update to a `AppLimit`. Fields that are set will be updated. +Represents an update to a `Email`. Fields that are set will be updated. """ -input AppLimitPatch { +input EmailPatch { id: UUID + ownerId: UUID - """Name identifier of the limit being tracked""" - name: String + """The email address""" + email: ConstructiveInternalTypeEmail - """User whose usage is being tracked against this limit""" - actorId: UUID + """Whether the email address has been verified via confirmation link""" + isVerified: Boolean - """Current usage count for this actor and limit""" - num: BigInt + """Whether this is the user's primary email address""" + isPrimary: Boolean - """ - Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. - """ - max: BigInt + """Optional user-provided label for this email (e.g. "Work", "Personal").""" + name: String + createdAt: Datetime + updatedAt: Datetime +} +"""The output of our update `AppLimitEvent` mutation.""" +type UpdateAppLimitEventPayload { """ - Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - softMax: BigInt + clientMutationId: String - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """The `AppLimitEvent` that was updated by this mutation.""" + appLimitEvent: AppLimitEvent """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + Our root query field type. Allows us to run any query from our mutation payload. """ - windowDuration: IntervalInput + query: Query + + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge +} +"""All input for the `updateAppLimitEvent` mutation.""" +input UpdateAppLimitEventInput { """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - planMax: BigInt + clientMutationId: String + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + An object where the defined keys will be set on the `AppLimitEvent` being updated. """ - purchasedCredits: BigInt + appLimitEventPatch: AppLimitEventPatch! +} + +""" +Represents an update to a `AppLimitEvent`. Fields that are set will be updated. +""" +input AppLimitEventPatch { + createdAt: Datetime + + """Unique identifier for each limit event""" + id: UUID + + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + Optional reason or source: achievement, invite, plan_change, purchase, etc. """ - periodCredits: BigInt + reason: String } -"""The output of our update `OrgMemberProfile` mutation.""" -type UpdateOrgMemberProfilePayload { +"""The output of our update `OrgLimitEvent` mutation.""" +type UpdateOrgLimitEventPayload { """ 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 `OrgMemberProfile` that was updated by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `OrgLimitEvent` that was updated by this mutation.""" + orgLimitEvent: OrgLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge } -"""All input for the `updateOrgMemberProfile` mutation.""" -input UpdateOrgMemberProfileInput { +"""All input for the `updateOrgLimitEvent` mutation.""" +input UpdateOrgLimitEventInput { """ 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 + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! """ - An object where the defined keys will be set on the `OrgMemberProfile` being updated. + An object where the defined keys will be set on the `OrgLimitEvent` being updated. """ - orgMemberProfilePatch: OrgMemberProfilePatch! + orgLimitEventPatch: OrgLimitEventPatch! } """ -Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. +Represents an update to a `OrgLimitEvent`. Fields that are set will be updated. """ -input OrgMemberProfilePatch { - id: UUID +input OrgLimitEventPatch { createdAt: Datetime - updatedAt: Datetime - """References the membership this profile belongs to (1:1)""" - membershipId: UUID + """Unique identifier for each limit event""" + id: UUID - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID + """Limit name this event applies to""" + name: String - """References the user who owns this profile (for self-edit RLS)""" + """User who triggered this event; NULL for system/aggregate events""" actorId: UUID - """Display name shown to other entity members""" - displayName: String + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Job title or role description visible to other entity members""" - title: String + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Short biography visible to other entity members""" - bio: String + """Usage count before this event""" + numBefore: BigInt - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """Usage count after this event""" + numAfter: BigInt - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } """The output of our update `DatabaseTransfer` mutation.""" @@ -55875,64 +56907,6 @@ input DatabaseSettingPatch { options: JSON } -"""The output of our update `BillingModule` mutation.""" -type UpdateBillingModulePayload { - """ - 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 `BillingModule` that was updated by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the `updateBillingModule` mutation.""" -input UpdateBillingModuleInput { - """ - 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 `BillingModule` being updated. - """ - billingModulePatch: BillingModulePatch! -} - -""" -Represents an update to a `BillingModule`. Fields that are set will be updated. -""" -input BillingModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - recordUsageFunction: String - prefix: String -} - """The output of our update `CryptoAuthModule` mutation.""" type UpdateCryptoAuthModulePayload { """ @@ -56049,7 +57023,9 @@ input DatabaseProvisionModulePatch { """Base domain for the database (e.g., example.com)""" domain: String - """Array of module IDs to install, or ["all"] for all modules""" + """ + Explicit array of module IDs to install (e.g. users_module, storage_module:full) + """ modules: [String] """Additional configuration options for provisioning""" @@ -56129,215 +57105,219 @@ input InvitesModulePatch { entityTableId: UUID } -"""The output of our update `SecureTableProvision` mutation.""" -type UpdateSecureTableProvisionPayload { +"""The output of our update `OrgMembershipSetting` mutation.""" +type UpdateOrgMembershipSettingPayload { """ 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 + """The `OrgMembershipSetting` that was updated by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ 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 `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `updateSecureTableProvision` mutation.""" -input UpdateSecureTableProvisionInput { +"""All input for the `updateOrgMembershipSetting` mutation.""" +input UpdateOrgMembershipSettingInput { """ 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. + An object where the defined keys will be set on the `OrgMembershipSetting` being updated. """ - secureTableProvisionPatch: SecureTableProvisionPatch! + orgMembershipSettingPatch: OrgMembershipSettingPatch! } """ -Represents an update to a `SecureTableProvision`. Fields that are set will be updated. +Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. """ -input SecureTableProvisionPatch { - """Unique identifier for this provision row.""" +input OrgMembershipSettingPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: 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 + """References the entity these settings apply to""" + entityId: UUID """ - Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ - tableId: UUID + deleteMemberCascadeChildren: Boolean """ - 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. + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners """ - tableName: String + createChildCascadeOwners: Boolean """ - Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - nodes: JSON + createChildCascadeAdmins: Boolean """ - If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members """ - useRls: Boolean + createChildCascadeMembers: Boolean """ - 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). + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) """ - fields: [JSON] + allowExternalMembers: Boolean """ - Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) """ - grants: JSON + inviteProfileAssignmentMode: String """ - Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. """ - policies: JSON + populateMemberEmail: Boolean """ - 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 nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) """ - outFields: [UUID] + limitAllocationMode: String } -"""The output of our update `OrgLimitAggregate` mutation.""" -type UpdateOrgLimitAggregatePayload { +"""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 `OrgLimitAggregate` that was updated by this mutation.""" - orgLimitAggregate: OrgLimitAggregate + """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 `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge + """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 `updateOrgLimitAggregate` mutation.""" -input UpdateOrgLimitAggregateInput { +"""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 `OrgLimitAggregate` being updated. + An object where the defined keys will be set on the `SecureTableProvision` being updated. """ - orgLimitAggregatePatch: OrgLimitAggregatePatch! + secureTableProvisionPatch: SecureTableProvisionPatch! } """ -Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. +Represents an update to a `SecureTableProvision`. Fields that are set will be updated. """ -input OrgLimitAggregatePatch { +input SecureTableProvisionPatch { + """Unique identifier for this provision row.""" id: UUID - """Name identifier of the aggregate limit being tracked""" - name: String - - """Entity (org) whose aggregate usage is being tracked""" - entityId: UUID + """The database this provision belongs to. Required.""" + databaseId: UUID - """Current aggregate usage count for this entity and limit""" - num: BigInt + """ + Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. + """ + schemaId: UUID - """Maximum allowed aggregate usage; negative means unlimited""" - max: BigInt + """ + Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + """ + tableId: UUID - """Soft limit threshold for warnings; NULL means no soft limit""" - softMax: BigInt + """ + 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 - """Start of the current metering window; NULL means no time window""" - windowStart: Datetime + """ + Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). + """ + nodes: JSON """ - Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. """ - windowDuration: IntervalInput + useRls: Boolean """ - Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + 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). """ - planMax: BigInt + fields: [JSON] """ - Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. """ - purchasedCredits: BigInt + grants: JSON """ - Temporary credits for the current billing window. Resets to 0 on window expiry. + Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. """ - periodCredits: BigInt + policies: JSON """ - Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + 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 nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. """ - reserved: BigInt + outFields: [UUID] } -"""The output of our update `OrgLimit` mutation.""" -type UpdateOrgLimitPayload { +"""The output of our update `AppLimit` mutation.""" +type UpdateAppLimitPayload { """ 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 `OrgLimit` that was updated by this mutation.""" - orgLimit: OrgLimit + """The `AppLimit` that was updated by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the `updateOrgLimit` mutation.""" -input UpdateOrgLimitInput { +"""All input for the `updateAppLimit` mutation.""" +input UpdateAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -56346,15 +57326,15 @@ input UpdateOrgLimitInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimit` being updated. + An object where the defined keys will be set on the `AppLimit` being updated. """ - orgLimitPatch: OrgLimitPatch! + appLimitPatch: AppLimitPatch! } """ -Represents an update to a `OrgLimit`. Fields that are set will be updated. +Represents an update to a `AppLimit`. Fields that are set will be updated. """ -input OrgLimitPatch { +input AppLimitPatch { id: UUID """Name identifier of the limit being tracked""" @@ -56398,7 +57378,6 @@ input OrgLimitPatch { Temporary credits for the current billing window. Resets to 0 on window expiry. """ periodCredits: BigInt - entityId: UUID } """The output of our update `ApiSetting` mutation.""" @@ -56515,6 +57494,242 @@ input ApiSettingPatch { options: JSON } +"""The output of our update `ComputeLogModule` mutation.""" +type UpdateComputeLogModulePayload { + """ + 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 `ComputeLogModule` that was updated by this mutation.""" + computeLogModule: ComputeLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge +} + +"""All input for the `updateComputeLogModule` mutation.""" +input UpdateComputeLogModuleInput { + """ + 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 `ComputeLogModule` being updated. + """ + computeLogModulePatch: ComputeLogModulePatch! +} + +""" +Represents an update to a `ComputeLogModule`. Fields that are set will be updated. +""" +input ComputeLogModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + computeLogTableId: UUID + computeLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String +} + +"""The output of our update `InferenceLogModule` mutation.""" +type UpdateInferenceLogModulePayload { + """ + 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 `InferenceLogModule` that was updated by this mutation.""" + inferenceLogModule: InferenceLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the `updateInferenceLogModule` mutation.""" +input UpdateInferenceLogModuleInput { + """ + 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 `InferenceLogModule` being updated. + """ + inferenceLogModulePatch: InferenceLogModulePatch! +} + +""" +Represents an update to a `InferenceLogModule`. Fields that are set will be updated. +""" +input InferenceLogModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + inferenceLogTableId: UUID + inferenceLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String +} + +"""The output of our update `StorageLogModule` mutation.""" +type UpdateStorageLogModulePayload { + """ + 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 `StorageLogModule` that was updated by this mutation.""" + storageLogModule: StorageLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageLogModule`. May be used by Relay 1.""" + storageLogModuleEdge( + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageLogModuleEdge +} + +"""All input for the `updateStorageLogModule` mutation.""" +input UpdateStorageLogModuleInput { + """ + 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 `StorageLogModule` being updated. + """ + storageLogModulePatch: StorageLogModulePatch! +} + +""" +Represents an update to a `StorageLogModule`. Fields that are set will be updated. +""" +input StorageLogModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + storageLogTableId: UUID + storageLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String +} + +"""The output of our update `TransferLogModule` mutation.""" +type UpdateTransferLogModulePayload { + """ + 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 `TransferLogModule` that was updated by this mutation.""" + transferLogModule: TransferLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TransferLogModule`. May be used by Relay 1.""" + transferLogModuleEdge( + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TransferLogModuleEdge +} + +"""All input for the `updateTransferLogModule` mutation.""" +input UpdateTransferLogModuleInput { + """ + 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 `TransferLogModule` being updated. + """ + transferLogModulePatch: TransferLogModulePatch! +} + +""" +Represents an update to a `TransferLogModule`. Fields that are set will be updated. +""" +input TransferLogModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + transferLogTableId: UUID + transferLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String +} + """The output of our update `Enum` mutation.""" type UpdateEnumPayload { """ @@ -56569,31 +57784,31 @@ input EnumPatch { tags: [String] } -"""The output of our update `User` mutation.""" -type UpdateUserPayload { +"""The output of our update `OrgLimitAggregate` mutation.""" +type UpdateOrgLimitAggregatePayload { """ 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 `User` that was updated by this mutation.""" - user: User + """The `OrgLimitAggregate` that was updated by this mutation.""" + orgLimitAggregate: OrgLimitAggregate """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `User`. May be used by Relay 1.""" - userEdge( - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserEdge + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge } -"""All input for the `updateUser` mutation.""" -input UpdateUserInput { +"""All input for the `updateOrgLimitAggregate` mutation.""" +input UpdateOrgLimitAggregateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -56602,23 +57817,147 @@ input UpdateUserInput { id: UUID! """ - An object where the defined keys will be set on the `User` being updated. + An object where the defined keys will be set on the `OrgLimitAggregate` being updated. """ - userPatch: UserPatch! + orgLimitAggregatePatch: OrgLimitAggregatePatch! } -"""Represents an update to a `User`. Fields that are set will be updated.""" -input UserPatch { +""" +Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. +""" +input OrgLimitAggregatePatch { id: UUID - username: String - displayName: String - profilePicture: ConstructiveInternalTypeImage - type: Int - createdAt: Datetime - updatedAt: Datetime - """File upload for the `profilePicture` field.""" - profilePictureUpload: Upload + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + + """ + Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. + """ + reserved: BigInt +} + +"""The output of our update `OrgLimit` mutation.""" +type UpdateOrgLimitPayload { + """ + 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 `OrgLimit` that was updated by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `updateOrgLimit` mutation.""" +input UpdateOrgLimitInput { + """ + 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 `OrgLimit` being updated. + """ + orgLimitPatch: OrgLimitPatch! +} + +""" +Represents an update to a `OrgLimit`. Fields that are set will be updated. +""" +input OrgLimitPatch { + id: UUID + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + + """ + Ceiling set by the active plan via apply_plan(). Window reset does not change this value. + """ + planMax: BigInt + + """ + Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. + """ + purchasedCredits: BigInt + + """ + Temporary credits for the current billing window. Resets to 0 on window expiry. + """ + periodCredits: BigInt + entityId: UUID } """The output of our update `View` mutation.""" @@ -56739,31 +58078,31 @@ input WebauthnAuthModulePatch { challengeExpiry: IntervalInput } -"""The output of our update `AppInvite` mutation.""" -type UpdateAppInvitePayload { +"""The output of our update `AppMembership` mutation.""" +type UpdateAppMembershipPayload { """ 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 `AppInvite` that was updated by this mutation.""" - appInvite: AppInvite + """The `AppMembership` that was updated by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `updateAppInvite` mutation.""" -input UpdateAppInviteInput { +"""All input for the `updateAppMembership` mutation.""" +input UpdateAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -56772,77 +58111,84 @@ input UpdateAppInviteInput { id: UUID! """ - An object where the defined keys will be set on the `AppInvite` being updated. + An object where the defined keys will be set on the `AppMembership` being updated. """ - appInvitePatch: AppInvitePatch! + appMembershipPatch: AppMembershipPatch! } """ -Represents an update to a `AppInvite`. Fields that are set will be updated. +Represents an update to a `AppMembership`. Fields that are set will be updated. """ -input AppInvitePatch { +input AppMembershipPatch { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Whether this membership has been approved by an admin""" + isApproved: Boolean - """User ID of the member who sent this invitation""" - senderId: UUID + """Whether this member has been banned from the entity""" + isBanned: Boolean - """Unique random hex token used to redeem this invitation""" - inviteToken: String + """Whether this membership is temporarily disabled""" + isDisabled: Boolean - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """Whether the actor is the owner of this entity""" + isOwner: Boolean - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean - """Optional JSON payload of additional invite metadata""" - data: JSON + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + Bitmask of permissions directly granted to this member (not from profiles) """ - profileId: UUID + granted: BitString - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime + """References the user who holds this membership""" + actorId: UUID + profileId: UUID } -"""The output of our update `OrgMembershipSetting` mutation.""" -type UpdateOrgMembershipSettingPayload { +"""The output of our update `User` mutation.""" +type UpdateUserPayload { """ 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 `OrgMembershipSetting` that was updated by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `User` that was updated by this mutation.""" + user: User """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge } -"""All input for the `updateOrgMembershipSetting` mutation.""" -input UpdateOrgMembershipSettingInput { +"""All input for the `updateUser` mutation.""" +input UpdateUserInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -56851,63 +58197,23 @@ input UpdateOrgMembershipSettingInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipSetting` being updated. + An object where the defined keys will be set on the `User` being updated. """ - orgMembershipSettingPatch: OrgMembershipSettingPatch! + userPatch: UserPatch! } -""" -Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. -""" -input OrgMembershipSettingPatch { +"""Represents an update to a `User`. Fields that are set will be updated.""" +input UserPatch { id: UUID + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + type: Int createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean - """ - Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) - """ - inviteProfileAssignmentMode: String - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean - - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String + """File upload for the `profilePicture` field.""" + profilePictureUpload: Upload } """The output of our update `App` mutation.""" @@ -57067,6 +58373,67 @@ input SitePatch { logoUpload: Upload } +"""The output of our update `DbUsageModule` mutation.""" +type UpdateDbUsageModulePayload { + """ + 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 `DbUsageModule` that was updated by this mutation.""" + dbUsageModule: DbUsageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge +} + +"""All input for the `updateDbUsageModule` mutation.""" +input UpdateDbUsageModuleInput { + """ + 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 `DbUsageModule` being updated. + """ + dbUsageModulePatch: DbUsageModulePatch! +} + +""" +Represents an update to a `DbUsageModule`. Fields that are set will be updated. +""" +input DbUsageModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableStatsLogTableId: UUID + tableStatsLogTableName: String + tableStatsDailyTableId: UUID + tableStatsDailyTableName: String + queryStatsLogTableId: UUID + queryStatsLogTableName: String + queryStatsDailyTableId: UUID + queryStatsDailyTableName: String + interval: String + retention: String + premake: Int + scope: String + prefix: String +} + """The output of our update `NotificationsModule` mutation.""" type UpdateNotificationsModulePayload { """ @@ -57742,31 +59109,31 @@ input WebauthnSettingPatch { challengeExpirySeconds: BigInt } -"""The output of our update `AppMembership` mutation.""" -type UpdateAppMembershipPayload { +"""The output of our update `BillingModule` mutation.""" +type UpdateBillingModulePayload { """ 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 `AppMembership` that was updated by this mutation.""" - appMembership: AppMembership + """The `BillingModule` that was updated by this mutation.""" + billingModule: BillingModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge } -"""All input for the `updateAppMembership` mutation.""" -input UpdateAppMembershipInput { +"""All input for the `updateBillingModule` mutation.""" +input UpdateBillingModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -57775,15 +59142,77 @@ input UpdateAppMembershipInput { id: UUID! """ - An object where the defined keys will be set on the `AppMembership` being updated. + An object where the defined keys will be set on the `BillingModule` being updated. """ - appMembershipPatch: AppMembershipPatch! + billingModulePatch: BillingModulePatch! } """ -Represents an update to a `AppMembership`. Fields that are set will be updated. +Represents an update to a `BillingModule`. Fields that are set will be updated. """ -input AppMembershipPatch { +input BillingModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + meterSourcesTableId: UUID + meterSourcesTableName: String + recordUsageFunction: String + prefix: String +} + +"""The output of our update `OrgMembership` mutation.""" +type UpdateOrgMembershipPayload { + """ + 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 `OrgMembership` that was updated by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the `updateOrgMembership` mutation.""" +input UpdateOrgMembershipInput { + """ + 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 `OrgMembership` being updated. + """ + orgMembershipPatch: OrgMembershipPatch! +} + +""" +Represents an update to a `OrgMembership`. Fields that are set will be updated. +""" +input OrgMembershipPatch { id: UUID createdAt: Datetime updatedAt: Datetime @@ -57799,14 +59228,16 @@ input AppMembershipPatch { """Whether this membership is temporarily disabled""" isDisabled: Boolean - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - """ Computed field indicating the membership is approved, verified, not banned, and not disabled """ isActive: Boolean + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean + """Whether the actor is the owner of this entity""" isOwner: Boolean @@ -57825,6 +59256,12 @@ input AppMembershipPatch { """References the user who holds this membership""" actorId: UUID + + """References the entity (org or group) this membership belongs to""" + entityId: UUID + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean profileId: UUID } @@ -57949,31 +59386,31 @@ input IndexPatch { updatedAt: Datetime } -"""The output of our update `OrgInvite` mutation.""" -type UpdateOrgInvitePayload { +"""The output of our update `AppInvite` mutation.""" +type UpdateAppInvitePayload { """ 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 `OrgInvite` that was updated by this mutation.""" - orgInvite: OrgInvite + """The `AppInvite` that was updated by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `updateOrgInvite` mutation.""" -input UpdateOrgInviteInput { +"""All input for the `updateAppInvite` mutation.""" +input UpdateAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -57982,15 +59419,15 @@ input UpdateOrgInviteInput { id: UUID! """ - An object where the defined keys will be set on the `OrgInvite` being updated. + An object where the defined keys will be set on the `AppInvite` being updated. """ - orgInvitePatch: OrgInvitePatch! + appInvitePatch: AppInvitePatch! } """ -Represents an update to a `OrgInvite`. Fields that are set will be updated. +Represents an update to a `AppInvite`. Fields that are set will be updated. """ -input OrgInvitePatch { +input AppInvitePatch { id: UUID """Email address of the invited recipient""" @@ -57999,9 +59436,6 @@ input OrgInvitePatch { """User ID of the member who sent this invitation""" senderId: UUID - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - """Unique random hex token used to redeem this invitation""" inviteToken: String @@ -58025,16 +59459,10 @@ input OrgInvitePatch { """ profileId: UUID - """ - Whether the resulting membership should be read-only when this invite is claimed - """ - isReadOnly: Boolean - """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime updatedAt: Datetime - entityId: UUID } """The output of our update `BillingProviderModule` mutation.""" @@ -58360,100 +59788,6 @@ input ProfilesModulePatch { prefix: String } -"""The output of our update `OrgMembership` mutation.""" -type UpdateOrgMembershipPayload { - """ - 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 `OrgMembership` that was updated by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the `updateOrgMembership` mutation.""" -input UpdateOrgMembershipInput { - """ - 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 `OrgMembership` being updated. - """ - orgMembershipPatch: OrgMembershipPatch! -} - -""" -Represents an update to a `OrgMembership`. Fields that are set will be updated. -""" -input OrgMembershipPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID - - """References the entity (org or group) this membership belongs to""" - entityId: UUID - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID -} - """The output of our update `EmbeddingChunk` mutation.""" type UpdateEmbeddingChunkPayload { """ @@ -58581,6 +59915,94 @@ input ForeignKeyConstraintPatch { updatedAt: Datetime } +"""The output of our update `OrgInvite` mutation.""" +type UpdateOrgInvitePayload { + """ + 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 `OrgInvite` that was updated by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the `updateOrgInvite` mutation.""" +input UpdateOrgInviteInput { + """ + 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 `OrgInvite` being updated. + """ + orgInvitePatch: OrgInvitePatch! +} + +""" +Represents an update to a `OrgInvite`. Fields that are set will be updated. +""" +input OrgInvitePatch { + id: UUID + + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID + + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """ + Whether the resulting membership should be read-only when this invite is claimed + """ + isReadOnly: Boolean + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID +} + """The output of our update `RelationProvision` mutation.""" type UpdateRelationProvisionPayload { """ @@ -58941,36 +60363,34 @@ input EntityTypeProvisionPatch { hasInviteAchievements: Boolean """ - Optional jsonb object for storage module configuration and initial bucket seeding. - Only used when has_storage = true; ignored otherwise. NULL = use defaults. - Recognized keys (all optional): - - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - - download_url_expiry_seconds (integer) presigned GET URL expiry override - - default_max_file_size (bigint) global max file size in bytes for this scope - - allowed_origins (text[]) default CORS origins for all buckets in this scope - - buckets (jsonb[]) array of initial bucket definitions to seed - Each bucket in the buckets array recognizes: - - name (text, required) bucket name e.g. 'documents' - - description (text) human-readable description - - is_public (boolean) whether files are publicly readable (default false) - - allowed_mime_types (text[]) whitelist of MIME types (null = any) - - max_file_size (bigint) max file size in bytes (null = use scope default) - - allowed_origins (text[]) per-bucket CORS override - - provisions (jsonb object) optional: customize storage tables - with additional nodes, fields, grants, and policies. - Keyed by table role: "files", "buckets". - Each value uses the same shape as table_provision: - { nodes, fields, grants, use_rls, policies }. Fanned out - to secure_table_provision targeting the corresponding table. - When a key includes policies[], those REPLACE the default - storage policies for that table; tables without a key still - get defaults. Missing "data" on policy entries is auto-populated - with storage-specific defaults (same as table_provision). - Example: add SearchBm25 for full-text search on files: - {"provisions": {"files": {"nodes": [{"$type": - "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - Example: - storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + Optional JSON array of storage module definitions. Each element provisions a separate + storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + and feature flags. Only used when has_storage = true; ignored otherwise. + NULL = provision a single default storage module with all defaults. + Each array element recognizes (all optional): + - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + Defaults to 'default' (omitted from table names). + Non-default keys become infixes: {prefix}_{key}_buckets. + - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + - download_url_expiry_seconds (integer) presigned GET URL expiry override + - default_max_file_size (bigint) global max file size in bytes for this module + - allowed_origins (text[]) default CORS origins for all buckets in this module + - restrict_reads (boolean) require read_files permission for SELECT on files + - has_path_shares (boolean) enable virtual filesystem + path share policies + - has_versioning (boolean) enable file version chains + - has_content_hash (boolean) enable content hash for dedup + - has_custom_keys (boolean) allow client-provided S3 keys + - has_audit_log (boolean) enable file events audit table + - has_confirm_upload (boolean) enable HeadObject confirmation flow + - confirm_upload_delay (interval) delay before first confirmation attempt + - buckets (jsonb[]) array of initial bucket definitions to seed. + Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + Each value: { nodes, fields, grants, use_rls, policies }. + Example (single module, backward compat): + storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + Example (multi-module): + storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb """ storageConfig: JSON @@ -59350,83 +60770,6 @@ input LimitsModulePatch { actorTableId: UUID } -"""The output of our update `StorageModule` mutation.""" -type UpdateStorageModulePayload { - """ - 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 `StorageModule` that was updated by this mutation.""" - storageModule: StorageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge -} - -"""All input for the `updateStorageModule` mutation.""" -input UpdateStorageModuleInput { - """ - 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 `StorageModule` being updated. - """ - storageModulePatch: StorageModulePatch! -} - -""" -Represents an update to a `StorageModule`. Fields that are set will be updated. -""" -input StorageModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - bucketsTableId: UUID - filesTableId: UUID - bucketsTableName: String - filesTableName: String - membershipType: Int - policies: JSON - skipDefaultPolicyTables: [String] - entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean - hasPathShares: Boolean - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean - hasContentHash: Boolean - hasCustomKeys: Boolean - hasAuditLog: Boolean - hasConfirmUpload: Boolean - confirmUploadDelay: IntervalInput - fileEventsTableId: UUID -} - """The output of our update `MembershipsModule` mutation.""" type UpdateMembershipsModulePayload { """ @@ -59505,6 +60848,84 @@ input MembershipsModulePatch { memberProfilesTableId: UUID } +"""The output of our update `StorageModule` mutation.""" +type UpdateStorageModulePayload { + """ + 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 `StorageModule` that was updated by this mutation.""" + storageModule: StorageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge +} + +"""All input for the `updateStorageModule` mutation.""" +input UpdateStorageModuleInput { + """ + 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 `StorageModule` being updated. + """ + storageModulePatch: StorageModulePatch! +} + +""" +Represents an update to a `StorageModule`. Fields that are set will be updated. +""" +input StorageModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + bucketsTableId: UUID + filesTableId: UUID + bucketsTableName: String + filesTableName: String + membershipType: Int + storageKey: String + policies: JSON + skipDefaultPolicyTables: [String] + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean + hasPathShares: Boolean + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean + hasContentHash: Boolean + hasCustomKeys: Boolean + hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput + fileEventsTableId: UUID +} + """The output of our update `EventsModule` mutation.""" type UpdateEventsModulePayload { """ @@ -59621,39 +61042,6 @@ input DeleteDefaultIdsModuleInput { id: UUID! } -"""The output of our delete `RoleType` mutation.""" -type DeleteRoleTypePayload { - """ - 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 `RoleType` that was deleted by this mutation.""" - roleType: RoleType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge -} - -"""All input for the `deleteRoleType` mutation.""" -input DeleteRoleTypeInput { - """ - 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: Int! -} - """The output of our delete `AppLimitCreditRedemption` mutation.""" type DeleteAppLimitCreditRedemptionPayload { """ @@ -59924,7 +61312,7 @@ input DeleteRefInput { """The primary unique identifier for the ref.""" id: UUID! - databaseId: UUID! + scopeId: UUID! } """The output of our delete `Store` mutation.""" @@ -59962,31 +61350,64 @@ input DeleteStoreInput { id: UUID! } -"""The output of our delete `EncryptedSecretsModule` mutation.""" -type DeleteEncryptedSecretsModulePayload { +"""The output of our delete `ConfigSecretsOrgModule` mutation.""" +type DeleteConfigSecretsOrgModulePayload { + """ + 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 `ConfigSecretsOrgModule` that was deleted by this mutation.""" + configSecretsOrgModule: ConfigSecretsOrgModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsOrgModule`. May be used by Relay 1.""" + configSecretsOrgModuleEdge( + """The method to use when ordering `ConfigSecretsOrgModule`.""" + orderBy: [ConfigSecretsOrgModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsOrgModuleEdge +} + +"""All input for the `deleteConfigSecretsOrgModule` mutation.""" +input DeleteConfigSecretsOrgModuleInput { + """ + 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 `ConfigSecretsUserModule` mutation.""" +type DeleteConfigSecretsUserModulePayload { """ 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 `EncryptedSecretsModule` that was deleted by this mutation.""" - encryptedSecretsModule: EncryptedSecretsModule + """The `ConfigSecretsUserModule` that was deleted by this mutation.""" + configSecretsUserModule: ConfigSecretsUserModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EncryptedSecretsModule`. May be used by Relay 1.""" - encryptedSecretsModuleEdge( - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleEdge + """An edge for our `ConfigSecretsUserModule`. May be used by Relay 1.""" + configSecretsUserModuleEdge( + """The method to use when ordering `ConfigSecretsUserModule`.""" + orderBy: [ConfigSecretsUserModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsUserModuleEdge } -"""All input for the `deleteEncryptedSecretsModule` mutation.""" -input DeleteEncryptedSecretsModuleInput { +"""All input for the `deleteConfigSecretsUserModule` mutation.""" +input DeleteConfigSecretsUserModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -60164,37 +61585,37 @@ input DeleteSiteModuleInput { id: UUID! } -"""The output of our delete `AppLimitCreditCode` mutation.""" -type DeleteAppLimitCreditCodePayload { +"""The output of our delete `RoleType` mutation.""" +type DeleteRoleTypePayload { """ 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 `AppLimitCreditCode` that was deleted by this mutation.""" - appLimitCreditCode: AppLimitCreditCode + """The `RoleType` that was deleted by this mutation.""" + roleType: RoleType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" - appLimitCreditCodeEdge( - """The method to use when ordering `AppLimitCreditCode`.""" - orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeEdge + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge } -"""All input for the `deleteAppLimitCreditCode` mutation.""" -input DeleteAppLimitCreditCodeInput { +"""All input for the `deleteRoleType` mutation.""" +input DeleteRoleTypeInput { """ 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! + id: Int! } """The output of our delete `SchemaGrant` mutation.""" @@ -60461,241 +61882,6 @@ input DeleteOrgPermissionDefaultInput { id: UUID! } -"""The output of our delete `AppPermission` mutation.""" -type DeleteAppPermissionPayload { - """ - 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 `AppPermission` that was deleted by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the `deleteAppPermission` mutation.""" -input DeleteAppPermissionInput { - """ - 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 `OrgPermission` mutation.""" -type DeleteOrgPermissionPayload { - """ - 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 `OrgPermission` that was deleted by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} - -"""All input for the `deleteOrgPermission` mutation.""" -input DeleteOrgPermissionInput { - """ - 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 `AppLimitCapsDefault` mutation.""" -type DeleteAppLimitCapsDefaultPayload { - """ - 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 `AppLimitCapsDefault` that was deleted by this mutation.""" - appLimitCapsDefault: AppLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" - appLimitCapsDefaultEdge( - """The method to use when ordering `AppLimitCapsDefault`.""" - orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapsDefaultEdge -} - -"""All input for the `deleteAppLimitCapsDefault` mutation.""" -input DeleteAppLimitCapsDefaultInput { - """ - 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 `OrgLimitCapsDefault` mutation.""" -type DeleteOrgLimitCapsDefaultPayload { - """ - 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 `OrgLimitCapsDefault` that was deleted by this mutation.""" - orgLimitCapsDefault: OrgLimitCapsDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" - orgLimitCapsDefaultEdge( - """The method to use when ordering `OrgLimitCapsDefault`.""" - orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapsDefaultEdge -} - -"""All input for the `deleteOrgLimitCapsDefault` mutation.""" -input DeleteOrgLimitCapsDefaultInput { - """ - 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 `AppLimitCap` mutation.""" -type DeleteAppLimitCapPayload { - """ - 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 `AppLimitCap` that was deleted by this mutation.""" - appLimitCap: AppLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLimitCap`. May be used by Relay 1.""" - appLimitCapEdge( - """The method to use when ordering `AppLimitCap`.""" - orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCapEdge -} - -"""All input for the `deleteAppLimitCap` mutation.""" -input DeleteAppLimitCapInput { - """ - 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 `OrgLimitCap` mutation.""" -type DeleteOrgLimitCapPayload { - """ - 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 `OrgLimitCap` that was deleted by this mutation.""" - orgLimitCap: OrgLimitCap - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgLimitCap`. May be used by Relay 1.""" - orgLimitCapEdge( - """The method to use when ordering `OrgLimitCap`.""" - orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCapEdge -} - -"""All input for the `deleteOrgLimitCap` mutation.""" -input DeleteOrgLimitCapInput { - """ - 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 `MembershipType` mutation.""" -type DeleteMembershipTypePayload { - """ - 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 `MembershipType` that was deleted by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the `deleteMembershipType` mutation.""" -input DeleteMembershipTypeInput { - """ - 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 - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! -} - """The output of our delete `DefaultPrivilege` mutation.""" type DeleteDefaultPrivilegePayload { """ @@ -60995,6 +62181,39 @@ input DeleteWebauthnCredentialsModuleInput { id: UUID! } +"""The output of our delete `AppMembershipDefault` mutation.""" +type DeleteAppMembershipDefaultPayload { + """ + 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 `AppMembershipDefault` that was deleted by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the `deleteAppMembershipDefault` mutation.""" +input DeleteAppMembershipDefaultInput { + """ + 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 `OrgAdminGrant` mutation.""" type DeleteOrgAdminGrantPayload { """ @@ -61028,6 +62247,39 @@ input DeleteOrgAdminGrantInput { id: UUID! } +"""The output of our delete `OrgMembershipDefault` mutation.""" +type DeleteOrgMembershipDefaultPayload { + """ + 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 `OrgMembershipDefault` that was deleted by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `deleteOrgMembershipDefault` mutation.""" +input DeleteOrgMembershipDefaultInput { + """ + 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 `OrgOwnerGrant` mutation.""" type DeleteOrgOwnerGrantPayload { """ @@ -61094,31 +62346,31 @@ input DeleteNodeTypeRegistryInput { name: String! } -"""The output of our delete `AppLimitDefault` mutation.""" -type DeleteAppLimitDefaultPayload { +"""The output of our delete `AppLimitCapsDefault` mutation.""" +type DeleteAppLimitCapsDefaultPayload { """ 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 `AppLimitDefault` that was deleted by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppLimitCapsDefault` that was deleted by this mutation.""" + appLimitCapsDefault: AppLimitCapsDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppLimitCapsDefault`. May be used by Relay 1.""" + appLimitCapsDefaultEdge( + """The method to use when ordering `AppLimitCapsDefault`.""" + orderBy: [AppLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapsDefaultEdge } -"""All input for the `deleteAppLimitDefault` mutation.""" -input DeleteAppLimitDefaultInput { +"""All input for the `deleteAppLimitCapsDefault` mutation.""" +input DeleteAppLimitCapsDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61127,31 +62379,31 @@ input DeleteAppLimitDefaultInput { id: UUID! } -"""The output of our delete `OrgLimitDefault` mutation.""" -type DeleteOrgLimitDefaultPayload { +"""The output of our delete `OrgLimitCapsDefault` mutation.""" +type DeleteOrgLimitCapsDefaultPayload { """ 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 `OrgLimitDefault` that was deleted by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `OrgLimitCapsDefault` that was deleted by this mutation.""" + orgLimitCapsDefault: OrgLimitCapsDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `OrgLimitCapsDefault`. May be used by Relay 1.""" + orgLimitCapsDefaultEdge( + """The method to use when ordering `OrgLimitCapsDefault`.""" + orderBy: [OrgLimitCapsDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapsDefaultEdge } -"""All input for the `deleteOrgLimitDefault` mutation.""" -input DeleteOrgLimitDefaultInput { +"""All input for the `deleteOrgLimitCapsDefault` mutation.""" +input DeleteOrgLimitCapsDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61160,31 +62412,31 @@ input DeleteOrgLimitDefaultInput { id: UUID! } -"""The output of our delete `AppLimitCreditCodeItem` mutation.""" -type DeleteAppLimitCreditCodeItemPayload { +"""The output of our delete `AppLimitCap` mutation.""" +type DeleteAppLimitCapPayload { """ 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 `AppLimitCreditCodeItem` that was deleted by this mutation.""" - appLimitCreditCodeItem: AppLimitCreditCodeItem + """The `AppLimitCap` that was deleted by this mutation.""" + appLimitCap: AppLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" - appLimitCreditCodeItemEdge( - """The method to use when ordering `AppLimitCreditCodeItem`.""" - orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditCodeItemEdge + """An edge for our `AppLimitCap`. May be used by Relay 1.""" + appLimitCapEdge( + """The method to use when ordering `AppLimitCap`.""" + orderBy: [AppLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCapEdge } -"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" -input DeleteAppLimitCreditCodeItemInput { +"""All input for the `deleteAppLimitCap` mutation.""" +input DeleteAppLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61193,31 +62445,31 @@ input DeleteAppLimitCreditCodeItemInput { id: UUID! } -"""The output of our delete `AppLimitWarning` mutation.""" -type DeleteAppLimitWarningPayload { +"""The output of our delete `OrgLimitCap` mutation.""" +type DeleteOrgLimitCapPayload { """ 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 `AppLimitWarning` that was deleted by this mutation.""" - appLimitWarning: AppLimitWarning + """The `OrgLimitCap` that was deleted by this mutation.""" + orgLimitCap: OrgLimitCap """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitWarning`. May be used by Relay 1.""" - appLimitWarningEdge( - """The method to use when ordering `AppLimitWarning`.""" - orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitWarningEdge + """An edge for our `OrgLimitCap`. May be used by Relay 1.""" + orgLimitCapEdge( + """The method to use when ordering `OrgLimitCap`.""" + orderBy: [OrgLimitCapOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCapEdge } -"""All input for the `deleteAppLimitWarning` mutation.""" -input DeleteAppLimitWarningInput { +"""All input for the `deleteOrgLimitCap` mutation.""" +input DeleteOrgLimitCapInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61292,6 +62544,39 @@ input DeleteCryptoAddressesModuleInput { id: UUID! } +"""The output of our delete `OrgChartEdge` mutation.""" +type DeleteOrgChartEdgePayload { + """ + 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 `OrgChartEdge` that was deleted by this mutation.""" + orgChartEdge: OrgChartEdge + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge +} + +"""All input for the `deleteOrgChartEdge` mutation.""" +input DeleteOrgChartEdgeInput { + """ + 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 `CryptoAddress` mutation.""" type DeleteCryptoAddressPayload { """ @@ -61325,31 +62610,31 @@ input DeleteCryptoAddressInput { id: UUID! } -"""The output of our delete `AgentMessage` mutation.""" -type DeleteAgentMessagePayload { +"""The output of our delete `AppLimitCreditCodeItem` mutation.""" +type DeleteAppLimitCreditCodeItemPayload { """ 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 `AgentMessage` that was deleted by this mutation.""" - agentMessage: AgentMessage + """The `AppLimitCreditCodeItem` that was deleted by this mutation.""" + appLimitCreditCodeItem: AppLimitCreditCodeItem """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AgentMessage`. May be used by Relay 1.""" - agentMessageEdge( - """The method to use when ordering `AgentMessage`.""" - orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentMessageEdge + """An edge for our `AppLimitCreditCodeItem`. May be used by Relay 1.""" + appLimitCreditCodeItemEdge( + """The method to use when ordering `AppLimitCreditCodeItem`.""" + orderBy: [AppLimitCreditCodeItemOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeItemEdge } -"""All input for the `deleteAgentMessage` mutation.""" -input DeleteAgentMessageInput { +"""All input for the `deleteAppLimitCreditCodeItem` mutation.""" +input DeleteAppLimitCreditCodeItemInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61358,31 +62643,31 @@ input DeleteAgentMessageInput { id: UUID! } -"""The output of our delete `AppLimitCredit` mutation.""" -type DeleteAppLimitCreditPayload { +"""The output of our delete `AppLimitDefault` mutation.""" +type DeleteAppLimitDefaultPayload { """ 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 `AppLimitCredit` that was deleted by this mutation.""" - appLimitCredit: AppLimitCredit + """The `AppLimitDefault` that was deleted by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitCredit`. May be used by Relay 1.""" - appLimitCreditEdge( - """The method to use when ordering `AppLimitCredit`.""" - orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitCreditEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the `deleteAppLimitCredit` mutation.""" -input DeleteAppLimitCreditInput { +"""All input for the `deleteAppLimitDefault` mutation.""" +input DeleteAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61391,31 +62676,31 @@ input DeleteAppLimitCreditInput { id: UUID! } -"""The output of our delete `OrgLimitWarning` mutation.""" -type DeleteOrgLimitWarningPayload { +"""The output of our delete `OrgLimitDefault` mutation.""" +type DeleteOrgLimitDefaultPayload { """ 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 `OrgLimitWarning` that was deleted by this mutation.""" - orgLimitWarning: OrgLimitWarning + """The `OrgLimitDefault` that was deleted by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" - orgLimitWarningEdge( - """The method to use when ordering `OrgLimitWarning`.""" - orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitWarningEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the `deleteOrgLimitWarning` mutation.""" -input DeleteOrgLimitWarningInput { +"""All input for the `deleteOrgLimitDefault` mutation.""" +input DeleteOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61424,105 +62709,169 @@ input DeleteOrgLimitWarningInput { id: UUID! } -"""The output of our delete `OrgLimitCredit` mutation.""" -type DeleteOrgLimitCreditPayload { +"""The output of our delete `Object` mutation.""" +type DeleteObjectPayload { """ 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 `OrgLimitCredit` that was deleted by this mutation.""" - orgLimitCredit: OrgLimitCredit + """The `Object` that was deleted by this mutation.""" + object: Object """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" - orgLimitCreditEdge( - """The method to use when ordering `OrgLimitCredit`.""" - orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitCreditEdge + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge } -"""All input for the `deleteOrgLimitCredit` mutation.""" -input DeleteOrgLimitCreditInput { +"""All input for the `deleteObject` mutation.""" +input DeleteObjectInput { """ 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! + scopeId: UUID! } -"""The output of our delete `Object` mutation.""" -type DeleteObjectPayload { +"""The output of our delete `AppPermission` mutation.""" +type DeleteAppPermissionPayload { """ 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 `Object` that was deleted by this mutation.""" - object: Object + """The `AppPermission` that was deleted by this mutation.""" + appPermission: AppPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Object`. May be used by Relay 1.""" - objectEdge( - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): ObjectEdge + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge } -"""All input for the `deleteObject` mutation.""" -input DeleteObjectInput { +"""All input for the `deleteAppPermission` mutation.""" +input DeleteAppPermissionInput { """ 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! - databaseId: UUID! } -"""The output of our delete `SiteMetadatum` mutation.""" -type DeleteSiteMetadatumPayload { +"""The output of our delete `OrgPermission` mutation.""" +type DeleteOrgPermissionPayload { """ 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 `SiteMetadatum` that was deleted by this mutation.""" - siteMetadatum: SiteMetadatum + """The `OrgPermission` that was deleted by this mutation.""" + orgPermission: OrgPermission """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge } -"""All input for the `deleteSiteMetadatum` mutation.""" -input DeleteSiteMetadatumInput { +"""All input for the `deleteOrgPermission` mutation.""" +input DeleteOrgPermissionInput { """ 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 `AppLimitCreditCode` mutation.""" +type DeleteAppLimitCreditCodePayload { + """ + 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 - """Unique identifier for this metadata record""" + """The `AppLimitCreditCode` that was deleted by this mutation.""" + appLimitCreditCode: AppLimitCreditCode + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitCreditCode`. May be used by Relay 1.""" + appLimitCreditCodeEdge( + """The method to use when ordering `AppLimitCreditCode`.""" + orderBy: [AppLimitCreditCodeOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditCodeEdge +} + +"""All input for the `deleteAppLimitCreditCode` mutation.""" +input DeleteAppLimitCreditCodeInput { + """ + 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 `AppLimitWarning` mutation.""" +type DeleteAppLimitWarningPayload { + """ + 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 `AppLimitWarning` that was deleted by this mutation.""" + appLimitWarning: AppLimitWarning + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitWarning`. May be used by Relay 1.""" + appLimitWarningEdge( + """The method to use when ordering `AppLimitWarning`.""" + orderBy: [AppLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitWarningEdge +} + +"""All input for the `deleteAppLimitWarning` mutation.""" +input DeleteAppLimitWarningInput { + """ + 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! } @@ -61626,8 +62975,43 @@ input DeleteCommitInput { """The primary unique identifier for the commit.""" id: UUID! - """The repository identifier""" - databaseId: UUID! + """The scope identifier""" + scopeId: UUID! +} + +"""The output of our delete `SiteMetadatum` mutation.""" +type DeleteSiteMetadatumPayload { + """ + 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 `SiteMetadatum` that was deleted by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the `deleteSiteMetadatum` mutation.""" +input DeleteSiteMetadatumInput { + """ + 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 metadata record""" + id: UUID! } """The output of our delete `PubkeySetting` mutation.""" @@ -61764,31 +63148,31 @@ input DeletePhoneNumberInput { id: UUID! } -"""The output of our delete `UsageSnapshot` mutation.""" -type DeleteUsageSnapshotPayload { +"""The output of our delete `AppLimitCredit` mutation.""" +type DeleteAppLimitCreditPayload { """ 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 `UsageSnapshot` that was deleted by this mutation.""" - usageSnapshot: UsageSnapshot + """The `AppLimitCredit` that was deleted by this mutation.""" + appLimitCredit: AppLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `UsageSnapshot`. May be used by Relay 1.""" - usageSnapshotEdge( - """The method to use when ordering `UsageSnapshot`.""" - orderBy: [UsageSnapshotOrderBy!]! = [PRIMARY_KEY_ASC] - ): UsageSnapshotEdge + """An edge for our `AppLimitCredit`. May be used by Relay 1.""" + appLimitCreditEdge( + """The method to use when ordering `AppLimitCredit`.""" + orderBy: [AppLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitCreditEdge } -"""All input for the `deleteUsageSnapshot` mutation.""" -input DeleteUsageSnapshotInput { +"""All input for the `deleteAppLimitCredit` mutation.""" +input DeleteAppLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61797,31 +63181,31 @@ input DeleteUsageSnapshotInput { id: UUID! } -"""The output of our delete `AppClaimedInvite` mutation.""" -type DeleteAppClaimedInvitePayload { +"""The output of our delete `OrgLimitCredit` mutation.""" +type DeleteOrgLimitCreditPayload { """ 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 `AppClaimedInvite` that was deleted by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `OrgLimitCredit` that was deleted by this mutation.""" + orgLimitCredit: OrgLimitCredit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `OrgLimitCredit`. May be used by Relay 1.""" + orgLimitCreditEdge( + """The method to use when ordering `OrgLimitCredit`.""" + orderBy: [OrgLimitCreditOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitCreditEdge } -"""All input for the `deleteAppClaimedInvite` mutation.""" -input DeleteAppClaimedInviteInput { +"""All input for the `deleteOrgLimitCredit` mutation.""" +input DeleteOrgLimitCreditInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61830,31 +63214,31 @@ input DeleteAppClaimedInviteInput { id: UUID! } -"""The output of our delete `AppMembershipDefault` mutation.""" -type DeleteAppMembershipDefaultPayload { +"""The output of our delete `AppClaimedInvite` mutation.""" +type DeleteAppClaimedInvitePayload { """ 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 `AppMembershipDefault` that was deleted by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `AppClaimedInvite` that was deleted by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `deleteAppMembershipDefault` mutation.""" -input DeleteAppMembershipDefaultInput { +"""All input for the `deleteAppClaimedInvite` mutation.""" +input DeleteAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61863,31 +63247,31 @@ input DeleteAppMembershipDefaultInput { id: UUID! } -"""The output of our delete `OrgMembershipDefault` mutation.""" -type DeleteOrgMembershipDefaultPayload { +"""The output of our delete `OrgLimitWarning` mutation.""" +type DeleteOrgLimitWarningPayload { """ 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 `OrgMembershipDefault` that was deleted by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `OrgLimitWarning` that was deleted by this mutation.""" + orgLimitWarning: OrgLimitWarning """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `OrgLimitWarning`. May be used by Relay 1.""" + orgLimitWarningEdge( + """The method to use when ordering `OrgLimitWarning`.""" + orderBy: [OrgLimitWarningOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitWarningEdge } -"""All input for the `deleteOrgMembershipDefault` mutation.""" -input DeleteOrgMembershipDefaultInput { +"""All input for the `deleteOrgLimitWarning` mutation.""" +input DeleteOrgLimitWarningInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -61896,37 +63280,41 @@ input DeleteOrgMembershipDefaultInput { id: UUID! } -"""The output of our delete `AuditLog` mutation.""" -type DeleteAuditLogPayload { +"""The output of our delete `MembershipType` mutation.""" +type DeleteMembershipTypePayload { """ 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 `AuditLog` that was deleted by this mutation.""" - auditLog: AuditLog + """The `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `deleteAuditLog` mutation.""" -input DeleteAuditLogInput { +"""All input for the `deleteMembershipType` mutation.""" +input DeleteMembershipTypeInput { """ 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! + + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! } """The output of our delete `Domain` mutation.""" @@ -61999,105 +63387,6 @@ input DeleteRlsSettingInput { id: UUID! } -"""The output of our delete `AgentTask` mutation.""" -type DeleteAgentTaskPayload { - """ - 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 `AgentTask` that was deleted by this mutation.""" - agentTask: AgentTask - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AgentTask`. May be used by Relay 1.""" - agentTaskEdge( - """The method to use when ordering `AgentTask`.""" - orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentTaskEdge -} - -"""All input for the `deleteAgentTask` mutation.""" -input DeleteAgentTaskInput { - """ - 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 `AgentThread` mutation.""" -type DeleteAgentThreadPayload { - """ - 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 `AgentThread` that was deleted by this mutation.""" - agentThread: AgentThread - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AgentThread`. May be used by Relay 1.""" - agentThreadEdge( - """The method to use when ordering `AgentThread`.""" - orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] - ): AgentThreadEdge -} - -"""All input for the `deleteAgentThread` mutation.""" -input DeleteAgentThreadInput { - """ - 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 `Email` mutation.""" -type DeleteEmailPayload { - """ - 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 `Email` that was deleted by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the `deleteEmail` mutation.""" -input DeleteEmailInput { - """ - 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 `AppGrant` mutation.""" type DeleteAppGrantPayload { """ @@ -62164,69 +63453,41 @@ input DeleteOrgClaimedInviteInput { id: UUID! } -"""The output of our delete `OrgChartEdge` mutation.""" -type DeleteOrgChartEdgePayload { +"""The output of our delete `AuditLogAuth` mutation.""" +type DeleteAuditLogAuthPayload { """ 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 `OrgChartEdge` that was deleted by this mutation.""" - orgChartEdge: OrgChartEdge + """The `AuditLogAuth` that was deleted by this mutation.""" + auditLogAuth: AuditLogAuth """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """An edge for our `AuditLogAuth`. May be used by Relay 1.""" + auditLogAuthEdge( + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogAuthEdge } -"""All input for the `deleteOrgChartEdge` mutation.""" -input DeleteOrgChartEdgeInput { +"""All input for the `deleteAuditLogAuth` mutation.""" +input DeleteAuditLogAuthInput { """ 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 `Partition` mutation.""" -type DeletePartitionPayload { - """ - 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 `Partition` that was deleted by this mutation.""" - partition: Partition - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Partition`. May be used by Relay 1.""" - partitionEdge( - """The method to use when ordering `Partition`.""" - orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] - ): PartitionEdge -} + createdAt: Datetime! -"""All input for the `deletePartition` mutation.""" -input DeletePartitionInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Unique identifier for each audit event (uuidv7 provides temporal ordering) """ - clientMutationId: String id: UUID! } @@ -62331,6 +63592,39 @@ input DeleteSessionsModuleInput { id: UUID! } +"""The output of our delete `OrgMemberProfile` mutation.""" +type DeleteOrgMemberProfilePayload { + """ + 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 `OrgMemberProfile` that was deleted by this mutation.""" + orgMemberProfile: OrgMemberProfile + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge +} + +"""All input for the `deleteOrgMemberProfile` mutation.""" +input DeleteOrgMemberProfileInput { + """ + 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 `OrgGrant` mutation.""" type DeleteOrgGrantPayload { """ @@ -62364,6 +63658,72 @@ input DeleteOrgGrantInput { id: UUID! } +"""The output of our delete `Partition` mutation.""" +type DeletePartitionPayload { + """ + 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 `Partition` that was deleted by this mutation.""" + partition: Partition + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Partition`. May be used by Relay 1.""" + partitionEdge( + """The method to use when ordering `Partition`.""" + orderBy: [PartitionOrderBy!]! = [PRIMARY_KEY_ASC] + ): PartitionEdge +} + +"""All input for the `deletePartition` mutation.""" +input DeletePartitionInput { + """ + 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 `AgentChatModule` mutation.""" +type DeleteAgentChatModulePayload { + """ + 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 `AgentChatModule` that was deleted by this mutation.""" + agentChatModule: AgentChatModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentChatModule`. May be used by Relay 1.""" + agentChatModuleEdge( + """The method to use when ordering `AgentChatModule`.""" + orderBy: [AgentChatModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentChatModuleEdge +} + +"""All input for the `deleteAgentChatModule` mutation.""" +input DeleteAgentChatModuleInput { + """ + 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 `Blueprint` mutation.""" type DeleteBlueprintPayload { """ @@ -62531,31 +63891,31 @@ input DeletePlansModuleInput { id: UUID! } -"""The output of our delete `AppLimit` mutation.""" -type DeleteAppLimitPayload { +"""The output of our delete `Email` mutation.""" +type DeleteEmailPayload { """ 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 `AppLimit` that was deleted by this mutation.""" - appLimit: AppLimit + """The `Email` that was deleted by this mutation.""" + email: Email """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge } -"""All input for the `deleteAppLimit` mutation.""" -input DeleteAppLimitInput { +"""All input for the `deleteEmail` mutation.""" +input DeleteEmailInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -62564,36 +63924,75 @@ input DeleteAppLimitInput { id: UUID! } -"""The output of our delete `OrgMemberProfile` mutation.""" -type DeleteOrgMemberProfilePayload { +"""The output of our delete `AppLimitEvent` mutation.""" +type DeleteAppLimitEventPayload { """ 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 `OrgMemberProfile` that was deleted by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `AppLimitEvent` that was deleted by this mutation.""" + appLimitEvent: AppLimitEvent """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `AppLimitEvent`. May be used by Relay 1.""" + appLimitEventEdge( + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEventEdge } -"""All input for the `deleteOrgMemberProfile` mutation.""" -input DeleteOrgMemberProfileInput { +"""All input for the `deleteAppLimitEvent` mutation.""" +input DeleteAppLimitEventInput { """ 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 + createdAt: Datetime! + + """Unique identifier for each limit event""" + id: UUID! +} + +"""The output of our delete `OrgLimitEvent` mutation.""" +type DeleteOrgLimitEventPayload { + """ + 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 `OrgLimitEvent` that was deleted by this mutation.""" + orgLimitEvent: OrgLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitEvent`. May be used by Relay 1.""" + orgLimitEventEdge( + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEventEdge +} + +"""All input for the `deleteOrgLimitEvent` mutation.""" +input DeleteOrgLimitEventInput { + """ + 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 + createdAt: Datetime! + + """Unique identifier for each limit event""" id: UUID! } @@ -62665,39 +64064,6 @@ input DeleteDatabaseSettingInput { id: UUID! } -"""The output of our delete `BillingModule` mutation.""" -type DeleteBillingModulePayload { - """ - 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 `BillingModule` that was deleted by this mutation.""" - billingModule: BillingModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge -} - -"""All input for the `deleteBillingModule` mutation.""" -input DeleteBillingModuleInput { - """ - 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 { """ @@ -62797,6 +64163,39 @@ input DeleteInvitesModuleInput { id: UUID! } +"""The output of our delete `OrgMembershipSetting` mutation.""" +type DeleteOrgMembershipSettingPayload { + """ + 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 `OrgMembershipSetting` that was deleted by this mutation.""" + orgMembershipSetting: OrgMembershipSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge +} + +"""All input for the `deleteOrgMembershipSetting` mutation.""" +input DeleteOrgMembershipSettingInput { + """ + 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 `SecureTableProvision` mutation.""" type DeleteSecureTableProvisionPayload { """ @@ -62832,31 +64231,31 @@ input DeleteSecureTableProvisionInput { id: UUID! } -"""The output of our delete `OrgLimitAggregate` mutation.""" -type DeleteOrgLimitAggregatePayload { +"""The output of our delete `AppLimit` mutation.""" +type DeleteAppLimitPayload { """ 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 `OrgLimitAggregate` that was deleted by this mutation.""" - orgLimitAggregate: OrgLimitAggregate + """The `AppLimit` that was deleted by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" - orgLimitAggregateEdge( - """The method to use when ordering `OrgLimitAggregate`.""" - orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitAggregateEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the `deleteOrgLimitAggregate` mutation.""" -input DeleteOrgLimitAggregateInput { +"""All input for the `deleteAppLimit` mutation.""" +input DeleteAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -62865,71 +64264,170 @@ input DeleteOrgLimitAggregateInput { id: UUID! } -"""The output of our delete `OrgLimit` mutation.""" -type DeleteOrgLimitPayload { +"""The output of our delete `ApiSetting` mutation.""" +type DeleteApiSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was deleted by this mutation.""" - orgLimit: OrgLimit + """The `ApiSetting` that was deleted by this mutation.""" + apiSetting: ApiSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge } -"""All input for the `deleteOrgLimit` mutation.""" -input DeleteOrgLimitInput { +"""All input for the `deleteApiSetting` mutation.""" +input DeleteApiSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this API settings record""" id: UUID! } -"""The output of our delete `ApiSetting` mutation.""" -type DeleteApiSettingPayload { +"""The output of our delete `ComputeLogModule` mutation.""" +type DeleteComputeLogModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ApiSetting` that was deleted by this mutation.""" - apiSetting: ApiSetting + """The `ComputeLogModule` that was deleted by this mutation.""" + computeLogModule: ComputeLogModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge } -"""All input for the `deleteApiSetting` mutation.""" -input DeleteApiSettingInput { +"""All input for the `deleteComputeLogModule` mutation.""" +input DeleteComputeLogModuleInput { """ 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! +} - """Unique identifier for this API settings record""" +"""The output of our delete `InferenceLogModule` mutation.""" +type DeleteInferenceLogModulePayload { + """ + 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 `InferenceLogModule` that was deleted by this mutation.""" + inferenceLogModule: InferenceLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InferenceLogModule`. May be used by Relay 1.""" + inferenceLogModuleEdge( + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InferenceLogModuleEdge +} + +"""All input for the `deleteInferenceLogModule` mutation.""" +input DeleteInferenceLogModuleInput { + """ + 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 `StorageLogModule` mutation.""" +type DeleteStorageLogModulePayload { + """ + 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 `StorageLogModule` that was deleted by this mutation.""" + storageLogModule: StorageLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageLogModule`. May be used by Relay 1.""" + storageLogModuleEdge( + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageLogModuleEdge +} + +"""All input for the `deleteStorageLogModule` mutation.""" +input DeleteStorageLogModuleInput { + """ + 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 `TransferLogModule` mutation.""" +type DeleteTransferLogModulePayload { + """ + 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 `TransferLogModule` that was deleted by this mutation.""" + transferLogModule: TransferLogModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TransferLogModule`. May be used by Relay 1.""" + transferLogModuleEdge( + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TransferLogModuleEdge +} + +"""All input for the `deleteTransferLogModule` mutation.""" +input DeleteTransferLogModuleInput { + """ + 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! } @@ -62966,31 +64464,64 @@ input DeleteEnumInput { id: UUID! } -"""The output of our delete `User` mutation.""" -type DeleteUserPayload { +"""The output of our delete `OrgLimitAggregate` mutation.""" +type DeleteOrgLimitAggregatePayload { """ 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 `User` that was deleted by this mutation.""" - user: User + """The `OrgLimitAggregate` that was deleted by this mutation.""" + orgLimitAggregate: OrgLimitAggregate """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `User`. May be used by Relay 1.""" - userEdge( - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] - ): UserEdge + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge } -"""All input for the `deleteUser` mutation.""" -input DeleteUserInput { +"""All input for the `deleteOrgLimitAggregate` mutation.""" +input DeleteOrgLimitAggregateInput { + """ + 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 `OrgLimit` mutation.""" +type DeleteOrgLimitPayload { + """ + 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 `OrgLimit` that was deleted by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `deleteOrgLimit` mutation.""" +input DeleteOrgLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63065,31 +64596,31 @@ input DeleteWebauthnAuthModuleInput { id: UUID! } -"""The output of our delete `AppInvite` mutation.""" -type DeleteAppInvitePayload { +"""The output of our delete `AppMembership` mutation.""" +type DeleteAppMembershipPayload { """ 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 `AppInvite` that was deleted by this mutation.""" - appInvite: AppInvite + """The `AppMembership` that was deleted by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `deleteAppInvite` mutation.""" -input DeleteAppInviteInput { +"""All input for the `deleteAppMembership` mutation.""" +input DeleteAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63098,31 +64629,31 @@ input DeleteAppInviteInput { id: UUID! } -"""The output of our delete `OrgMembershipSetting` mutation.""" -type DeleteOrgMembershipSettingPayload { +"""The output of our delete `User` mutation.""" +type DeleteUserPayload { """ 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 `OrgMembershipSetting` that was deleted by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `User` that was deleted by this mutation.""" + user: User """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge } -"""All input for the `deleteOrgMembershipSetting` mutation.""" -input DeleteOrgMembershipSettingInput { +"""All input for the `deleteUser` mutation.""" +input DeleteUserInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63201,6 +64732,39 @@ input DeleteSiteInput { id: UUID! } +"""The output of our delete `DbUsageModule` mutation.""" +type DeleteDbUsageModulePayload { + """ + 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 `DbUsageModule` that was deleted by this mutation.""" + dbUsageModule: DbUsageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge +} + +"""All input for the `deleteDbUsageModule` mutation.""" +input DeleteDbUsageModuleInput { + """ + 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 `NotificationsModule` mutation.""" type DeleteNotificationsModulePayload { """ @@ -63533,31 +65097,64 @@ input DeleteWebauthnSettingInput { id: UUID! } -"""The output of our delete `AppMembership` mutation.""" -type DeleteAppMembershipPayload { +"""The output of our delete `BillingModule` mutation.""" +type DeleteBillingModulePayload { """ 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 `AppMembership` that was deleted by this mutation.""" - appMembership: AppMembership + """The `BillingModule` that was deleted by this mutation.""" + billingModule: BillingModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge } -"""All input for the `deleteAppMembership` mutation.""" -input DeleteAppMembershipInput { +"""All input for the `deleteBillingModule` mutation.""" +input DeleteBillingModuleInput { + """ + 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 `OrgMembership` mutation.""" +type DeleteOrgMembershipPayload { + """ + 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 `OrgMembership` that was deleted by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the `deleteOrgMembership` mutation.""" +input DeleteOrgMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63632,31 +65229,31 @@ input DeleteIndexInput { id: UUID! } -"""The output of our delete `OrgInvite` mutation.""" -type DeleteOrgInvitePayload { +"""The output of our delete `AppInvite` mutation.""" +type DeleteAppInvitePayload { """ 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 `OrgInvite` that was deleted by this mutation.""" - orgInvite: OrgInvite + """The `AppInvite` that was deleted by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `deleteOrgInvite` mutation.""" -input DeleteOrgInviteInput { +"""All input for the `deleteAppInvite` mutation.""" +input DeleteAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -63799,39 +65396,6 @@ input DeleteProfilesModuleInput { id: UUID! } -"""The output of our delete `OrgMembership` mutation.""" -type DeleteOrgMembershipPayload { - """ - 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 `OrgMembership` that was deleted by this mutation.""" - orgMembership: OrgMembership - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge -} - -"""All input for the `deleteOrgMembership` mutation.""" -input DeleteOrgMembershipInput { - """ - 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 `EmbeddingChunk` mutation.""" type DeleteEmbeddingChunkPayload { """ @@ -63898,6 +65462,39 @@ input DeleteForeignKeyConstraintInput { id: UUID! } +"""The output of our delete `OrgInvite` mutation.""" +type DeleteOrgInvitePayload { + """ + 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 `OrgInvite` that was deleted by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the `deleteOrgInvite` mutation.""" +input DeleteOrgInviteInput { + """ + 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 `RelationProvision` mutation.""" type DeleteRelationProvisionPayload { """ @@ -64100,31 +65697,31 @@ input DeleteLimitsModuleInput { id: UUID! } -"""The output of our delete `StorageModule` mutation.""" -type DeleteStorageModulePayload { +"""The output of our delete `MembershipsModule` mutation.""" +type DeleteMembershipsModulePayload { """ 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 `StorageModule` that was deleted by this mutation.""" - storageModule: StorageModule + """The `MembershipsModule` that was deleted 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 `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge + """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 `deleteStorageModule` mutation.""" -input DeleteStorageModuleInput { +"""All input for the `deleteMembershipsModule` mutation.""" +input DeleteMembershipsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -64133,31 +65730,31 @@ input DeleteStorageModuleInput { id: UUID! } -"""The output of our delete `MembershipsModule` mutation.""" -type DeleteMembershipsModulePayload { +"""The output of our delete `StorageModule` mutation.""" +type DeleteStorageModulePayload { """ 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 deleted by this mutation.""" - membershipsModule: MembershipsModule + """The `StorageModule` that was deleted by this mutation.""" + storageModule: StorageModule """ 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 + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge } -"""All input for the `deleteMembershipsModule` mutation.""" -input DeleteMembershipsModuleInput { +"""All input for the `deleteStorageModule` mutation.""" +input DeleteStorageModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index 5c25475ca6..074ee9ab2e 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 45 +- **Tables:** 44 - **Custom queries:** 9 - **Custom mutations:** 3 diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index 06cda7b6e2..b973588a8f 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -30,42 +30,41 @@ const db = createClient({ | `appLimitCredit` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | +| `orgChartEdge` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitCredit` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `orgLimitWarning` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | | `appClaimedInvite` | findMany, findOne, create, update, delete | +| `orgLimitWarning` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `orgGrant` | findMany, findOne, create, update, delete | | `appLimitEvent` | findMany, findOne, create, update, delete | | `orgLimitEvent` | findMany, findOne, create, update, delete | -| `orgGrant` | findMany, findOne, create, update, delete | -| `orgChartEdge` | findMany, findOne, create, update, delete | -| `usageSnapshot` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | +| `appMembership` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgMembership` | findMany, findOne, create, update, delete | +| `orgMemberProfile` | findMany, findOne, create, update, delete | | `orgLimitAggregate` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | -| `orgMemberProfile` | findMany, findOne, create, update, delete | -| `appMembership` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | -| `orgMembership` | findMany, findOne, create, update, delete | ## Table Operations @@ -355,37 +354,72 @@ const updated = await db.appPermissionDefault.update({ where: { id: '' }, const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.appAdminGrant` -CRUD operations for AppLimitCreditCode records. +CRUD operations for AppAdminGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// List all 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.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermissionDefault` @@ -419,9 +453,44 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appAdminGrant` +### `db.appMembershipDefault` -CRUD operations for AppAdminGrant records. +CRUD operations for AppMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgAdminGrant` + +CRUD operations for OrgAdminGrant records. **Fields:** @@ -430,6 +499,7 @@ CRUD operations for AppAdminGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -437,25 +507,60 @@ CRUD operations for AppAdminGrant records. **Operations:** ```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all 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.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: 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.appAdminGrant.create({ data: { isGrant: '', actorId: '', 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.appAdminGrant.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.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appOwnerGrant` +### `db.orgMembershipDefault` -CRUD operations for AppOwnerGrant records. +CRUD operations for OrgMembershipDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: 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 } }).execute(); + +// Create +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, 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.orgOwnerGrant` + +CRUD operations for OrgOwnerGrant records. **Fields:** @@ -464,6 +569,7 @@ CRUD operations for AppOwnerGrant records. | `id` | UUID | No | | `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | | `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -471,20 +577,20 @@ CRUD operations for AppOwnerGrant records. **Operations:** ```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all 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.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: 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.appOwnerGrant.create({ data: { isGrant: '', actorId: '', 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.appOwnerGrant.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.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -613,154 +719,86 @@ const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { n const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.orgAdminGrant` +### `db.orgChartEdge` -CRUD operations for OrgAdminGrant records. +CRUD operations for OrgChartEdge records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | +| `childId` | UUID | Yes | +| `parentId` | UUID | Yes | +| `positionTitle` | String | Yes | +| `positionLevel` | Int | Yes | **Operations:** ```typescript -// List all orgAdminGrant records -const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// 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 } }).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.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.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, 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.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` -### `db.orgOwnerGrant` +### `db.appLimitDefault` -CRUD operations for OrgOwnerGrant records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all orgOwnerGrant records -const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: 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.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.orgLimitDefault` -CRUD operations for MembershipType records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | +| `id` | UUID | No | | `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | - -**Operations:** - -```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); - -// Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** @@ -816,42 +854,42 @@ const updated = await db.orgLimitCredit.update({ where: { id: '' }, data: const deleted = await db.orgLimitCredit.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitWarning` +### `db.appLimitCreditCode` -CRUD operations for AppLimitWarning records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `warningType` | String | Yes | -| `thresholdValue` | BigInt | Yes | -| `taskIdentifier` | String | Yes | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | Yes | **Operations:** ```typescript -// List all appLimitWarning records -const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Get one by id -const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitWarning` +### `db.appLimitWarning` -CRUD operations for OrgLimitWarning records. +CRUD operations for AppLimitWarning records. **Fields:** @@ -862,25 +900,24 @@ CRUD operations for OrgLimitWarning records. | `warningType` | String | Yes | | `thresholdValue` | BigInt | Yes | | `taskIdentifier` | String | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgLimitWarning records -const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +// List all appLimitWarning records +const items = await db.appLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Get one by id -const item = await db.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); +const item = await db.appLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true } }).execute(); // Create -const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -954,109 +991,107 @@ const updated = await db.appClaimedInvite.update({ where: { id: '' }, data const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appGrant` +### `db.orgLimitWarning` -CRUD operations for AppGrant records. +CRUD operations for OrgLimitWarning records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `name` | String | Yes | +| `warningType` | String | Yes | +| `thresholdValue` | BigInt | Yes | +| `taskIdentifier` | String | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitWarning records +const items = await db.orgLimitWarning.findMany({ select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: 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.orgLimitWarning.findOne({ id: '', select: { id: true, name: true, warningType: true, thresholdValue: true, taskIdentifier: true, entityId: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitWarning.create({ data: { name: '', warningType: '', thresholdValue: '', taskIdentifier: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitWarning.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembershipDefault` +### `db.membershipType` -CRUD operations for AppMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all appMembershipDefault records -const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: 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.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipDefault` +### `db.appGrant` -CRUD operations for OrgMembershipDefault records. +CRUD operations for AppGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all 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.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: 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.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgClaimedInvite` @@ -1094,51 +1129,52 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` +### `db.orgGrant` -CRUD operations for AppLimitEvent records. +CRUD operations for OrgGrant records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | Yes | +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all 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.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, 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.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitEvent` +### `db.appLimitEvent` -CRUD operations for OrgLimitEvent records. +CRUD operations for AppLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | @@ -1152,61 +1188,64 @@ CRUD operations for OrgLimitEvent records. **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgGrant` +### `db.orgLimitEvent` -CRUD operations for OrgGrant records. +CRUD operations for OrgLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | +| `name` | String | Yes | | `actorId` | UUID | Yes | | `entityId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all 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(); +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.orgChartEdge` +### `db.orgMembershipSetting` -CRUD operations for OrgChartEdge records. +CRUD operations for OrgMembershipSetting records. **Fields:** @@ -1215,63 +1254,79 @@ CRUD operations for OrgChartEdge records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | | `entityId` | UUID | Yes | -| `childId` | UUID | Yes | -| `parentId` | UUID | Yes | -| `positionTitle` | String | Yes | -| `positionLevel` | Int | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | 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 } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: 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 } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.usageSnapshot` +### `db.appMembership` -CRUD operations for UsageSnapshot records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `databaseId` | UUID | Yes | -| `metricName` | String | Yes | -| `metricValue` | BigInt | Yes | -| `dimensions` | JSON | Yes | -| `capturedAt` | Datetime | Yes | | `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all usageSnapshot records -const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); +// List all 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.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: 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.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, 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.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -1313,50 +1368,55 @@ const updated = await db.appLimit.update({ where: { id: '' }, data: { name const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.appInvite` +### `db.orgMembership` -CRUD operations for AppInvite records. +CRUD operations for OrgMembership 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 | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | **Operations:** ```typescript -// List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); // Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.orgMemberProfile` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgMemberProfile records. **Fields:** @@ -1365,35 +1425,32 @@ CRUD operations for OrgMembershipSetting records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | +| `membershipId` | UUID | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `actorId` | UUID | Yes | +| `displayName` | String | Yes | +| `email` | String | Yes | +| `title` | String | Yes | +| `bio` | String | Yes | +| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// List all orgMemberProfile records +const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); +const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitAggregate` @@ -1476,87 +1533,45 @@ const updated = await db.orgLimit.update({ where: { id: '' }, data: { name const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMemberProfile` +### `db.appInvite` -CRUD operations for OrgMemberProfile records. +CRUD operations for AppInvite 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 | +| `profileId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `membershipId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `actorId` | UUID | Yes | -| `displayName` | String | Yes | -| `email` | String | Yes | -| `title` | String | Yes | -| `bio` | String | Yes | -| `profilePicture` | ConstructiveInternalTypeImage | Yes | **Operations:** ```typescript -// List all orgMemberProfile records -const items = await db.orgMemberProfile.findMany({ select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Get one by id -const item = await db.orgMemberProfile.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, membershipId: true, entityId: true, actorId: true, displayName: true, email: true, title: true, bio: true, profilePicture: true } }).execute(); - -// Create -const created = await db.orgMemberProfile.create({ data: { membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMemberProfile.update({ where: { id: '' }, data: { membershipId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembership` - -CRUD operations for AppMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all 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(); +// List all appInvite records +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: 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.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: 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.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` @@ -1603,52 +1618,6 @@ const updated = await db.orgInvite.update({ where: { id: '' }, data: { ema const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` - -CRUD operations for OrgMembership records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | - -**Operations:** - -```typescript -// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); - -// Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.appPermissionsGetPaddedMask` diff --git a/sdk/constructive-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts index ceecedd2a4..3bd22a1077 100644 --- a/sdk/constructive-sdk/src/admin/orm/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/index.ts @@ -14,46 +14,45 @@ import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem'; import { AppLimitCreditModel } from './models/appLimitCredit'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; import { AppLimitCapModel } from './models/appLimitCap'; import { OrgLimitCapModel } from './models/orgLimitCap'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { MembershipTypeModel } from './models/membershipType'; +import { OrgChartEdgeModel } from './models/orgChartEdge'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; import { OrgLimitCreditModel } from './models/orgLimitCredit'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { OrgLimitWarningModel } from './models/orgLimitWarning'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; +import { OrgLimitWarningModel } from './models/orgLimitWarning'; +import { MembershipTypeModel } from './models/membershipType'; import { AppGrantModel } from './models/appGrant'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { OrgGrantModel } from './models/orgGrant'; import { AppLimitEventModel } from './models/appLimitEvent'; import { OrgLimitEventModel } from './models/orgLimitEvent'; -import { OrgGrantModel } from './models/orgGrant'; -import { OrgChartEdgeModel } from './models/orgChartEdge'; -import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppLimitModel } from './models/appLimit'; -import { AppInviteModel } from './models/appInvite'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; +import { AppMembershipModel } from './models/appMembership'; +import { AppLimitModel } from './models/appLimit'; +import { OrgMembershipModel } from './models/orgMembership'; +import { OrgMemberProfileModel } from './models/orgMemberProfile'; import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { OrgLimitModel } from './models/orgLimit'; -import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { AppMembershipModel } from './models/appMembership'; +import { AppInviteModel } from './models/appInvite'; import { OrgInviteModel } from './models/orgInvite'; -import { OrgMembershipModel } from './models/orgMembership'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; @@ -94,42 +93,41 @@ export function createClient(config: OrmClientConfig) { appLimitCredit: new AppLimitCreditModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), appLimitCap: new AppLimitCapModel(client), orgLimitCap: new OrgLimitCapModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - membershipType: new MembershipTypeModel(client), + orgChartEdge: new OrgChartEdgeModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), orgLimitCredit: new OrgLimitCreditModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), appLimitWarning: new AppLimitWarningModel(client), - orgLimitWarning: new OrgLimitWarningModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), appClaimedInvite: new AppClaimedInviteModel(client), + orgLimitWarning: new OrgLimitWarningModel(client), + membershipType: new MembershipTypeModel(client), appGrant: new AppGrantModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), + orgGrant: new OrgGrantModel(client), appLimitEvent: new AppLimitEventModel(client), orgLimitEvent: new OrgLimitEventModel(client), - orgGrant: new OrgGrantModel(client), - orgChartEdge: new OrgChartEdgeModel(client), - usageSnapshot: new UsageSnapshotModel(client), - appLimit: new AppLimitModel(client), - appInvite: new AppInviteModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), + appMembership: new AppMembershipModel(client), + appLimit: new AppLimitModel(client), + orgMembership: new OrgMembershipModel(client), + orgMemberProfile: new OrgMemberProfileModel(client), orgLimitAggregate: new OrgLimitAggregateModel(client), orgLimit: new OrgLimitModel(client), - orgMemberProfile: new OrgMemberProfileModel(client), - appMembership: new AppMembershipModel(client), + appInvite: new AppInviteModel(client), orgInvite: new OrgInviteModel(client), - orgMembership: new OrgMembershipModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index 0e9e56aec5..54a2d80e58 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -316,17 +316,27 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { +/** Records of admin role grants and revocations between members */ +export interface AppAdminGrant { id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean | null; + /** The member receiving or losing the admin grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Records of ownership transfers and grants between members */ +export interface AppOwnerGrant { + id: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean | null; + /** The member receiving or losing the ownership grant */ + actorId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Stores the default permission bitmask assigned to new members upon joining */ export interface OrgPermissionDefault { @@ -336,24 +346,52 @@ export interface OrgPermissionDefault { /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} /** Records of admin role grants and revocations between members */ -export interface AppAdminGrant { +export interface OrgAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; /** The member receiving or losing the admin grant */ actorId?: string | null; + /** The entity (org or group) this admin grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} /** Records of ownership transfers and grants between members */ -export interface AppOwnerGrant { +export interface OrgOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; /** The member receiving or losing the ownership grant */ actorId?: string | null; + /** The entity (org or group) this ownership grant applies to */ + entityId?: string | null; grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; @@ -394,46 +432,21 @@ export interface OrgLimitCap { /** Override cap value for this entity */ max?: string | null; } -/** Records of admin role grants and revocations between members */ -export interface OrgAdminGrant { +/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ +export interface OrgChartEdge { id: string; - /** True to grant admin, false to revoke admin */ - isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ - actorId?: string | null; - /** The entity (org or group) this admin grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; -} -/** Records of ownership transfers and grants between members */ -export interface OrgOwnerGrant { - id: string; - /** True to grant ownership, false to revoke ownership */ - isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ - actorId?: string | null; - /** The entity (org or group) this ownership grant applies to */ + /** Organization this hierarchy edge belongs to */ entityId?: string | null; - grantorId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId?: string | null; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string | null; + /** Job title or role name for this position in the org chart */ + positionTitle?: string | null; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number | null; } /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { @@ -471,20 +484,20 @@ export interface OrgLimitCredit { /** Optional reason for the credit grant (promo code, admin grant, etc.) */ reason?: string | null; } -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; } /** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface OrgLimitWarning { +export interface AppLimitWarning { id: string; /** Limit name this warning applies to (must match a default_limits entry) */ name?: string | null; @@ -494,8 +507,6 @@ export interface OrgLimitWarning { thresholdValue?: string | null; /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ taskIdentifier?: string | null; - /** Per-entity override (NULL = scope default for all entities) */ - entityId?: string | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -529,6 +540,35 @@ export interface AppClaimedInvite { createdAt?: string | null; updatedAt?: string | null; } +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface OrgLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; +} /** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { id: string; @@ -542,30 +582,6 @@ export interface AppGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { id: string; @@ -579,8 +595,26 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Records of individual permission grants and revocations for members via bitmask */ +export interface OrgGrant { + id: string; + /** Bitmask of permissions being granted or revoked */ + permissions?: string | null; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean | null; + /** The member receiving or losing the permission grant */ + actorId?: string | null; + /** The entity (org or group) this permission grant applies to */ + entityId?: string | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Append-only log of limit events for historical reporting and audit */ export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -602,6 +636,9 @@ export interface AppLimitEvent { } /** Append-only log of limit events for historical reporting and audit */ export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; /** Limit name this event applies to */ name?: string | null; /** User who triggered this event; NULL for system/aggregate events */ @@ -621,52 +658,62 @@ export interface OrgLimitEvent { /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ reason?: string | null; } -/** Records of individual permission grants and revocations for members via bitmask */ -export interface OrgGrant { +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { id: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string | null; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ - actorId?: string | null; - /** The entity (org or group) this permission grant applies to */ - entityId?: string | null; - grantorId?: string | null; createdAt?: string | null; updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; } -/** Organizational chart edges defining parent-child reporting relationships between members within an entity */ -export interface OrgChartEdge { +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { id: string; createdAt?: string | null; updatedAt?: string | null; - /** Organization this hierarchy edge belongs to */ - entityId?: string | null; - /** User ID of the subordinate (employee) in this reporting relationship */ - childId?: string | null; - /** User ID of the manager; NULL indicates a top-level position with no direct report */ - parentId?: string | null; - /** Job title or role name for this position in the org chart */ - positionTitle?: string | null; - /** Numeric seniority level for this position (higher = more senior) */ - positionLevel?: number | null; -} -/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ -export interface UsageSnapshot { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string | null; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string | null; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string | null; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: Record | null; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string | null; - id: string; -} -/** Tracks per-actor usage counts against configurable maximum limits */ + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + profileId?: string | null; +} +/** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { id: string; /** Name identifier of the limit being tracked */ @@ -690,57 +737,60 @@ export interface AppLimit { /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ periodCredits?: string | null; } -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface OrgMembership { id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean | null; - /** Optional JSON payload of additional invite metadata */ - data?: Record | null; - /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ - profileId?: string | null; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + /** References the entity (org or group) this membership belongs to */ + entityId?: string | null; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean | null; + profileId?: string | null; } -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { +/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ +export interface OrgMemberProfile { id: string; createdAt?: string | null; updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ + /** References the membership this profile belongs to (1:1) */ + membershipId?: string | null; + /** References the entity this profile belongs to (used for RLS lookups) */ entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ - inviteProfileAssignmentMode?: string | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; - /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ - limitAllocationMode?: string | null; + /** References the user who owns this profile (for self-edit RLS) */ + actorId?: string | null; + /** Display name shown to other entity members */ + displayName?: string | null; + /** Email address visible to other entity members (auto-populated from verified primary email) */ + email?: string | null; + /** Job title or role description visible to other entity members */ + title?: string | null; + /** Short biography visible to other entity members */ + bio?: string | null; + /** Profile picture visible to other entity members */ + profilePicture?: ConstructiveInternalTypeImage | null; } /** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ export interface OrgLimitAggregate { @@ -793,56 +843,31 @@ export interface OrgLimit { periodCredits?: string | null; entityId?: string | null; } -/** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ -export interface OrgMemberProfile { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - /** References the membership this profile belongs to (1:1) */ - membershipId?: string | null; - /** References the entity this profile belongs to (used for RLS lookups) */ - entityId?: string | null; - /** References the user who owns this profile (for self-edit RLS) */ - actorId?: string | null; - /** Display name shown to other entity members */ - displayName?: string | null; - /** Email address visible to other entity members (auto-populated from verified primary email) */ - email?: string | null; - /** Job title or role description visible to other entity members */ - title?: string | null; - /** Short biography visible to other entity members */ - bio?: string | null; - /** Profile picture visible to other entity members */ - profilePicture?: ConstructiveInternalTypeImage | null; -} -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { id: string; + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean | null; + /** Optional JSON payload of additional invite metadata */ + data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { @@ -875,39 +900,6 @@ export interface OrgInvite { updatedAt?: string | null; entityId?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface OrgMembership { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - /** References the entity (org or group) this membership belongs to */ - entityId?: string | null; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean | null; - profileId?: string | null; -} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -937,20 +929,18 @@ export interface AppLimitCreditRelations { } export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} +export interface OrgPermissionDefaultRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgAdminGrantRelations {} +export interface OrgMembershipDefaultRelations {} +export interface OrgOwnerGrantRelations {} export interface AppLimitCapsDefaultRelations {} export interface OrgLimitCapsDefaultRelations {} export interface AppLimitCapRelations {} export interface OrgLimitCapRelations {} -export interface OrgAdminGrantRelations {} -export interface OrgOwnerGrantRelations {} -export interface MembershipTypeRelations {} +export interface OrgChartEdgeRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; @@ -961,37 +951,38 @@ export interface OrgLimitDefaultRelations { export interface OrgLimitCreditRelations { defaultLimit?: OrgLimitDefault | null; } +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} export interface AppLimitWarningRelations {} -export interface OrgLimitWarningRelations {} export interface OrgChartEdgeGrantRelations {} export interface AppClaimedInviteRelations {} +export interface OrgLimitWarningRelations {} +export interface MembershipTypeRelations {} export interface AppGrantRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations {} export interface OrgClaimedInviteRelations {} +export interface OrgGrantRelations {} export interface AppLimitEventRelations {} export interface OrgLimitEventRelations {} -export interface OrgGrantRelations {} -export interface OrgChartEdgeRelations {} -export interface UsageSnapshotRelations {} -export interface AppLimitRelations {} -export interface AppInviteRelations {} export interface OrgMembershipSettingRelations {} -export interface OrgLimitAggregateRelations {} -export interface OrgLimitRelations {} -export interface OrgMemberProfileRelations { - membership?: OrgMembership | null; -} export interface AppMembershipRelations {} -export interface OrgInviteRelations {} +export interface AppLimitRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } -// ============ Entity Types With Relations ============ -export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & - OrgGetManagersRecordRelations; -export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & - OrgGetSubordinatesRecordRelations; +export interface OrgMemberProfileRelations { + membership?: OrgMembership | null; +} +export interface OrgLimitAggregateRelations {} +export interface OrgLimitRelations {} +export interface AppInviteRelations {} +export interface OrgInviteRelations {} +// ============ Entity Types With Relations ============ +export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & + OrgGetManagersRecordRelations; +export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & + OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; export type AppLimitCreditRedemptionWithRelations = AppLimitCreditRedemption & @@ -1002,46 +993,45 @@ export type AppLimitCreditWithRelations = AppLimitCredit & AppLimitCreditRelatio export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; export type OrgLimitCreditWithRelations = OrgLimitCredit & OrgLimitCreditRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; +export type OrgLimitWarningWithRelations = OrgLimitWarning & OrgLimitWarningRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; -export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; -export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; -export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; +export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; +export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; -export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; -export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { userId?: boolean; @@ -1107,42 +1097,59 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { +export type AppAdminGrantSelect = { id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; +export type AppOwnerGrantSelect = { + id?: boolean; + isGrant?: boolean; + actorId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type OrgPermissionDefaultSelect = { id?: boolean; permissions?: boolean; entityId?: boolean; }; -export type AppAdminGrantSelect = { +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgAdminGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; }; -export type AppOwnerGrantSelect = { +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; +}; +export type OrgOwnerGrantSelect = { id?: boolean; isGrant?: boolean; actorId?: boolean; + entityId?: boolean; grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1169,31 +1176,15 @@ export type OrgLimitCapSelect = { entityId?: boolean; max?: boolean; }; -export type OrgAdminGrantSelect = { +export type OrgChartEdgeSelect = { id?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; -}; -export type OrgOwnerGrantSelect = { - id?: boolean; - isGrant?: boolean; - actorId?: boolean; entityId?: boolean; - grantorId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type MembershipTypeSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + childId?: boolean; + parentId?: boolean; + positionTitle?: boolean; + positionLevel?: boolean; }; export type AppLimitDefaultSelect = { id?: boolean; @@ -1237,20 +1228,31 @@ export type OrgLimitCreditSelect = { select: OrgLimitDefaultSelect; }; }; -export type AppLimitWarningSelect = { +export type AppLimitCreditCodeSelect = { id?: boolean; - name?: boolean; - warningType?: boolean; - thresholdValue?: boolean; - taskIdentifier?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; }; -export type OrgLimitWarningSelect = { +export type AppLimitWarningSelect = { id?: boolean; name?: boolean; warningType?: boolean; thresholdValue?: boolean; taskIdentifier?: boolean; - entityId?: boolean; }; export type OrgChartEdgeGrantSelect = { id?: boolean; @@ -1271,6 +1273,22 @@ export type AppClaimedInviteSelect = { createdAt?: boolean; updatedAt?: boolean; }; +export type OrgLimitWarningSelect = { + id?: boolean; + name?: boolean; + warningType?: boolean; + thresholdValue?: boolean; + taskIdentifier?: boolean; + entityId?: boolean; +}; +export type MembershipTypeSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; +}; export type AppGrantSelect = { id?: boolean; permissions?: boolean; @@ -1280,24 +1298,6 @@ export type AppGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; -}; export type OrgClaimedInviteSelect = { id?: boolean; data?: boolean; @@ -1307,7 +1307,19 @@ export type OrgClaimedInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; +export type OrgGrantSelect = { + id?: boolean; + permissions?: boolean; + isGrant?: boolean; + actorId?: boolean; + entityId?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1319,6 +1331,8 @@ export type AppLimitEventSelect = { reason?: boolean; }; export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; name?: boolean; actorId?: boolean; entityId?: boolean; @@ -1329,33 +1343,39 @@ export type OrgLimitEventSelect = { maxAtEvent?: boolean; reason?: boolean; }; -export type OrgGrantSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - permissions?: boolean; - isGrant?: boolean; - actorId?: boolean; - entityId?: boolean; - grantorId?: boolean; createdAt?: boolean; updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; }; -export type OrgChartEdgeSelect = { +export type AppMembershipSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - entityId?: boolean; - childId?: boolean; - parentId?: boolean; - positionTitle?: boolean; - positionLevel?: boolean; -}; -export type UsageSnapshotSelect = { - databaseId?: boolean; - metricName?: boolean; - metricValue?: boolean; - dimensions?: boolean; - capturedAt?: boolean; - id?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + profileId?: boolean; }; export type AppLimitSelect = { id?: boolean; @@ -1370,36 +1390,44 @@ export type AppLimitSelect = { purchasedCredits?: boolean; periodCredits?: boolean; }; -export type AppInviteSelect = { +export type OrgMembershipSelect = { id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; -}; -export type OrgMembershipSettingSelect = { + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; + actorId?: boolean; + entityId?: boolean; + isReadOnly?: boolean; + profileId?: boolean; + orgMemberProfileByMembershipId?: { + select: OrgMemberProfileSelect; + }; +}; +export type OrgMemberProfileSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; + membershipId?: boolean; entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; + actorId?: boolean; + displayName?: boolean; + email?: boolean; + title?: boolean; + bio?: boolean; + profilePicture?: boolean; + membership?: { + select: OrgMembershipSelect; + }; }; export type OrgLimitAggregateSelect = { id?: boolean; @@ -1429,39 +1457,20 @@ export type OrgLimitSelect = { periodCredits?: boolean; entityId?: boolean; }; -export type OrgMemberProfileSelect = { +export type AppInviteSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - membershipId?: boolean; - entityId?: boolean; - actorId?: boolean; - displayName?: boolean; email?: boolean; - title?: boolean; - bio?: boolean; - profilePicture?: boolean; - membership?: { - select: OrgMembershipSelect; - }; -}; -export type AppMembershipSelect = { - id?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -1481,29 +1490,6 @@ export type OrgInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; -export type OrgMembershipSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - entityId?: boolean; - isReadOnly?: boolean; - profileId?: boolean; - orgMemberProfileByMembershipId?: { - select: OrgMemberProfileSelect; - }; -}; // ============ Table Filter Types ============ export interface OrgGetManagersRecordFilter { userId?: UUIDFilter; @@ -1643,31 +1629,45 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { +export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppLimitCreditCodeFilter[]; + and?: AppAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; + or?: AppAdminGrantFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: 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?: AppOwnerGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppOwnerGrantFilter[]; + /** Negates the expression. */ + not?: AppOwnerGrantFilter; } export interface OrgPermissionDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1683,13 +1683,37 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } -export interface AppAdminGrantFilter { +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; +} +export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1697,19 +1721,43 @@ export interface AppAdminGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppAdminGrantFilter[]; + and?: OrgAdminGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppAdminGrantFilter[]; + or?: OrgAdminGrantFilter[]; /** Negates the expression. */ - not?: AppAdminGrantFilter; + not?: OrgAdminGrantFilter; } -export interface AppOwnerGrantFilter { +export interface OrgMembershipDefaultFilter { + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; +} +export interface OrgOwnerGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; /** Filter by the object’s `grantorId` field. */ grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1717,11 +1765,11 @@ export interface AppOwnerGrantFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppOwnerGrantFilter[]; + and?: OrgOwnerGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppOwnerGrantFilter[]; + or?: OrgOwnerGrantFilter[]; /** Negates the expression. */ - not?: AppOwnerGrantFilter; + not?: OrgOwnerGrantFilter; } export interface AppLimitCapsDefaultFilter { /** Filter by the object’s `id` field. */ @@ -1783,71 +1831,31 @@ export interface OrgLimitCapFilter { /** Negates the expression. */ not?: OrgLimitCapFilter; } -export interface OrgAdminGrantFilter { +export interface OrgChartEdgeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; /** Checks for all expressions in this list. */ - and?: OrgAdminGrantFilter[]; + and?: OrgChartEdgeFilter[]; /** Checks for any expressions in this list. */ - or?: OrgAdminGrantFilter[]; + or?: OrgChartEdgeFilter[]; /** Negates the expression. */ - not?: OrgAdminGrantFilter; + not?: OrgChartEdgeFilter; } -export interface OrgOwnerGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: 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?: OrgOwnerGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgOwnerGrantFilter[]; - /** Negates the expression. */ - not?: OrgOwnerGrantFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -export interface AppLimitDefaultFilter { +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1915,25 +1923,33 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } -export interface AppLimitWarningFilter { +export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `warningType` field. */ - warningType?: StringFilter; - /** Filter by the object’s `thresholdValue` field. */ - thresholdValue?: BigIntFilter; - /** Filter by the object’s `taskIdentifier` field. */ - taskIdentifier?: StringFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitWarningFilter[]; + and?: AppLimitCreditCodeFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitWarningFilter[]; + or?: AppLimitCreditCodeFilter[]; /** Negates the expression. */ - not?: AppLimitWarningFilter; + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -export interface OrgLimitWarningFilter { +export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ @@ -1944,14 +1960,12 @@ export interface OrgLimitWarningFilter { thresholdValue?: BigIntFilter; /** Filter by the object’s `taskIdentifier` field. */ taskIdentifier?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitWarningFilter[]; + and?: AppLimitWarningFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitWarningFilter[]; + or?: AppLimitWarningFilter[]; /** Negates the expression. */ - not?: OrgLimitWarningFilter; + not?: AppLimitWarningFilter; } export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1997,6 +2011,46 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } +export interface OrgLimitWarningFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `warningType` field. */ + warningType?: StringFilter; + /** Filter by the object’s `thresholdValue` field. */ + thresholdValue?: BigIntFilter; + /** Filter by the object’s `taskIdentifier` field. */ + taskIdentifier?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitWarningFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitWarningFilter[]; + /** Negates the expression. */ + not?: OrgLimitWarningFilter; +} +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} export interface AppGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -2019,71 +2073,55 @@ export interface AppGrantFilter { /** Negates the expression. */ not?: AppGrantFilter; } -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; -} -export interface OrgMembershipDefaultFilter { +export interface OrgClaimedInviteFilter { /** 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; - /** 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 `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: OrgClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: OrgClaimedInviteFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; + not?: OrgClaimedInviteFilter; } -export interface OrgClaimedInviteFilter { +export interface OrgGrantFilter { /** 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 `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgClaimedInviteFilter[]; + and?: OrgGrantFilter[]; /** Checks for any expressions in this list. */ - or?: OrgClaimedInviteFilter[]; + or?: OrgGrantFilter[]; /** Negates the expression. */ - not?: OrgClaimedInviteFilter; + not?: OrgGrantFilter; } export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2110,6 +2148,10 @@ export interface AppLimitEventFilter { not?: AppLimitEventFilter; } export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2135,77 +2177,85 @@ export interface OrgLimitEventFilter { /** Negates the expression. */ not?: OrgLimitEventFilter; } -export interface OrgGrantFilter { +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: OrgGrantFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: OrgGrantFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: OrgGrantFilter; + not?: OrgMembershipSettingFilter; } -export interface OrgChartEdgeFilter { +export interface AppMembershipFilter { /** 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 `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgChartEdgeFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgChartEdgeFilter[]; - /** Negates the expression. */ - not?: OrgChartEdgeFilter; -} -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -export interface AppLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + /** 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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipFilter[]; + /** Negates the expression. */ + not?: AppMembershipFilter; +} +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `actorId` field. */ @@ -2233,73 +2283,85 @@ export interface AppLimitFilter { /** Negates the expression. */ not?: AppLimitFilter; } -export interface AppInviteFilter { +export interface OrgMembershipFilter { /** 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 `profileId` field. */ - profileId?: UUIDFilter; - /** 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 `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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isExternal` field. */ + isExternal?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; + and?: OrgMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; + or?: OrgMembershipFilter[]; /** Negates the expression. */ - not?: AppInviteFilter; + not?: OrgMembershipFilter; + /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ + orgMemberProfileByMembershipId?: OrgMemberProfileFilter; + /** A related `orgMemberProfileByMembershipId` exists. */ + orgMemberProfileByMembershipIdExists?: boolean; } -export interface OrgMembershipSettingFilter { +export interface OrgMemberProfileFilter { /** 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 `membershipId` field. */ + membershipId?: UUIDFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: StringFilter; + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `bio` field. */ + bio?: StringFilter; + /** Filter by the object’s `profilePicture` field. */ + profilePicture?: ConstructiveInternalTypeImageFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: OrgMemberProfileFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: OrgMemberProfileFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; + not?: OrgMemberProfileFilter; + /** Filter by the object’s `membership` relation. */ + membership?: OrgMembershipFilter; } export interface OrgLimitAggregateFilter { /** Filter by the object’s `id` field. */ @@ -2365,77 +2427,37 @@ export interface OrgLimitFilter { /** Negates the expression. */ not?: OrgLimitFilter; } -export interface OrgMemberProfileFilter { +export interface AppInviteFilter { /** 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 `membershipId` field. */ - membershipId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; /** Filter by the object’s `email` field. */ - email?: StringFilter; - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `bio` field. */ - bio?: StringFilter; - /** Filter by the object’s `profilePicture` field. */ - profilePicture?: ConstructiveInternalTypeImageFilter; - /** Checks for all expressions in this list. */ - and?: OrgMemberProfileFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMemberProfileFilter[]; - /** Negates the expression. */ - not?: OrgMemberProfileFilter; - /** Filter by the object’s `membership` relation. */ - membership?: OrgMembershipFilter; -} -export interface AppMembershipFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + 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 `profileId` field. */ + profileId?: UUIDFilter; + /** 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 `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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; + and?: AppInviteFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; + or?: AppInviteFilter[]; /** Negates the expression. */ - not?: AppMembershipFilter; + not?: AppInviteFilter; } export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ @@ -2475,54 +2497,6 @@ export interface OrgInviteFilter { /** Negates the expression. */ not?: OrgInviteFilter; } -export interface OrgMembershipFilter { - /** 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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipFilter[]; - /** Negates the expression. */ - not?: OrgMembershipFilter; - /** Filter by the object’s `orgMemberProfileByMembershipId` relation. */ - orgMemberProfileByMembershipId?: OrgMemberProfileFilter; - /** A related `orgMemberProfileByMembershipId` exists. */ - orgMemberProfileByMembershipIdExists?: boolean; -} // ============ OrderBy Types ============ export type OrgGetManagersRecordsOrderBy = | 'PRIMARY_KEY_ASC' @@ -2628,20 +2602,38 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = +export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppOwnerGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2652,7 +2644,25 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppAdminGrantOrderBy = +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2662,13 +2672,33 @@ export type AppAdminGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppOwnerGrantOrderBy = +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type OrgOwnerGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2678,6 +2708,8 @@ export type AppOwnerGrantOrderBy = | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -2728,58 +2760,26 @@ export type OrgLimitCapOrderBy = | 'ENTITY_ID_DESC' | 'MAX_ASC' | 'MAX_DESC'; -export type OrgAdminGrantOrderBy = +export type OrgChartEdgeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgOwnerGrantOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' + | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'CHILD_ID_ASC' + | 'CHILD_ID_DESC' + | 'PARENT_ID_ASC' + | 'PARENT_ID_DESC' + | 'POSITION_TITLE_ASC' + | 'POSITION_TITLE_DESC' + | 'POSITION_LEVEL_ASC' + | 'POSITION_LEVEL_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2822,21 +2822,21 @@ export type OrgLimitCreditOrderBy = | 'CREDIT_TYPE_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type AppLimitWarningOrderBy = +export type AppLimitCreditCodeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; -export type OrgLimitWarningOrderBy = + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2849,9 +2849,7 @@ export type OrgLimitWarningOrderBy = | 'THRESHOLD_VALUE_ASC' | 'THRESHOLD_VALUE_DESC' | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'TASK_IDENTIFIER_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2890,60 +2888,56 @@ export type AppClaimedInviteOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppGrantOrderBy = +export type OrgLimitWarningOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; +export type AppGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'UPDATED_AT_DESC'; export type OrgClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2962,28 +2956,34 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AppLimitEventOrderBy = +export type OrgGrantOrderBy = | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppLimitEventOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' @@ -3002,27 +3002,33 @@ export type OrgLimitEventOrderBy = | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC'; -export type OrgGrantOrderBy = +export type OrgLimitEventOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgChartEdgeOrderBy = + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3032,32 +3038,64 @@ export type OrgChartEdgeOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'CHILD_ID_ASC' - | 'CHILD_ID_DESC' - | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC'; -export type UsageSnapshotOrderBy = + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' | 'ID_ASC' - | 'ID_DESC'; + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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 AppLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3084,37 +3122,47 @@ export type AppLimitOrderBy = | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC'; -export type AppInviteOrderBy = +export type OrgMembershipOrderBy = | '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' - | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type OrgMembershipSettingOrderBy = + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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_EXTERNAL_ASC' + | 'IS_EXTERNAL_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' + | 'ENTITY_ID_DESC' + | 'IS_READ_ONLY_ASC' + | 'IS_READ_ONLY_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; +export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -3124,28 +3172,22 @@ export type OrgMembershipSettingOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' + | 'MEMBERSHIP_ID_ASC' + | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'BIO_ASC' + | 'BIO_DESC' + | 'PROFILE_PICTURE_ASC' + | 'PROFILE_PICTURE_DESC'; export type OrgLimitAggregateOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3202,68 +3244,36 @@ export type OrgLimitOrderBy = | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMemberProfileOrderBy = +export type AppInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'MEMBERSHIP_ID_ASC' - | 'MEMBERSHIP_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'BIO_ASC' - | 'BIO_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC'; -export type AppMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'INVITE_TOKEN_ASC' + | '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' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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'; + | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -3300,46 +3310,6 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type OrgMembershipOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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_EXTERNAL_ASC' - | 'IS_EXTERNAL_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' - | 'ENTITY_ID_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'PROFILE_ID_ASC' - | 'PROFILE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; @@ -3539,27 +3509,47 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateAppAdminGrantInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + appAdminGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface AppAdminGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + appAdminGrantPatch: AppAdminGrantPatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteAppAdminGrantInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: { + isGrant?: boolean; + actorId: string; + grantorId?: string; + }; +} +export interface AppOwnerGrantPatch { + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3583,47 +3573,99 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppAdminGrantInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - appAdminGrant: { + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + orgAdminGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppAdminGrantPatch { +export interface OrgAdminGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppAdminGrantInput { +export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; - appAdminGrantPatch: AppAdminGrantPatch; + orgAdminGrantPatch: OrgAdminGrantPatch; } -export interface DeleteAppAdminGrantInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppOwnerGrantInput { +export interface CreateOrgMembershipDefaultInput { clientMutationId?: string; - appOwnerGrant: { + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: { isGrant?: boolean; actorId: string; + entityId: string; grantorId?: string; }; } -export interface AppOwnerGrantPatch { +export interface OrgOwnerGrantPatch { isGrant?: boolean | null; actorId?: string | null; + entityId?: string | null; grantorId?: string | null; } -export interface UpdateAppOwnerGrantInput { +export interface UpdateOrgOwnerGrantInput { clientMutationId?: string; id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; + orgOwnerGrantPatch: OrgOwnerGrantPatch; } -export interface DeleteAppOwnerGrantInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } @@ -3683,107 +3725,59 @@ export interface AppLimitCapPatch { export interface UpdateAppLimitCapInput { clientMutationId?: string; id: string; - appLimitCapPatch: AppLimitCapPatch; -} -export interface DeleteAppLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitCapInput { - clientMutationId?: string; - orgLimitCap: { - name: string; - entityId: string; - max?: string; - }; -} -export interface OrgLimitCapPatch { - name?: string | null; - entityId?: string | null; - max?: string | null; -} -export interface UpdateOrgLimitCapInput { - clientMutationId?: string; - id: string; - orgLimitCapPatch: OrgLimitCapPatch; -} -export interface DeleteOrgLimitCapInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: { - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - }; -} -export interface OrgAdminGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; - entityId?: string | null; - grantorId?: string | null; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; + appLimitCapPatch: AppLimitCapPatch; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteAppLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateOrgOwnerGrantInput { +export interface CreateOrgLimitCapInput { clientMutationId?: string; - orgOwnerGrant: { - isGrant?: boolean; - actorId: string; + orgLimitCap: { + name: string; entityId: string; - grantorId?: string; + max?: string; }; } -export interface OrgOwnerGrantPatch { - isGrant?: boolean | null; - actorId?: string | null; +export interface OrgLimitCapPatch { + name?: string | null; entityId?: string | null; - grantorId?: string | null; + max?: string | null; } -export interface UpdateOrgOwnerGrantInput { +export interface UpdateOrgLimitCapInput { clientMutationId?: string; id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; + orgLimitCapPatch: OrgLimitCapPatch; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { +export interface CreateOrgChartEdgeInput { clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; + orgChartEdge: { + entityId: string; + childId: string; + parentId?: string; + positionTitle?: string; + positionLevel?: number; }; } -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; +export interface OrgChartEdgePatch { + entityId?: string | null; + childId?: string | null; + parentId?: string | null; + positionTitle?: string | null; + positionLevel?: number | null; } -export interface UpdateMembershipTypeInput { +export interface UpdateOrgChartEdgeInput { clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; + id: string; + orgChartEdgePatch: OrgChartEdgePatch; } -export interface DeleteMembershipTypeInput { +export interface DeleteOrgChartEdgeInput { clientMutationId?: string; - id: number; + id: string; } export interface CreateAppLimitDefaultInput { clientMutationId?: string; @@ -3857,53 +3851,51 @@ export interface DeleteOrgLimitCreditInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitWarningInput { +export interface CreateAppLimitCreditCodeInput { clientMutationId?: string; - appLimitWarning: { - name: string; - warningType: string; - thresholdValue: string; - taskIdentifier: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; }; } -export interface AppLimitWarningPatch { - name?: string | null; - warningType?: string | null; - thresholdValue?: string | null; - taskIdentifier?: string | null; +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; } -export interface UpdateAppLimitWarningInput { +export interface UpdateAppLimitCreditCodeInput { clientMutationId?: string; id: string; - appLimitWarningPatch: AppLimitWarningPatch; + appLimitCreditCodePatch: AppLimitCreditCodePatch; } -export interface DeleteAppLimitWarningInput { +export interface DeleteAppLimitCreditCodeInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitWarningInput { +export interface CreateAppLimitWarningInput { clientMutationId?: string; - orgLimitWarning: { + appLimitWarning: { name: string; warningType: string; thresholdValue: string; taskIdentifier: string; - entityId?: string; }; } -export interface OrgLimitWarningPatch { +export interface AppLimitWarningPatch { name?: string | null; warningType?: string | null; thresholdValue?: string | null; taskIdentifier?: string | null; - entityId?: string | null; } -export interface UpdateOrgLimitWarningInput { +export interface UpdateAppLimitWarningInput { clientMutationId?: string; id: string; - orgLimitWarningPatch: OrgLimitWarningPatch; + appLimitWarningPatch: AppLimitWarningPatch; } -export interface DeleteOrgLimitWarningInput { +export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } @@ -3959,75 +3951,79 @@ export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAppGrantInput { +export interface CreateOrgLimitWarningInput { clientMutationId?: string; - appGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; + orgLimitWarning: { + name: string; + warningType: string; + thresholdValue: string; + taskIdentifier: string; + entityId?: string; }; } -export interface AppGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; - actorId?: string | null; - grantorId?: string | null; +export interface OrgLimitWarningPatch { + name?: string | null; + warningType?: string | null; + thresholdValue?: string | null; + taskIdentifier?: string | null; + entityId?: string | null; } -export interface UpdateAppGrantInput { +export interface UpdateOrgLimitWarningInput { clientMutationId?: string; id: string; - appGrantPatch: AppGrantPatch; + orgLimitWarningPatch: OrgLimitWarningPatch; } -export interface DeleteAppGrantInput { +export interface DeleteOrgLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateAppMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppGrantInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + appGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface AppGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + grantorId?: string | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppGrantInput { clientMutationId?: string; id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + appGrantPatch: AppGrantPatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppGrantInput { clientMutationId?: string; id: string; } @@ -4055,6 +4051,32 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: { + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + }; +} +export interface OrgGrantPatch { + permissions?: string | null; + isGrant?: boolean | null; + actorId?: string | null; + entityId?: string | null; + grantorId?: string | null; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +export interface DeleteOrgGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitEventInput { clientMutationId?: string; appLimitEvent: { @@ -4097,107 +4119,109 @@ export interface CreateOrgLimitEventInput { entityId?: string; eventType?: string; delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgGrantInput { - clientMutationId?: string; - orgGrant: { - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; }; } -export interface OrgGrantPatch { - permissions?: string | null; - isGrant?: boolean | null; +export interface OrgLimitEventPatch { + name?: string | null; actorId?: string | null; entityId?: string | null; - grantorId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; } -export interface UpdateOrgGrantInput { +export interface UpdateOrgLimitEventInput { clientMutationId?: string; id: string; - orgGrantPatch: OrgGrantPatch; + orgLimitEventPatch: OrgLimitEventPatch; } -export interface DeleteOrgGrantInput { +export interface DeleteOrgLimitEventInput { clientMutationId?: string; id: string; } -export interface CreateOrgChartEdgeInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - orgChartEdge: { + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; entityId: string; - childId: string; - parentId?: string; - positionTitle?: string; - positionLevel?: number; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface OrgChartEdgePatch { +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; entityId?: string | null; - childId?: string | null; - parentId?: string | null; - positionTitle?: string | null; - positionLevel?: number | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateOrgChartEdgeInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - orgChartEdgePatch: OrgChartEdgePatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteOrgChartEdgeInput { +export interface DeleteOrgMembershipSettingInput { clientMutationId?: string; id: string; } -export interface CreateUsageSnapshotInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - usageSnapshot: { - databaseId: string; - metricName: string; - metricValue?: string; - dimensions?: Record; - capturedAt?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; }; } -export interface UsageSnapshotPatch { - databaseId?: string | null; - metricName?: string | null; - metricValue?: string | null; - dimensions?: Record | null; - capturedAt?: string | null; +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; } -export interface UpdateUsageSnapshotInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; - usageSnapshotPatch: UsageSnapshotPatch; + appMembershipPatch: AppMembershipPatch; } -export interface DeleteUsageSnapshotInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } @@ -4237,77 +4261,82 @@ export interface DeleteAppLimitInput { clientMutationId?: string; id: string; } -export interface CreateAppInviteInput { +export interface CreateOrgMembershipInput { clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; + orgMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isActive?: boolean; + isExternal?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + entityId: string; + isReadOnly?: boolean; profileId?: string; - expiresAt?: string; }; } -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; +export interface OrgMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isActive?: boolean | null; + isExternal?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + entityId?: string | null; + isReadOnly?: boolean | null; profileId?: string | null; - expiresAt?: string | null; } -export interface UpdateAppInviteInput { +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - appInvitePatch: AppInvitePatch; + orgMembershipPatch: OrgMembershipPatch; } -export interface DeleteAppInviteInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateOrgMemberProfileInput { clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; + orgMemberProfile: { + membershipId: string; entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; + actorId: string; + displayName?: string; + email?: string; + title?: string; + bio?: string; + profilePicture?: ConstructiveInternalTypeImage; }; } -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; +export interface OrgMemberProfilePatch { + membershipId?: string | null; entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; + actorId?: string | null; + displayName?: string | null; + email?: string | null; + title?: string | null; + bio?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + profilePictureUpload?: File | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + orgMemberProfilePatch: OrgMemberProfilePatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } @@ -4378,87 +4407,48 @@ export interface OrgLimitPatch { periodCredits?: string | null; entityId?: string | null; } -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface DeleteOrgLimitInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMemberProfileInput { - clientMutationId?: string; - orgMemberProfile: { - membershipId: string; - entityId: string; - actorId: string; - displayName?: string; - email?: string; - title?: string; - bio?: string; - profilePicture?: ConstructiveInternalTypeImage; - }; -} -export interface OrgMemberProfilePatch { - membershipId?: string | null; - entityId?: string | null; - actorId?: string | null; - displayName?: string | null; - email?: string | null; - title?: string | null; - bio?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - profilePictureUpload?: File | null; -} -export interface UpdateOrgMemberProfileInput { - clientMutationId?: string; - id: string; - orgMemberProfilePatch: OrgMemberProfilePatch; -} -export interface DeleteOrgMemberProfileInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface DeleteOrgLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppInviteInput { + clientMutationId?: string; + appInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; profileId?: string; + expiresAt?: string; }; } -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; +export interface AppInvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; profileId?: string | null; + expiresAt?: string | null; } -export interface UpdateAppMembershipInput { +export interface UpdateAppInviteInput { clientMutationId?: string; id: string; - appMembershipPatch: AppMembershipPatch; + appInvitePatch: AppInvitePatch; } -export interface DeleteAppMembershipInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } @@ -4504,58 +4494,8 @@ export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipInput { - clientMutationId?: string; - orgMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isActive?: boolean; - isExternal?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - entityId: string; - isReadOnly?: boolean; - profileId?: string; - }; -} -export interface OrgMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isActive?: boolean | null; - isExternal?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - entityId?: string | null; - isReadOnly?: boolean | null; - profileId?: string | null; -} -export interface UpdateOrgMembershipInput { - clientMutationId?: string; - id: string; - orgMembershipPatch: OrgMembershipPatch; -} -export interface DeleteOrgMembershipInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -4563,6 +4503,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, } as Record>; // ============ Custom Input Types (from schema) ============ export interface SubmitAppInviteCodeInput { @@ -4582,24 +4526,6 @@ export interface ProvisionBucketInput { */ ownerId?: string; } -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against many `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitDefaultToManyAppLimitCreditFilter { /** Filters to entities where at least one related entity matches. */ @@ -4627,6 +4553,24 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ export interface IntervalFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -4652,6 +4596,41 @@ export interface IntervalFilter { /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: IntervalInput; } +/** 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). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} /** 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). */ @@ -4729,101 +4708,49 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** 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). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { +/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; + and?: AppLimitCreditFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; + or?: AppLimitCreditFilter[]; /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; + not?: AppLimitCreditFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `creditCodeId` field. */ creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} -/** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; /** Filter by the object’s `defaultLimitId` field. */ defaultLimitId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `amount` field. */ amount?: BigIntFilter; /** Filter by the object’s `creditType` field. */ creditType?: StringFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLimitCreditFilter[]; + and?: AppLimitCreditCodeItemFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitCreditFilter[]; + or?: AppLimitCreditCodeItemFilter[]; /** Negates the expression. */ - not?: AppLimitCreditFilter; + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } @@ -4852,6 +4779,23 @@ export interface OrgLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: OrgLimitDefaultFilter; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -4998,6 +4942,31 @@ export interface StringFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: 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?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -5025,31 +4994,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** 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?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** 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. */ @@ -5513,184 +5457,319 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was created by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was updated by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `AppAdminGrant` that was deleted by this mutation. */ + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteAppAdminGrantPayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + appAdminGrant?: { + select: AppAdminGrantSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was created by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type CreateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was updated by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + /** The `AppOwnerGrant` that was deleted by this mutation. */ + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +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 CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; }; }; -export interface CreateOrgPermissionDefaultPayload { +export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `OrgAdminGrant` that was created by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type CreateOrgPermissionDefaultPayloadSelect = { +export type CreateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface UpdateOrgPermissionDefaultPayload { +export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `OrgAdminGrant` that was updated by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type UpdateOrgPermissionDefaultPayloadSelect = { +export type UpdateOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface DeleteOrgPermissionDefaultPayload { +export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `OrgAdminGrant` that was deleted by this mutation. */ + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; } -export type DeleteOrgPermissionDefaultPayloadSelect = { +export type DeleteOrgAdminGrantPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + orgAdminGrant?: { + select: OrgAdminGrantSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; }; }; -export interface CreateAppAdminGrantPayload { +export interface CreateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was created by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type CreateAppAdminGrantPayloadSelect = { +export type CreateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateAppAdminGrantPayload { +export interface UpdateOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was updated by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateAppAdminGrantPayloadSelect = { +export type UpdateOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteAppAdminGrantPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `AppAdminGrant` that was deleted by this mutation. */ - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type DeleteAppAdminGrantPayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - appAdminGrant?: { - select: AppAdminGrantSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - appAdminGrantEdge?: { - select: AppAdminGrantEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateAppOwnerGrantPayload { +export interface CreateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was created by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was created by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type CreateAppOwnerGrantPayloadSelect = { +export type CreateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface UpdateAppOwnerGrantPayload { +export interface UpdateOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was updated by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was updated by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type UpdateAppOwnerGrantPayloadSelect = { +export type UpdateOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; -export interface DeleteAppOwnerGrantPayload { +export interface DeleteOrgOwnerGrantPayload { clientMutationId?: string | null; - /** The `AppOwnerGrant` that was deleted by this mutation. */ - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; + /** The `OrgOwnerGrant` that was deleted by this mutation. */ + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export type DeleteAppOwnerGrantPayloadSelect = { +export type DeleteOrgOwnerGrantPayloadSelect = { clientMutationId?: boolean; - appOwnerGrant?: { - select: AppOwnerGrantSelect; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; }; - appOwnerGrantEdge?: { - select: AppOwnerGrantEdgeSelect; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -5843,169 +5922,79 @@ export type CreateOrgLimitCapPayloadSelect = { select: OrgLimitCapEdgeSelect; }; }; -export interface UpdateOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was updated by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type UpdateOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface DeleteOrgLimitCapPayload { - clientMutationId?: string | null; - /** The `OrgLimitCap` that was deleted by this mutation. */ - orgLimitCap?: OrgLimitCap | null; - orgLimitCapEdge?: OrgLimitCapEdge | null; -} -export type DeleteOrgLimitCapPayloadSelect = { - clientMutationId?: boolean; - orgLimitCap?: { - select: OrgLimitCapSelect; - }; - orgLimitCapEdge?: { - select: OrgLimitCapEdgeSelect; - }; -}; -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was created by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type CreateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was updated by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type UpdateOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - /** The `OrgAdminGrant` that was deleted by this mutation. */ - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export type DeleteOrgAdminGrantPayloadSelect = { - clientMutationId?: boolean; - orgAdminGrant?: { - select: OrgAdminGrantSelect; - }; - orgAdminGrantEdge?: { - select: OrgAdminGrantEdgeSelect; - }; -}; -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was created by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export type CreateOrgOwnerGrantPayloadSelect = { - clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; - }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; - }; -}; -export interface UpdateOrgOwnerGrantPayload { +export interface UpdateOrgLimitCapPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was updated by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitCap` that was updated by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } -export type UpdateOrgOwnerGrantPayloadSelect = { +export type UpdateOrgLimitCapPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitCap?: { + select: OrgLimitCapSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; }; }; -export interface DeleteOrgOwnerGrantPayload { +export interface DeleteOrgLimitCapPayload { clientMutationId?: string | null; - /** The `OrgOwnerGrant` that was deleted by this mutation. */ - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; + /** The `OrgLimitCap` that was deleted by this mutation. */ + orgLimitCap?: OrgLimitCap | null; + orgLimitCapEdge?: OrgLimitCapEdge | null; } -export type DeleteOrgOwnerGrantPayloadSelect = { +export type DeleteOrgLimitCapPayloadSelect = { clientMutationId?: boolean; - orgOwnerGrant?: { - select: OrgOwnerGrantSelect; + orgLimitCap?: { + select: OrgLimitCapSelect; }; - orgOwnerGrantEdge?: { - select: OrgOwnerGrantEdgeSelect; + orgLimitCapEdge?: { + select: OrgLimitCapEdgeSelect; }; }; -export interface CreateMembershipTypePayload { +export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was created by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type CreateMembershipTypePayloadSelect = { +export type CreateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteOrgChartEdgePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteOrgChartEdgePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + orgChartEdge?: { + select: OrgChartEdgeSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -6143,6 +6132,51 @@ export type DeleteOrgLimitCreditPayloadSelect = { select: OrgLimitCreditEdgeSelect; }; }; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -6188,51 +6222,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was created by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type CreateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface UpdateOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was updated by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type UpdateOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; -export interface DeleteOrgLimitWarningPayload { - clientMutationId?: string | null; - /** The `OrgLimitWarning` that was deleted by this mutation. */ - orgLimitWarning?: OrgLimitWarning | null; - orgLimitWarningEdge?: OrgLimitWarningEdge | null; -} -export type DeleteOrgLimitWarningPayloadSelect = { - clientMutationId?: boolean; - orgLimitWarning?: { - select: OrgLimitWarningSelect; - }; - orgLimitWarningEdge?: { - select: OrgLimitWarningEdgeSelect; - }; -}; export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; /** The `OrgChartEdgeGrant` that was created by this mutation. */ @@ -6323,139 +6312,139 @@ export type DeleteAppClaimedInvitePayloadSelect = { select: AppClaimedInviteEdgeSelect; }; }; -export interface CreateAppGrantPayload { +export interface CreateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was created by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was created by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type CreateAppGrantPayloadSelect = { +export type CreateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface UpdateAppGrantPayload { +export interface UpdateOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was updated by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was updated by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type UpdateAppGrantPayloadSelect = { +export type UpdateOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface DeleteAppGrantPayload { +export interface DeleteOrgLimitWarningPayload { clientMutationId?: string | null; - /** The `AppGrant` that was deleted by this mutation. */ - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; + /** The `OrgLimitWarning` that was deleted by this mutation. */ + orgLimitWarning?: OrgLimitWarning | null; + orgLimitWarningEdge?: OrgLimitWarningEdge | null; } -export type DeleteAppGrantPayloadSelect = { +export type DeleteOrgLimitWarningPayloadSelect = { clientMutationId?: boolean; - appGrant?: { - select: AppGrantSelect; + orgLimitWarning?: { + select: OrgLimitWarningSelect; }; - appGrantEdge?: { - select: AppGrantEdgeSelect; + orgLimitWarningEdge?: { + select: OrgLimitWarningEdgeSelect; }; }; -export interface CreateAppMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was created by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was updated by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteAppGrantPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppGrant` that was deleted by this mutation. */ + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteAppGrantPayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + appGrant?: { + select: AppGrantSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + appGrantEdge?: { + select: AppGrantEdgeSelect; }; }; export interface CreateOrgClaimedInvitePayload { @@ -6503,28 +6492,6 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -6570,94 +6537,184 @@ export type DeleteOrgGrantPayloadSelect = { select: OrgGrantEdgeSelect; }; }; -export interface CreateOrgChartEdgePayload { +export interface CreateAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was created by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type CreateOrgChartEdgePayloadSelect = { +export type CreateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface UpdateOrgChartEdgePayload { +export interface UpdateAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type UpdateOrgChartEdgePayloadSelect = { +export type UpdateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; }; }; -export interface DeleteOrgChartEdgePayload { +export interface DeleteAppLimitEventPayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; } -export type DeleteOrgChartEdgePayloadSelect = { +export type DeleteAppLimitEventPayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface CreateUsageSnapshotPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was created by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type CreateUsageSnapshotPayloadSelect = { +export type CreateAppMembershipPayloadSelect = { clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; + appMembership?: { + select: AppMembershipSelect; }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; -export interface UpdateUsageSnapshotPayload { +export interface UpdateAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was updated by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type UpdateUsageSnapshotPayloadSelect = { +export type UpdateAppMembershipPayloadSelect = { clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; + appMembership?: { + select: AppMembershipSelect; }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; -export interface DeleteUsageSnapshotPayload { +export interface DeleteAppMembershipPayload { clientMutationId?: string | null; - /** The `UsageSnapshot` that was deleted by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type DeleteUsageSnapshotPayloadSelect = { +export type DeleteAppMembershipPayloadSelect = { clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; + appMembership?: { + select: AppMembershipSelect; }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; export interface CreateAppLimitPayload { @@ -6705,94 +6762,94 @@ export type DeleteAppLimitPayloadSelect = { select: AppLimitEdgeSelect; }; }; -export interface CreateAppInvitePayload { +export interface CreateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type CreateAppInvitePayloadSelect = { +export type CreateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface UpdateAppInvitePayload { +export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type UpdateAppInvitePayloadSelect = { +export type UpdateOrgMembershipPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface DeleteAppInvitePayload { +export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } -export type DeleteAppInvitePayloadSelect = { +export type DeleteOrgMembershipPayloadSelect = { clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; + orgMembership?: { + select: OrgMembershipSelect; }; - appInviteEdge?: { - select: AppInviteEdgeSelect; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was created by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was updated by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type UpdateOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgMemberProfile` that was deleted by this mutation. */ + orgMemberProfile?: OrgMemberProfile | null; + orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type DeleteOrgMemberProfilePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgMemberProfile?: { + select: OrgMemberProfileSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgMemberProfileEdge?: { + select: OrgMemberProfileEdgeSelect; }; }; export interface CreateOrgLimitAggregatePayload { @@ -6885,94 +6942,49 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; -export interface CreateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was created by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type CreateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface UpdateOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was updated by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type UpdateOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface DeleteOrgMemberProfilePayload { - clientMutationId?: string | null; - /** The `OrgMemberProfile` that was deleted by this mutation. */ - orgMemberProfile?: OrgMemberProfile | null; - orgMemberProfileEdge?: OrgMemberProfileEdge | null; -} -export type DeleteOrgMemberProfilePayloadSelect = { - clientMutationId?: boolean; - orgMemberProfile?: { - select: OrgMemberProfileSelect; - }; - orgMemberProfileEdge?: { - select: OrgMemberProfileEdgeSelect; - }; -}; -export interface CreateAppMembershipPayload { +export interface CreateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type CreateAppMembershipPayloadSelect = { +export type CreateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface UpdateAppMembershipPayload { +export interface UpdateAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type UpdateAppMembershipPayloadSelect = { +export type UpdateAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; -export interface DeleteAppMembershipPayload { +export interface DeleteAppInvitePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; } -export type DeleteAppMembershipPayloadSelect = { +export type DeleteAppInvitePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + appInvite?: { + select: AppInviteSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + appInviteEdge?: { + select: AppInviteEdgeSelect; }; }; export interface CreateOrgInvitePayload { @@ -7020,51 +7032,6 @@ export type DeleteOrgInvitePayloadSelect = { select: OrgInviteEdgeSelect; }; }; -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type CreateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type UpdateOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export type DeleteOrgMembershipPayloadSelect = { - clientMutationId?: boolean; - orgMembership?: { - select: OrgMembershipSelect; - }; - orgMembershipEdge?: { - select: OrgMembershipEdgeSelect; - }; -}; /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -7157,25 +7124,37 @@ export type OrgMemberEdgeSelect = { /** A `AppPermissionDefault` edge in the connection. */ export interface AppPermissionDefaultEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; +/** A `AppAdminGrant` edge in the connection. */ +export interface AppAdminGrantEdge { + cursor?: string | null; + /** The `AppAdminGrant` at the end of the edge. */ + node?: AppAdminGrant | null; } -export type AppPermissionDefaultEdgeSelect = { +export type AppAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionDefaultSelect; + select: AppAdminGrantSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `AppOwnerGrant` edge in the connection. */ +export interface AppOwnerGrantEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `AppOwnerGrant` at the end of the edge. */ + node?: AppOwnerGrant | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type AppOwnerGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: AppOwnerGrantSelect; }; }; /** A `OrgPermissionDefault` edge in the connection. */ @@ -7190,28 +7169,52 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; -/** A `AppAdminGrant` edge in the connection. */ -export interface AppAdminGrantEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `AppAdminGrant` at the end of the edge. */ - node?: AppAdminGrant | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type AppAdminGrantEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppAdminGrantSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `AppOwnerGrant` edge in the connection. */ -export interface AppOwnerGrantEdge { +/** A `OrgAdminGrant` edge in the connection. */ +export interface OrgAdminGrantEdge { cursor?: string | null; - /** The `AppOwnerGrant` at the end of the edge. */ - node?: AppOwnerGrant | null; + /** The `OrgAdminGrant` at the end of the edge. */ + node?: OrgAdminGrant | null; } -export type AppOwnerGrantEdgeSelect = { +export type OrgAdminGrantEdgeSelect = { cursor?: boolean; node?: { - select: AppOwnerGrantSelect; + select: OrgAdminGrantSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** A `OrgOwnerGrant` edge in the connection. */ +export interface OrgOwnerGrantEdge { + cursor?: string | null; + /** The `OrgOwnerGrant` at the end of the edge. */ + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -7262,40 +7265,16 @@ export type OrgLimitCapEdgeSelect = { select: OrgLimitCapSelect; }; }; -/** A `OrgAdminGrant` edge in the connection. */ -export interface OrgAdminGrantEdge { - cursor?: string | null; - /** The `OrgAdminGrant` at the end of the edge. */ - node?: OrgAdminGrant | null; -} -export type OrgAdminGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgAdminGrantSelect; - }; -}; -/** A `OrgOwnerGrant` edge in the connection. */ -export interface OrgOwnerGrantEdge { - cursor?: string | null; - /** The `OrgOwnerGrant` at the end of the edge. */ - node?: OrgOwnerGrant | null; -} -export type OrgOwnerGrantEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgOwnerGrantSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `OrgChartEdge` edge in the connection. */ +export interface OrgChartEdgeEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `OrgChartEdge` at the end of the edge. */ + node?: OrgChartEdge | null; } -export type MembershipTypeEdgeSelect = { +export type OrgChartEdgeEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: OrgChartEdgeSelect; }; }; /** A `AppLimitDefault` edge in the connection. */ @@ -7334,28 +7313,28 @@ export type OrgLimitCreditEdgeSelect = { select: OrgLimitCreditSelect; }; }; -/** A `AppLimitWarning` edge in the connection. */ -export interface AppLimitWarningEdge { +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { cursor?: string | null; - /** The `AppLimitWarning` at the end of the edge. */ - node?: AppLimitWarning | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; } -export type AppLimitWarningEdgeSelect = { +export type AppLimitCreditCodeEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitWarningSelect; + select: AppLimitCreditCodeSelect; }; }; -/** A `OrgLimitWarning` edge in the connection. */ -export interface OrgLimitWarningEdge { +/** A `AppLimitWarning` edge in the connection. */ +export interface AppLimitWarningEdge { cursor?: string | null; - /** The `OrgLimitWarning` at the end of the edge. */ - node?: OrgLimitWarning | null; + /** The `AppLimitWarning` at the end of the edge. */ + node?: AppLimitWarning | null; } -export type OrgLimitWarningEdgeSelect = { +export type AppLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitWarningSelect; + select: AppLimitWarningSelect; }; }; /** A `OrgChartEdgeGrant` edge in the connection. */ @@ -7382,40 +7361,40 @@ export type AppClaimedInviteEdgeSelect = { select: AppClaimedInviteSelect; }; }; -/** A `AppGrant` edge in the connection. */ -export interface AppGrantEdge { +/** A `OrgLimitWarning` edge in the connection. */ +export interface OrgLimitWarningEdge { cursor?: string | null; - /** The `AppGrant` at the end of the edge. */ - node?: AppGrant | null; + /** The `OrgLimitWarning` at the end of the edge. */ + node?: OrgLimitWarning | null; } -export type AppGrantEdgeSelect = { +export type OrgLimitWarningEdgeSelect = { cursor?: boolean; node?: { - select: AppGrantSelect; + select: OrgLimitWarningSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppGrant` edge in the connection. */ +export interface AppGrantEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppGrant` at the end of the edge. */ + node?: AppGrant | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type AppGrantEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: AppGrantSelect; }; }; /** A `OrgClaimedInvite` edge in the connection. */ @@ -7442,28 +7421,52 @@ export type OrgGrantEdgeSelect = { select: OrgGrantSelect; }; }; -/** A `OrgChartEdge` edge in the connection. */ -export interface OrgChartEdgeEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `OrgChartEdge` at the end of the edge. */ - node?: OrgChartEdge | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type OrgChartEdgeEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: OrgChartEdgeSelect; + select: AppLimitEventSelect; + }; +}; +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} +export type OrgLimitEventEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitEventSelect; + }; +}; +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} +export type OrgMembershipSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSettingSelect; }; }; -/** A `UsageSnapshot` edge in the connection. */ -export interface UsageSnapshotEdge { +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { cursor?: string | null; - /** The `UsageSnapshot` at the end of the edge. */ - node?: UsageSnapshot | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; } -export type UsageSnapshotEdgeSelect = { +export type AppMembershipEdgeSelect = { cursor?: boolean; node?: { - select: UsageSnapshotSelect; + select: AppMembershipSelect; }; }; /** A `AppLimit` edge in the connection. */ @@ -7478,28 +7481,28 @@ export type AppLimitEdgeSelect = { select: AppLimitSelect; }; }; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; } -export type AppInviteEdgeSelect = { +export type OrgMembershipEdgeSelect = { cursor?: boolean; node?: { - select: AppInviteSelect; + select: OrgMembershipSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `OrgMemberProfile` edge in the connection. */ +export interface OrgMemberProfileEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `OrgMemberProfile` at the end of the edge. */ + node?: OrgMemberProfile | null; } -export type OrgMembershipSettingEdgeSelect = { +export type OrgMemberProfileEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipSettingSelect; + select: OrgMemberProfileSelect; }; }; /** A `OrgLimitAggregate` edge in the connection. */ @@ -7526,28 +7529,16 @@ export type OrgLimitEdgeSelect = { select: OrgLimitSelect; }; }; -/** A `OrgMemberProfile` edge in the connection. */ -export interface OrgMemberProfileEdge { - cursor?: string | null; - /** The `OrgMemberProfile` at the end of the edge. */ - node?: OrgMemberProfile | null; -} -export type OrgMemberProfileEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMemberProfileSelect; - }; -}; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; } -export type AppMembershipEdgeSelect = { +export type AppInviteEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: AppInviteSelect; }; }; /** A `OrgInvite` edge in the connection. */ @@ -7562,15 +7553,3 @@ export type OrgInviteEdgeSelect = { select: OrgInviteSelect; }; }; -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { - cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; -} -export type OrgMembershipEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgMembershipSelect; - }; -}; diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-sdk/src/admin/orm/models/index.ts b/sdk/constructive-sdk/src/admin/orm/models/index.ts index 68ff613876..baa9547682 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/index.ts @@ -12,39 +12,38 @@ export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem'; export { AppLimitCreditModel } from './appLimitCredit'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; export { AppLimitCapModel } from './appLimitCap'; export { OrgLimitCapModel } from './orgLimitCap'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { MembershipTypeModel } from './membershipType'; +export { OrgChartEdgeModel } from './orgChartEdge'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; export { OrgLimitCreditModel } from './orgLimitCredit'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; export { AppLimitWarningModel } from './appLimitWarning'; -export { OrgLimitWarningModel } from './orgLimitWarning'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { AppClaimedInviteModel } from './appClaimedInvite'; +export { OrgLimitWarningModel } from './orgLimitWarning'; +export { MembershipTypeModel } from './membershipType'; export { AppGrantModel } from './appGrant'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { OrgGrantModel } from './orgGrant'; export { AppLimitEventModel } from './appLimitEvent'; export { OrgLimitEventModel } from './orgLimitEvent'; -export { OrgGrantModel } from './orgGrant'; -export { OrgChartEdgeModel } from './orgChartEdge'; -export { UsageSnapshotModel } from './usageSnapshot'; -export { AppLimitModel } from './appLimit'; -export { AppInviteModel } from './appInvite'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; +export { AppMembershipModel } from './appMembership'; +export { AppLimitModel } from './appLimit'; +export { OrgMembershipModel } from './orgMembership'; +export { OrgMemberProfileModel } from './orgMemberProfile'; export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { OrgLimitModel } from './orgLimit'; -export { OrgMemberProfileModel } from './orgMemberProfile'; -export { AppMembershipModel } from './appMembership'; +export { AppInviteModel } from './appInvite'; export { OrgInviteModel } from './orgInvite'; -export { OrgMembershipModel } from './orgMembership'; diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-sdk/src/admin/orm/models/usageSnapshot.ts b/sdk/constructive-sdk/src/admin/orm/models/usageSnapshot.ts deleted file mode 100644 index 9fad79a81f..0000000000 --- a/sdk/constructive-sdk/src/admin/orm/models/usageSnapshot.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * UsageSnapshot 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 { - UsageSnapshot, - UsageSnapshotWithRelations, - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy, - CreateUsageSnapshotInput, - UpdateUsageSnapshotInput, - UsageSnapshotPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class UsageSnapshotModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - usageSnapshots: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', - 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, - }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshots', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'UsageSnapshot', - 'usageSnapshots', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', - document, - variables, - transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', - document, - variables, - transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'UsageSnapshot', - 'createUsageSnapshot', - 'usageSnapshot', - args.select, - args.data, - 'CreateUsageSnapshotInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'createUsageSnapshot', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - UsageSnapshotPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'UsageSnapshot', - 'updateUsageSnapshot', - 'usageSnapshot', - args.select, - args.where.id, - args.data, - 'UpdateUsageSnapshotInput', - 'id', - 'usageSnapshotPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'updateUsageSnapshot', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'UsageSnapshot', - 'deleteUsageSnapshot', - 'usageSnapshot', - { - id: args.where.id, - }, - 'DeleteUsageSnapshotInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'deleteUsageSnapshot', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index c7374c1092..4a4fbb5278 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -25,7 +25,7 @@ const db = createClient({ | `phoneNumber` | findMany, findOne, create, update, delete | | `cryptoAddress` | findMany, findOne, create, update, delete | | `webauthnCredential` | findMany, findOne, create, update, delete | -| `auditLog` | findMany, findOne, create, update, delete | +| `auditLogAuth` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | @@ -184,14 +184,15 @@ const updated = await db.webauthnCredential.update({ where: { id: '' }, da const deleted = await db.webauthnCredential.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.auditLogAuth` -CRUD operations for AuditLog records. +CRUD operations for AuditLogAuth records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | | `event` | String | Yes | | `actorId` | UUID | Yes | @@ -199,25 +200,24 @@ CRUD operations for AuditLog records. | `userAgent` | String | Yes | | `ipAddress` | InternetAddress | Yes | | `success` | Boolean | Yes | -| `createdAt` | Datetime | No | **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 } }).execute(); +// List all auditLogAuth records +const items = await db.auditLogAuth.findMany({ select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: 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 } }).execute(); +const item = await db.auditLogAuth.findOne({ id: '', select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.auditLogAuth.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.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLogAuth.delete({ where: { id: '' } }).execute(); ``` ### `db.identityProvider` @@ -647,21 +647,6 @@ signUp const result = await db.mutation.signUp({ input: '' }).execute(); ``` -### `db.mutation.requestCrossOriginToken` - -requestCrossOriginToken - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | - -```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); -``` - ### `db.mutation.signIn` signIn @@ -707,6 +692,21 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` +### `db.mutation.requestCrossOriginToken` + +requestCrossOriginToken + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RequestCrossOriginTokenInput (required) | + +```typescript +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +``` + ### `db.mutation.forgotPassword` forgotPassword diff --git a/sdk/constructive-sdk/src/auth/orm/index.ts b/sdk/constructive-sdk/src/auth/orm/index.ts index d0d3034de3..35448d7362 100644 --- a/sdk/constructive-sdk/src/auth/orm/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/index.ts @@ -9,7 +9,7 @@ import { EmailModel } from './models/email'; import { PhoneNumberModel } from './models/phoneNumber'; import { CryptoAddressModel } from './models/cryptoAddress'; import { WebauthnCredentialModel } from './models/webauthnCredential'; -import { AuditLogModel } from './models/auditLog'; +import { AuditLogAuthModel } from './models/auditLogAuth'; import { IdentityProviderModel } from './models/identityProvider'; import { RoleTypeModel } from './models/roleType'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; @@ -17,7 +17,7 @@ import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; @@ -53,7 +53,7 @@ export function createClient(config: OrmClientConfig) { phoneNumber: new PhoneNumberModel(client), cryptoAddress: new CryptoAddressModel(client), webauthnCredential: new WebauthnCredentialModel(client), - auditLog: new AuditLogModel(client), + auditLogAuth: new AuditLogAuthModel(client), identityProvider: new IdentityProviderModel(client), roleType: new RoleTypeModel(client), userConnectedAccount: new UserConnectedAccountModel(client), diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index 33b5f19ae8..d1926edee2 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -310,8 +310,10 @@ export interface WebauthnCredential { createdAt?: string | null; updatedAt?: string | null; } -/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ -export interface AuditLog { +/** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ +export interface AuditLogAuth { + createdAt?: string | null; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; @@ -325,8 +327,6 @@ export interface AuditLog { ipAddress?: string | null; /** Whether the authentication attempt succeeded */ success?: boolean | null; - /** Timestamp when the audit event was recorded */ - createdAt?: string | null; } export interface IdentityProvider { slug?: string | null; @@ -390,7 +390,7 @@ export interface CryptoAddressRelations { export interface WebauthnCredentialRelations { owner?: User | null; } -export interface AuditLogRelations { +export interface AuditLogAuthRelations { actor?: User | null; } export interface IdentityProviderRelations {} @@ -402,14 +402,14 @@ export interface UserRelations { ownedPhoneNumbers?: ConnectionResult; ownedCryptoAddresses?: ConnectionResult; ownedWebauthnCredentials?: ConnectionResult; - auditLogsByActorId?: ConnectionResult; + auditLogAuthsByActorId?: ConnectionResult; } // ============ Entity Types With Relations ============ export type EmailWithRelations = Email & EmailRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type WebauthnCredentialWithRelations = WebauthnCredential & WebauthnCredentialRelations; -export type AuditLogWithRelations = AuditLog & AuditLogRelations; +export type AuditLogAuthWithRelations = AuditLogAuth & AuditLogAuthRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & @@ -475,7 +475,8 @@ export type WebauthnCredentialSelect = { select: UserSelect; }; }; -export type AuditLogSelect = { +export type AuditLogAuthSelect = { + createdAt?: boolean; id?: boolean; event?: boolean; actorId?: boolean; @@ -483,7 +484,6 @@ export type AuditLogSelect = { userAgent?: boolean; ipAddress?: boolean; success?: boolean; - createdAt?: boolean; actor?: { select: UserSelect; }; @@ -548,11 +548,11 @@ export type UserSelect = { filter?: WebauthnCredentialFilter; orderBy?: WebauthnCredentialOrderBy[]; }; - auditLogsByActorId?: { - select: AuditLogSelect; + auditLogAuthsByActorId?: { + select: AuditLogAuthSelect; first?: number; - filter?: AuditLogFilter; - orderBy?: AuditLogOrderBy[]; + filter?: AuditLogAuthFilter; + orderBy?: AuditLogAuthOrderBy[]; }; }; // ============ Table Filter Types ============ @@ -674,7 +674,9 @@ export interface WebauthnCredentialFilter { /** Filter by the object’s `owner` relation. */ owner?: UserFilter; } -export interface AuditLogFilter { +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -689,14 +691,12 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ @@ -797,10 +797,10 @@ export interface UserFilter { ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; /** `ownedWebauthnCredentials` exist. */ ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -908,10 +908,12 @@ export type WebauthnCredentialOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AuditLogOrderBy = +export type AuditLogAuthOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' @@ -925,9 +927,7 @@ export type AuditLogOrderBy = | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; + | 'SUCCESS_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -1111,9 +1111,9 @@ export interface DeleteWebauthnCredentialInput { clientMutationId?: string; id: string; } -export interface CreateAuditLogInput { +export interface CreateAuditLogAuthInput { clientMutationId?: string; - auditLog: { + auditLogAuth: { event: string; actorId?: string; origin?: ConstructiveInternalTypeOrigin; @@ -1122,7 +1122,7 @@ export interface CreateAuditLogInput { success: boolean; }; } -export interface AuditLogPatch { +export interface AuditLogAuthPatch { event?: string | null; actorId?: string | null; origin?: ConstructiveInternalTypeOrigin | null; @@ -1130,12 +1130,12 @@ export interface AuditLogPatch { ipAddress?: string | null; success?: boolean | null; } -export interface UpdateAuditLogInput { +export interface UpdateAuditLogAuthInput { clientMutationId?: string; id: string; - auditLogPatch: AuditLogPatch; + auditLogAuthPatch: AuditLogAuthPatch; } -export interface DeleteAuditLogInput { +export interface DeleteAuditLogAuthInput { clientMutationId?: string; id: string; } @@ -1241,7 +1241,7 @@ export const connectionFieldsMap = { ownedPhoneNumbers: 'PhoneNumber', ownedCryptoAddresses: 'CryptoAddress', ownedWebauthnCredentials: 'WebauthnCredential', - auditLogsByActorId: 'AuditLog', + auditLogAuthsByActorId: 'AuditLogAuth', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -1315,13 +1315,6 @@ export interface SignUpInput { csrfToken?: string; deviceToken?: string; } -export interface RequestCrossOriginTokenInput { - clientMutationId?: string; - email?: string; - password?: string; - origin?: ConstructiveInternalTypeOrigin; - rememberMe?: boolean; -} export interface SignInInput { clientMutationId?: string; email?: string; @@ -1342,6 +1335,13 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } +export interface RequestCrossOriginTokenInput { + clientMutationId?: string; + email?: string; + password?: string; + origin?: ConstructiveInternalTypeOrigin; + rememberMe?: boolean; +} export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; @@ -1682,14 +1682,14 @@ export interface UserToManyWebauthnCredentialFilter { /** Filters to entities where no related entity matches. */ none?: WebauthnCredentialFilter; } -/** A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAuditLogFilter { +/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogAuthFilter { /** Filters to entities where at least one related entity matches. */ - some?: AuditLogFilter; + some?: AuditLogAuthFilter; /** Filters to entities where every related entity matches. */ - every?: AuditLogFilter; + every?: AuditLogAuthFilter; /** Filters to entities where no related entity matches. */ - none?: AuditLogFilter; + none?: AuditLogAuthFilter; } /** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ export interface TrgmSearchInput { @@ -1839,8 +1839,10 @@ export interface WebauthnCredentialFilter { /** Filter by the object’s `owner` relation. */ owner?: UserFilter; } -/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogFilter { +/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -1855,14 +1857,12 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ @@ -2062,10 +2062,10 @@ export interface UserFilter { ownedWebauthnCredentials?: UserToManyWebauthnCredentialFilter; /** `ownedWebauthnCredentials` exist. */ ownedWebauthnCredentialsExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -2355,14 +2355,6 @@ export type SignUpPayloadSelect = { select: SignUpRecordSelect; }; }; -export interface RequestCrossOriginTokenPayload { - clientMutationId?: string | null; - result?: string | null; -} -export type RequestCrossOriginTokenPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; export interface SignInPayload { clientMutationId?: string | null; result?: SignInRecord | null; @@ -2393,6 +2385,14 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; +export interface RequestCrossOriginTokenPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type RequestCrossOriginTokenPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ForgotPasswordPayload { clientMutationId?: string | null; } @@ -2609,49 +2609,49 @@ export type DeleteWebauthnCredentialPayloadSelect = { select: WebauthnCredentialEdgeSelect; }; }; -export interface CreateAuditLogPayload { +export interface CreateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was created by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type CreateAuditLogPayloadSelect = { +export type CreateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface UpdateAuditLogPayload { +export interface UpdateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was updated by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type UpdateAuditLogPayloadSelect = { +export type UpdateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface DeleteAuditLogPayload { +export interface DeleteAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was deleted by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type DeleteAuditLogPayloadSelect = { +export type DeleteAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; export interface CreateIdentityProviderPayload { @@ -2886,16 +2886,16 @@ export type WebauthnCredentialEdgeSelect = { select: WebauthnCredentialSelect; }; }; -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { +/** A `AuditLogAuth` edge in the connection. */ +export interface AuditLogAuthEdge { cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; + /** The `AuditLogAuth` at the end of the edge. */ + node?: AuditLogAuth | null; } -export type AuditLogEdgeSelect = { +export type AuditLogAuthEdgeSelect = { cursor?: boolean; node?: { - select: AuditLogSelect; + select: AuditLogAuthSelect; }; }; /** A `RoleType` edge in the connection. */ diff --git a/sdk/constructive-sdk/src/auth/orm/models/auditLog.ts b/sdk/constructive-sdk/src/auth/orm/models/auditLog.ts deleted file mode 100644 index 8d8abc012f..0000000000 --- a/sdk/constructive-sdk/src/auth/orm/models/auditLog.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AuditLog 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 { - AuditLog, - AuditLogWithRelations, - AuditLogSelect, - AuditLogFilter, - AuditLogOrderBy, - CreateAuditLogInput, - UpdateAuditLogInput, - AuditLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AuditLogModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogs: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - 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, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLogs', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AuditLog', - 'createAuditLog', - 'auditLog', - args.select, - args.data, - 'CreateAuditLogInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'createAuditLog', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AuditLogPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AuditLog', - 'updateAuditLog', - 'auditLog', - args.select, - args.where.id, - args.data, - 'UpdateAuditLogInput', - 'id', - 'auditLogPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'updateAuditLog', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AuditLog', - 'deleteAuditLog', - 'auditLog', - { - id: args.where.id, - }, - 'DeleteAuditLogInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'deleteAuditLog', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/auth/orm/models/auditLogAuth.ts b/sdk/constructive-sdk/src/auth/orm/models/auditLogAuth.ts new file mode 100644 index 0000000000..8a6665612c --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/models/auditLogAuth.ts @@ -0,0 +1,244 @@ +/** + * AuditLogAuth 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 { + AuditLogAuth, + AuditLogAuthWithRelations, + AuditLogAuthSelect, + AuditLogAuthFilter, + AuditLogAuthOrderBy, + CreateAuditLogAuthInput, + UpdateAuditLogAuthInput, + AuditLogAuthPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AuditLogAuthModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogAuths: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AuditLogAuth', + 'auditLogAuths', + 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, + }, + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuths', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogAuth: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AuditLogAuth', + 'auditLogAuths', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', + document, + variables, + transform: (data: { + auditLogAuths?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogAuth: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AuditLogAuth', + 'auditLogAuths', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', + document, + variables, + transform: (data: { + auditLogAuths?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AuditLogAuth', + 'createAuditLogAuth', + 'auditLogAuth', + args.select, + args.data, + 'CreateAuditLogAuthInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLogAuth', + fieldName: 'createAuditLogAuth', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AuditLogAuthPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AuditLogAuth', + 'updateAuditLogAuth', + 'auditLogAuth', + args.select, + args.where.id, + args.data, + 'UpdateAuditLogAuthInput', + 'id', + 'auditLogAuthPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLogAuth', + fieldName: 'updateAuditLogAuth', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AuditLogAuth', + 'deleteAuditLogAuth', + 'auditLogAuth', + { + id: args.where.id, + }, + 'DeleteAuditLogAuthInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLogAuth', + fieldName: 'deleteAuditLogAuth', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/auth/orm/models/index.ts b/sdk/constructive-sdk/src/auth/orm/models/index.ts index 61627a92d0..f0ecad3b71 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/index.ts @@ -7,7 +7,7 @@ export { EmailModel } from './email'; export { PhoneNumberModel } from './phoneNumber'; export { CryptoAddressModel } from './cryptoAddress'; export { WebauthnCredentialModel } from './webauthnCredential'; -export { AuditLogModel } from './auditLog'; +export { AuditLogAuthModel } from './auditLogAuth'; export { IdentityProviderModel } from './identityProvider'; export { RoleTypeModel } from './roleType'; export { UserConnectedAccountModel } from './userConnectedAccount'; diff --git a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index 3681a0fb56..14c035b5d4 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -22,10 +22,10 @@ import type { ResetPasswordInput, SignInCrossOriginInput, SignUpInput, - RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, + RequestCrossOriginTokenInput, ForgotPasswordInput, SendVerificationEmailInput, ProvisionBucketInput, @@ -44,10 +44,10 @@ import type { ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, - RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, + RequestCrossOriginTokenPayload, ForgotPasswordPayload, SendVerificationEmailPayload, ProvisionBucketPayload, @@ -66,10 +66,10 @@ import type { ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, - RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, + RequestCrossOriginTokenPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, ProvisionBucketPayloadSelect, @@ -120,9 +120,6 @@ export interface SignInCrossOriginVariables { export interface SignUpVariables { input: SignUpInput; } -export interface RequestCrossOriginTokenVariables { - input: RequestCrossOriginTokenInput; -} export interface SignInVariables { input: SignInInput; } @@ -132,6 +129,9 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } +export interface RequestCrossOriginTokenVariables { + input: RequestCrossOriginTokenInput; +} export interface ForgotPasswordVariables { input: ForgotPasswordInput; } @@ -585,35 +585,6 @@ export function createMutationOperations(client: OrmClient) { 'SignUpPayload' ), }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', - ...buildCustomDocument( - 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', - options.select, - args, - [ - { - name: 'input', - type: 'RequestCrossOriginTokenInput!', - }, - ], - connectionFieldsMap, - 'RequestCrossOriginTokenPayload' - ), - }), signIn: ( args: SignInVariables, options: { @@ -701,6 +672,35 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), + requestCrossOriginToken: ( + args: RequestCrossOriginTokenVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + requestCrossOriginToken: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RequestCrossOriginToken', + fieldName: 'requestCrossOriginToken', + ...buildCustomDocument( + 'mutation', + 'RequestCrossOriginToken', + 'requestCrossOriginToken', + options.select, + args, + [ + { + name: 'input', + type: 'RequestCrossOriginTokenInput!', + }, + ], + connectionFieldsMap, + 'RequestCrossOriginTokenPayload' + ), + }), forgotPassword: ( args: ForgotPasswordVariables, options: { diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md index 94b8dc0860..98224dbfa7 100644 --- a/sdk/constructive-sdk/src/objects/orm/README.md +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -69,7 +69,7 @@ CRUD operations for Object records. |-------|------|----------| | `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `kids` | UUID | Yes | | `ktree` | String | Yes | | `data` | JSON | Yes | @@ -80,13 +80,13 @@ CRUD operations for Object records. ```typescript // List all 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(); +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: 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, scopeId: 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: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); @@ -105,7 +105,7 @@ CRUD operations for Ref records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | @@ -113,13 +113,13 @@ CRUD operations for Ref records. ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: 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(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -138,7 +138,7 @@ CRUD operations for Store records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | @@ -146,13 +146,13 @@ CRUD operations for Store records. ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: 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 } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -171,7 +171,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -183,13 +183,13 @@ CRUD operations for Commit records. ```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 } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: 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 } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: 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: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', 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(); @@ -209,12 +209,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -226,14 +226,14 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -245,7 +245,7 @@ Reads and enables pagination through a set of `Object`. | Argument | Type | |----------|------| - | `databaseId` | UUID | + | `sId` | UUID | | `id` | UUID | | `path` | [String] | | `first` | Int | @@ -253,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({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -265,13 +265,13 @@ getObjectAtPath | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `path` | [String] | | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.mutation.freezeObjects` @@ -286,7 +286,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -301,7 +301,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.removeNodeAtPath` @@ -316,7 +316,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -331,7 +331,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -346,7 +346,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` diff --git a/sdk/constructive-sdk/src/objects/orm/index.ts b/sdk/constructive-sdk/src/objects/orm/index.ts index 231687e0db..f06a6d3b7a 100644 --- a/sdk/constructive-sdk/src/objects/orm/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/index.ts @@ -13,7 +13,7 @@ import { CommitModel } from './models/commit'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index 8fcc221ef8..fe16958d8e 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -238,7 +238,7 @@ export interface GetAllRecord { export interface Object { hashUuid?: string | null; id: string; - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -251,7 +251,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -261,8 +261,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -273,8 +273,8 @@ export interface Commit { id: string; /** The commit message */ message?: string | null; - /** The repository identifier */ - databaseId?: string | null; + /** The scope identifier */ + scopeId?: string | null; storeId?: string | null; /** Parent commits */ parentIds?: string[] | null; @@ -318,7 +318,7 @@ export type GetAllRecordSelect = { export type ObjectSelect = { hashUuid?: boolean; id?: boolean; - databaseId?: boolean; + scopeId?: boolean; kids?: boolean; ktree?: boolean; data?: boolean; @@ -328,21 +328,21 @@ export type ObjectSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -361,8 +361,8 @@ export interface GetAllRecordFilter { export interface ObjectFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `kids` field. */ kids?: UUIDListFilter; /** Filter by the object’s `ktree` field. */ @@ -385,8 +385,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -403,8 +403,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -421,8 +421,8 @@ export interface CommitFilter { 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 `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -457,8 +457,8 @@ export type ObjectOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'KIDS_ASC' | 'KIDS_DESC' | 'KTREE_ASC' @@ -477,8 +477,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -491,8 +491,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -505,8 +505,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -543,7 +543,7 @@ export interface DeleteGetAllRecordInput { export interface CreateObjectInput { clientMutationId?: string; object: { - databaseId: string; + scopeId: string; kids?: string[]; ktree?: string[]; data?: Record; @@ -551,7 +551,7 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - databaseId?: string | null; + scopeId?: string | null; kids?: string[] | null; ktree?: string[] | null; data?: Record | null; @@ -570,14 +570,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -594,13 +594,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -616,7 +616,7 @@ export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -627,7 +627,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -649,30 +649,30 @@ export const connectionFieldsMap = {} as Record>; // ============ Custom Input Types (from schema) ============ export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -680,7 +680,7 @@ export interface SetPropsAndCommitInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -689,7 +689,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -698,7 +698,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; diff --git a/sdk/constructive-sdk/src/objects/orm/query/index.ts b/sdk/constructive-sdk/src/objects/orm/query/index.ts index ce1f8680dc..e132a1ab47 100644 --- a/sdk/constructive-sdk/src/objects/orm/query/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/query/index.ts @@ -9,12 +9,12 @@ import type { InferSelectResult, StrictSelect } from '../select-types'; import type { Object, ObjectSelect, ObjectConnection } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } export interface GetAllObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; /** Only read the first `n` values of the set. */ first?: number; @@ -27,7 +27,7 @@ export interface GetAllObjectsFromRootVariables { after?: string; } export interface GetPathObjectsFromRootVariables { - databaseId?: string; + sId?: string; id?: string; path?: string[]; /** Only read the first `n` values of the set. */ @@ -41,7 +41,7 @@ export interface GetPathObjectsFromRootVariables { after?: string; } export interface GetObjectAtPathVariables { - dbId?: string; + sId?: string; storeId?: string; path?: string[]; refname?: string; @@ -69,7 +69,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -106,7 +106,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -151,7 +151,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { @@ -200,7 +200,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { diff --git a/sdk/constructive-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md index 752dd08075..a0ea311026 100644 --- a/sdk/constructive-sdk/src/public/README.md +++ b/sdk/constructive-sdk/src/public/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 148 +- **Tables:** 151 - **Custom queries:** 20 - **Custom mutations:** 49 diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index 4dc7b74e2e..87e42308cf 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -24,9 +24,9 @@ const db = createClient({ | `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 | -| `object` | findMany, findOne, create, update, delete | | `database` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | | `table` | findMany, findOne, create, update, delete | @@ -51,6 +51,7 @@ const db = createClient({ | `sessionSecretsModule` | findMany, findOne, create, update, delete | | `identityProvidersModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | +| `configSecretsOrgModule` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | @@ -75,7 +76,7 @@ const db = createClient({ | `defaultIdsModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | | `emailsModule` | findMany, findOne, create, update, delete | -| `encryptedSecretsModule` | findMany, findOne, create, update, delete | +| `configSecretsUserModule` | findMany, findOne, create, update, delete | | `invitesModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | @@ -96,6 +97,11 @@ const db = createClient({ | `webauthnCredentialsModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | | `notificationsModule` | findMany, findOne, create, update, delete | +| `inferenceLogModule` | findMany, findOne, create, update, delete | +| `computeLogModule` | findMany, findOne, create, update, delete | +| `transferLogModule` | findMany, findOne, create, update, delete | +| `storageLogModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | @@ -125,48 +131,45 @@ const db = createClient({ | `appClaimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | -| `auditLog` | findMany, findOne, create, update, delete | -| `agentThread` | findMany, findOne, create, update, delete | -| `agentMessage` | findMany, findOne, create, update, delete | -| `agentTask` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | +| `auditLogAuth` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `appLimitCreditCode` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | +| `migrateFile` | findMany, findOne, create, update, delete | +| `devicesModule` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `appLimitCapsDefault` | findMany, findOne, create, update, delete | | `orgLimitCapsDefault` | findMany, findOne, create, update, delete | | `appLimitCap` | findMany, findOne, create, update, delete | | `orgLimitCap` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | -| `migrateFile` | findMany, findOne, create, update, delete | -| `devicesModule` | findMany, findOne, create, update, delete | -| `nodeTypeRegistry` | findMany, findOne, create, update, delete | +| `userConnectedAccount` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | +| `appLimitCreditCode` | findMany, findOne, create, update, delete | | `appLimitWarning` | findMany, findOne, create, update, delete | -| `userConnectedAccount` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `pubkeySetting` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | -| `usageSnapshot` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `rlsSetting` | findMany, findOne, create, update, delete | -| `appLimitEvent` | findMany, findOne, create, update, delete | -| `orgLimitEvent` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | +| `agentChatModule` | findMany, findOne, create, update, delete | | `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `databaseSetting` | findMany, findOne, create, update, delete | -| `billingModule` | findMany, findOne, create, update, delete | -| `astMigration` | findMany, findOne, create, update, delete | -| `user` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `webauthnSetting` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | +| `user` | findMany, findOne, create, update, delete | +| `astMigration` | findMany, findOne, create, update, delete | +| `webauthnSetting` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | @@ -262,42 +265,45 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.object` -CRUD operations for AppPermission records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | +| `scopeId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, scopeId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', scopeId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` +### `db.appPermission` -CRUD operations for OrgPermission records. +CRUD operations for AppPermission records. **Fields:** @@ -312,56 +318,53 @@ CRUD operations for OrgPermission records. **Operations:** ```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all appPermission records +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.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: 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.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.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.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.orgPermission` -CRUD operations for Object records. +CRUD operations for OrgPermission records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | **Operations:** ```typescript -// List all 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(); +// List all orgPermission records +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.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.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.database` @@ -1359,6 +1362,39 @@ const updated = await db.realtimeModule.update({ where: { id: '' }, data: const deleted = await db.realtimeModule.delete({ where: { id: '' } }).execute(); ``` +### `db.configSecretsOrgModule` + +CRUD operations for ConfigSecretsOrgModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | + +**Operations:** + +```typescript +// List all configSecretsOrgModule records +const items = await db.configSecretsOrgModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Get one by id +const item = await db.configSecretsOrgModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); + +// Create +const created = await db.configSecretsOrgModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.configSecretsOrgModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.configSecretsOrgModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.schemaGrant` CRUD operations for SchemaGrant records. @@ -1821,6 +1857,7 @@ CRUD operations for Partition records. | `partitionKeyId` | UUID | Yes | | `interval` | String | Yes | | `retention` | String | Yes | +| `retentionKeepTable` | Boolean | Yes | | `premake` | Int | Yes | | `namingPattern` | String | Yes | | `createdAt` | Datetime | No | @@ -1830,13 +1867,13 @@ CRUD operations for Partition records. ```typescript // List all partition records -const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.partition.findMany({ select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.partition.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, strategy: true, partitionKeyId: true, interval: true, retention: true, retentionKeepTable: true, premake: true, namingPattern: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); +const created = await db.partition.create({ data: { databaseId: '', tableId: '', strategy: '', partitionKeyId: '', interval: '', retention: '', retentionKeepTable: '', premake: '', namingPattern: '' }, select: { id: true } }).execute(); // Update const updated = await db.partition.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2215,9 +2252,9 @@ const updated = await db.emailsModule.update({ where: { id: '' }, data: { const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.encryptedSecretsModule` +### `db.configSecretsUserModule` -CRUD operations for EncryptedSecretsModule records. +CRUD operations for ConfigSecretsUserModule records. **Fields:** @@ -2232,20 +2269,20 @@ CRUD operations for EncryptedSecretsModule records. **Operations:** ```typescript -// List all encryptedSecretsModule records -const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); +// List all configSecretsUserModule records +const items = await db.configSecretsUserModule.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 } }).execute(); +const item = await db.configSecretsUserModule.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: '' }, select: { id: true } }).execute(); +const created = await db.configSecretsUserModule.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.configSecretsUserModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.configSecretsUserModule.delete({ where: { id: '' } }).execute(); ``` ### `db.invitesModule` @@ -2945,6 +2982,7 @@ CRUD operations for StorageModule records. | `bucketsTableName` | String | Yes | | `filesTableName` | String | Yes | | `membershipType` | Int | Yes | +| `storageKey` | String | Yes | | `policies` | JSON | Yes | | `skipDefaultPolicyTables` | String | Yes | | `entityTableId` | UUID | Yes | @@ -2974,13 +3012,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, storageKey: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', storageKey: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -3167,219 +3205,436 @@ const updated = await db.notificationsModule.update({ where: { id: '' }, d const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.databaseProvisionModule` +### `db.inferenceLogModule` -CRUD operations for DatabaseProvisionModule records. +CRUD operations for InferenceLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseName` | String | Yes | -| `ownerId` | UUID | Yes | -| `subdomain` | String | Yes | -| `domain` | String | Yes | -| `modules` | String | Yes | -| `options` | JSON | Yes | -| `bootstrapUser` | Boolean | Yes | -| `status` | String | Yes | -| `errorMessage` | String | Yes | | `databaseId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `completedAt` | Datetime | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `inferenceLogTableId` | UUID | Yes | +| `inferenceLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | 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 } }).execute(); +// List all inferenceLogModule records +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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 } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); +const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.inferenceLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.appAdminGrant` +### `db.computeLogModule` -CRUD operations for AppAdminGrant records. +CRUD operations for ComputeLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `computeLogTableId` | UUID | Yes | +| `computeLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appAdminGrant records -const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all computeLogModule records +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.computeLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.appOwnerGrant` +### `db.transferLogModule` -CRUD operations for AppOwnerGrant records. +CRUD operations for TransferLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `transferLogTableId` | UUID | Yes | +| `transferLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appOwnerGrant records -const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all transferLogModule records +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.appGrant` +### `db.storageLogModule` -CRUD operations for AppGrant records. +CRUD operations for StorageLogModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `isGrant` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `grantorId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `storageLogTableId` | UUID | Yes | +| `storageLogTableName` | String | Yes | +| `usageDailyTableId` | UUID | Yes | +| `usageDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `actorFkTableId` | UUID | Yes | +| `entityFkTableId` | UUID | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all appGrant records -const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +// List all storageLogModule records +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: 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.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.storageLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembership` +### `db.dbUsageModule` -CRUD operations for OrgMembership records. +CRUD operations for DbUsageModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `isReadOnly` | Boolean | Yes | -| `profileId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); +// List all dbUsageModule records +const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMember` +### `db.databaseProvisionModule` -CRUD operations for OrgMember records. +CRUD operations for DatabaseProvisionModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `isAdmin` | Boolean | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all 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(); - +| `databaseName` | String | Yes | +| `ownerId` | UUID | Yes | +| `subdomain` | String | Yes | +| `domain` | String | Yes | +| `modules` | String | Yes | +| `options` | JSON | Yes | +| `bootstrapUser` | Boolean | Yes | +| `status` | String | Yes | +| `errorMessage` | String | Yes | +| `databaseId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | 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 } }).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 } }).execute(); + +// Create +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(); + +// Delete +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.appAdminGrant` + +CRUD operations for AppAdminGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appOwnerGrant` + +CRUD operations for AppOwnerGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.appGrant` + +CRUD operations for AppGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `isGrant` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all 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(); + +// Create +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(); + +// Delete +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMembership` + +CRUD operations for OrgMembership records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isExternal` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `isReadOnly` | Boolean | Yes | +| `profileId` | UUID | Yes | + +**Operations:** + +```typescript +// List all 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: 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, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, isReadOnly: true, profileId: true } }).execute(); + +// Create +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', isReadOnly: '', profileId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgMember` + +CRUD operations for OrgMember records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `isAdmin` | Boolean | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all 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(); + // Create const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); @@ -4230,14 +4485,15 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.auditLog` +### `db.auditLogAuth` -CRUD operations for AuditLog records. +CRUD operations for AuditLogAuth records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `createdAt` | Datetime | No | | `id` | UUID | No | | `event` | String | Yes | | `actorId` | UUID | Yes | @@ -4245,148 +4501,164 @@ CRUD operations for AuditLog records. | `userAgent` | String | Yes | | `ipAddress` | InternetAddress | Yes | | `success` | Boolean | Yes | -| `createdAt` | Datetime | No | **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 } }).execute(); +// List all auditLogAuth records +const items = await db.auditLogAuth.findMany({ select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: 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 } }).execute(); +const item = await db.auditLogAuth.findOne({ id: '', select: { createdAt: true, id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); +const created = await db.auditLogAuth.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.auditLogAuth.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLogAuth.delete({ where: { id: '' } }).execute(); ``` -### `db.agentThread` +### `db.identityProvider` -CRUD operations for AgentThread records. +CRUD operations for IdentityProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `title` | String | Yes | -| `mode` | String | Yes | -| `model` | String | Yes | -| `systemPrompt` | String | Yes | -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `status` | String | Yes | +| `slug` | String | Yes | +| `kind` | String | Yes | +| `displayName` | String | Yes | +| `enabled` | Boolean | Yes | +| `isBuiltIn` | Boolean | Yes | **Operations:** ```typescript -// List all agentThread records -const items = await db.agentThread.findMany({ select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); +// List all identityProvider records +const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Get one by id -const item = await db.agentThread.findOne({ id: '', select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); +const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Create -const created = await db.agentThread.create({ data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, select: { id: true } }).execute(); +const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentThread.update({ where: { id: '' }, data: { title: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.agentMessage` +### `db.ref` -CRUD operations for AgentMessage records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `threadId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `authorRole` | String | Yes | | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | -| `parts` | JSON | Yes | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all agentMessage records -const items = await db.agentMessage.findMany({ select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, scopeId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', scopeId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentMessage.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.agentTask` +### `db.store` -CRUD operations for AgentTask records. +CRUD operations for Store records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `threadId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `description` | String | Yes | -| `source` | String | Yes | -| `error` | String | Yes | | `id` | UUID | No | +| `name` | String | Yes | +| `scopeId` | UUID | Yes | +| `hash` | UUID | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | -| `status` | String | Yes | **Operations:** ```typescript -// List all agentTask records -const items = await db.agentTask.findMany({ select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, scopeId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', scopeId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentTask.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` +### `db.appPermissionDefault` -CRUD operations for RoleType records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | +| `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 | **Operations:** @@ -4408,166 +4680,175 @@ const updated = await db.roleType.update({ where: { id: '' }, data: { name: const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvider` +### `db.migrateFile` -CRUD operations for IdentityProvider records. +CRUD operations for MigrateFile records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `slug` | String | Yes | -| `kind` | String | Yes | -| `displayName` | String | Yes | -| `enabled` | Boolean | Yes | -| `isBuiltIn` | Boolean | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | **Operations:** ```typescript -// List all identityProvider records -const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); // Get one by id -const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); // Create -const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.devicesModule` -CRUD operations for Ref records. +CRUD operations for DevicesModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | | `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `userDevicesTableId` | UUID | Yes | +| `deviceSettingsTableId` | UUID | Yes | +| `userDevicesTable` | String | Yes | +| `deviceSettingsTable` | String | 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(); +// List all devicesModule records +const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: 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(); +const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.appMembershipDefault` -CRUD operations for Store records. +CRUD operations for AppMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isVerified` | Boolean | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all 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.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: 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.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.orgMembershipDefault` -CRUD operations for AppPermissionDefault records. +CRUD operations for OrgMembershipDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all orgMembershipDefault records +const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitCreditCode` +### `db.nodeTypeRegistry` -CRUD operations for AppLimitCreditCode records. +CRUD operations for NodeTypeRegistry records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `code` | String | Yes | -| `maxRedemptions` | Int | Yes | -| `currentRedemptions` | Int | Yes | -| `expiresAt` | Datetime | Yes | +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | **Operations:** ```typescript -// List all appLimitCreditCode records -const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); +// 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 } }).execute(); -// Get one by id -const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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 } }).execute(); // Create -const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); // Update -const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); // Delete -const deleted = await db.appLimitCreditCode.delete({ where: { id: '' } }).execute(); +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` ### `db.appLimitCapsDefault` @@ -4696,203 +4977,137 @@ const updated = await db.orgLimitCap.update({ where: { id: '' }, data: { n const deleted = await db.orgLimitCap.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.userConnectedAccount` -CRUD operations for MembershipType records. +CRUD operations for UserConnectedAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | +| `id` | UUID | No | +| `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 membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all userConnectedAccount records +const items = await db.userConnectedAccount.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.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.userConnectedAccount.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.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.migrateFile` +### `db.appLimitDefault` -CRUD operations for MigrateFile records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.devicesModule` +### `db.orgLimitDefault` -CRUD operations for DevicesModule records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `userDevicesTableId` | UUID | Yes | -| `deviceSettingsTableId` | UUID | Yes | -| `userDevicesTable` | String | Yes | -| `deviceSettingsTable` | String | Yes | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all devicesModule records -const items = await db.devicesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.devicesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.devicesModule.create({ data: { databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.devicesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.nodeTypeRegistry` +### `db.appLimitCreditCode` -CRUD operations for NodeTypeRegistry records. +CRUD operations for AppLimitCreditCode records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | No | -| `slug` | String | Yes | -| `category` | String | Yes | -| `displayName` | String | Yes | -| `description` | String | Yes | -| `parameterSchema` | JSON | Yes | -| `tags` | String | Yes | +| `id` | UUID | No | +| `code` | String | Yes | +| `maxRedemptions` | Int | Yes | +| `currentRedemptions` | Int | Yes | +| `expiresAt` | Datetime | 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 } }).execute(); +// List all appLimitCreditCode records +const items = await db.appLimitCreditCode.findMany({ select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: 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 } }).execute(); +// Get one by id +const item = await db.appLimitCreditCode.findOne({ id: '', select: { id: true, code: true, maxRedemptions: true, currentRedemptions: true, expiresAt: true } }).execute(); // Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); +const created = await db.appLimitCreditCode.create({ data: { code: '', maxRedemptions: '', currentRedemptions: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); +const updated = await db.appLimitCreditCode.update({ where: { id: '' }, data: { code: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); -``` - -### `db.appLimitDefault` - -CRUD operations for AppLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitDefault` - -CRUD operations for OrgLimitDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `max` | BigInt | Yes | -| `softMax` | BigInt | Yes | - -**Operations:** - -```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); - -// Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); - -// Update -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.appLimitCreditCode.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitWarning` @@ -4928,42 +5143,6 @@ const updated = await db.appLimitWarning.update({ where: { id: '' }, data: const deleted = await db.appLimitWarning.delete({ where: { id: '' } }).execute(); ``` -### `db.userConnectedAccount` - -CRUD operations for UserConnectedAccount 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 | - -**Operations:** - -```typescript -// List all userConnectedAccount records -const items = await db.userConnectedAccount.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.userConnectedAccount.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.userConnectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.userConnectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); -``` - ### `db.commit` CRUD operations for Commit records. @@ -4974,7 +5153,7 @@ CRUD operations for Commit records. |-------|------|----------| | `id` | UUID | No | | `message` | String | Yes | -| `databaseId` | UUID | Yes | +| `scopeId` | UUID | Yes | | `storeId` | UUID | Yes | | `parentIds` | UUID | Yes | | `authorId` | UUID | Yes | @@ -4986,13 +5165,13 @@ CRUD operations for Commit records. ```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 } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, scopeId: 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 } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, scopeId: 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: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', scopeId: '', 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(); @@ -5075,108 +5254,38 @@ const updated = await db.rateLimitsModule.update({ where: { id: '' }, data const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.usageSnapshot` - -CRUD operations for UsageSnapshot records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `databaseId` | UUID | Yes | -| `metricName` | String | Yes | -| `metricValue` | BigInt | Yes | -| `dimensions` | JSON | Yes | -| `capturedAt` | Datetime | Yes | -| `id` | UUID | No | - -**Operations:** - -```typescript -// List all usageSnapshot records -const items = await db.usageSnapshot.findMany({ select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); - -// Get one by id -const item = await db.usageSnapshot.findOne({ id: '', select: { databaseId: true, metricName: true, metricValue: true, dimensions: true, capturedAt: true, id: true } }).execute(); - -// Create -const created = await db.usageSnapshot.create({ data: { databaseId: '', metricName: '', metricValue: '', dimensions: '', capturedAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.usageSnapshot.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.usageSnapshot.delete({ where: { id: '' } }).execute(); -``` - -### `db.appMembershipDefault` - -CRUD operations for AppMembershipDefault records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isVerified` | Boolean | Yes | - -**Operations:** - -```typescript -// List all 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(); - -// Create -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(); - -// Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgMembershipDefault` +### `db.membershipType` -CRUD operations for OrgMembershipDefault records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `entityId` | UUID | Yes | +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all orgMembershipDefault records -const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: 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 } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsSetting` @@ -5217,83 +5326,48 @@ const updated = await db.rlsSetting.update({ where: { id: '' }, data: { da const deleted = await db.rlsSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitEvent` - -CRUD operations for AppLimitEvent records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | - -**Operations:** - -```typescript -// List all appLimitEvent records -const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Get one by id -const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); - -// Create -const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); -``` - -### `db.orgLimitEvent` +### `db.rlsModule` -CRUD operations for OrgLimitEvent records. +CRUD operations for RlsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `entityId` | UUID | Yes | -| `eventType` | String | Yes | -| `delta` | BigInt | Yes | -| `numBefore` | BigInt | Yes | -| `numAfter` | BigInt | Yes | -| `maxAtEvent` | BigInt | Yes | -| `reason` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `sessionCredentialsTableId` | UUID | Yes | +| `sessionsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `authenticate` | String | Yes | +| `authenticateStrict` | String | Yes | +| `currentRole` | String | Yes | +| `currentRoleId` | String | Yes | **Operations:** ```typescript -// List all orgLimitEvent records -const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); +// 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 } }).execute(); // Get one by id -const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: 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.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, 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.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.rlsModule` +### `db.agentChatModule` -CRUD operations for RlsModule records. +CRUD operations for AgentChatModule records. **Fields:** @@ -5303,31 +5377,32 @@ CRUD operations for RlsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `sessionCredentialsTableId` | UUID | Yes | -| `sessionsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `authenticate` | String | Yes | -| `authenticateStrict` | String | Yes | -| `currentRole` | String | Yes | -| `currentRoleId` | String | Yes | +| `apiId` | UUID | Yes | +| `threadTableId` | UUID | Yes | +| `threadTableName` | String | Yes | +| `messageTableId` | UUID | Yes | +| `messageTableName` | String | Yes | +| `taskTableId` | UUID | Yes | +| `taskTableName` | String | Yes | +| `prefix` | String | 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 } }).execute(); +// List all agentChatModule records +const items = await db.agentChatModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: 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 } }).execute(); +const item = await db.agentChatModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, apiId: true, threadTableId: true, threadTableName: true, messageTableId: true, messageTableName: true, taskTableId: true, taskTableName: true, prefix: true } }).execute(); // Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); +const created = await db.agentChatModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', apiId: '', threadTableId: '', threadTableName: '', messageTableId: '', messageTableName: '', taskTableId: '', taskTableName: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.agentChatModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentChatModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rateLimitMetersModule` @@ -5452,6 +5527,84 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `createdAt` | Datetime | No | +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { createdAt: true, id: true, name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.databaseSetting` CRUD operations for DatabaseSetting records. @@ -5494,87 +5647,90 @@ const updated = await db.databaseSetting.update({ where: { id: '' }, data: const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.billingModule` +### `db.orgMembershipSetting` -CRUD operations for BillingModule records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `metersTableId` | UUID | Yes | -| `metersTableName` | String | Yes | -| `planSubscriptionsTableId` | UUID | Yes | -| `planSubscriptionsTableName` | String | Yes | -| `ledgerTableId` | UUID | Yes | -| `ledgerTableName` | String | Yes | -| `balancesTableId` | UUID | Yes | -| `balancesTableName` | String | Yes | -| `recordUsageFunction` | String | Yes | -| `prefix` | String | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all billingModule records -const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.astMigration` +### `db.appMembership` -CRUD operations for AstMigration records. +CRUD operations for AppMembership records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | +| `id` | UUID | No | | `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `isApproved` | Boolean | Yes | +| `isBanned` | Boolean | Yes | +| `isDisabled` | Boolean | Yes | +| `isVerified` | Boolean | Yes | +| `isActive` | Boolean | Yes | +| `isOwner` | Boolean | Yes | +| `isAdmin` | Boolean | Yes | +| `permissions` | BitString | Yes | +| `granted` | BitString | Yes | | `actorId` | UUID | Yes | +| `profileId` | UUID | 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 } }).execute(); +// List all 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.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(); +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.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, 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.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -5619,46 +5775,45 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > 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. -### `db.orgMembershipSetting` +### `db.astMigration` -CRUD operations for OrgMembershipSetting records. +CRUD operations for AstMigration records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `inviteProfileAssignmentMode` | String | Yes | -| `populateMemberEmail` | Boolean | Yes | -| `limitAllocationMode` | String | Yes | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); +// 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 } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: 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.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, 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.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.webauthnSetting` @@ -5707,48 +5862,50 @@ const updated = await db.webauthnSetting.update({ where: { id: '' }, data: const deleted = await db.webauthnSetting.delete({ where: { id: '' } }).execute(); ``` -### `db.appMembership` +### `db.billingModule` -CRUD operations for AppMembership records. +CRUD operations for BillingModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `isApproved` | Boolean | Yes | -| `isBanned` | Boolean | Yes | -| `isDisabled` | Boolean | Yes | -| `isVerified` | Boolean | Yes | -| `isActive` | Boolean | Yes | -| `isOwner` | Boolean | Yes | -| `isAdmin` | Boolean | Yes | -| `permissions` | BitString | Yes | -| `granted` | BitString | Yes | -| `actorId` | UUID | Yes | -| `profileId` | UUID | Yes | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `metersTableId` | UUID | Yes | +| `metersTableName` | String | Yes | +| `planSubscriptionsTableId` | UUID | Yes | +| `planSubscriptionsTableName` | String | Yes | +| `ledgerTableId` | UUID | Yes | +| `ledgerTableName` | String | Yes | +| `balancesTableId` | UUID | Yes | +| `balancesTableName` | String | Yes | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | +| `meterSourcesTableId` | UUID | Yes | +| `meterSourcesTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | +| `prefix` | String | Yes | **Operations:** ```typescript -// List all 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(); +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: 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.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, recordUsageFunction: true, prefix: 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.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` ### `db.billingProviderModule` @@ -5936,12 +6093,12 @@ revParse | Argument | Type | |----------|------| - | `dbId` | UUID | + | `sId` | UUID | | `storeId` | UUID | | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ sId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.resolveBlueprintField` @@ -6058,97 +6215,97 @@ orgPermissionsGetMaskByNames const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` -### `db.query.appPermissionsGetByMask` +### `db.query.getAllObjectsFromRoot` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ sId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` +### `db.query.getPathObjectsFromRoot` -Reads and enables pagination through a set of `OrgPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `sId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ sId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getAllObjectsFromRoot` +### `db.query.getObjectAtPath` -Reads and enables pagination through a set of `Object`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `sId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getObjectAtPath({ sId: '', storeId: '', path: '', refname: '' }).execute(); ``` -### `db.query.getPathObjectsFromRoot` +### `db.query.appPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getObjectAtPath` +### `db.query.orgPermissionsGetByMask` -getObjectAtPath +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `mask` | BitString | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.currentUser` @@ -6414,7 +6571,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); +const result = await db.mutation.freezeObjects({ input: { sId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -6429,12 +6586,12 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { sId: '', storeId: '' } }).execute(); ``` ### `db.mutation.constructBlueprint` -Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. +Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. - **Type:** mutation - **Arguments:** @@ -6489,7 +6646,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { sId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.copyTemplateToBlueprint` @@ -6522,6 +6679,21 @@ Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row dec const result = await db.mutation.provisionSpatialRelation({ input: '' }).execute(); ``` +### `db.mutation.signInCrossOrigin` + +signInCrossOrigin + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInCrossOriginInput (required) | + +```typescript +const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); +``` + ### `db.mutation.bootstrapUser` bootstrapUser @@ -6537,6 +6709,36 @@ bootstrapUser const result = await db.mutation.bootstrapUser({ input: '' }).execute(); ``` +### `db.mutation.signUp` + +signUp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpInput (required) | + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` + +### `db.mutation.signIn` + +signIn + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInInput (required) | + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` + ### `db.mutation.setFieldOrder` setFieldOrder @@ -6624,7 +6826,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setDataAtPath({ input: { sId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -6639,7 +6841,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { sId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.provisionDatabaseWithUser` @@ -6732,21 +6934,6 @@ applyRls const result = await db.mutation.applyRls({ input: '' }).execute(); ``` -### `db.mutation.signInCrossOrigin` - -signInCrossOrigin - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SignInCrossOriginInput (required) | - -```typescript -const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); -``` - ### `db.mutation.createUserDatabase` Creates a new user database with all required modules, permissions, and RLS policies. @@ -6808,94 +6995,64 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | SendVerificationEmailInput (required) | - -```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); -``` - -### `db.mutation.forgotPassword` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ForgotPasswordInput (required) | - -```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); -``` - -### `db.mutation.signUp` +### `db.mutation.requestCrossOriginToken` -signUp +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.requestCrossOriginToken` +### `db.mutation.provisionTable` -requestCrossOriginToken +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ProvisionTableInput (required) | ```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +const result = await db.mutation.provisionTable({ input: '' }).execute(); ``` -### `db.mutation.signIn` +### `db.mutation.sendVerificationEmail` -signIn +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.provisionTable` +### `db.mutation.forgotPassword` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.provisionBucket` diff --git a/sdk/constructive-sdk/src/public/orm/index.ts b/sdk/constructive-sdk/src/public/orm/index.ts index a605cf0e2b..f69517e744 100644 --- a/sdk/constructive-sdk/src/public/orm/index.ts +++ b/sdk/constructive-sdk/src/public/orm/index.ts @@ -8,9 +8,9 @@ import type { OrmClientConfig } from './client'; 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'; -import { ObjectModel } from './models/object'; import { DatabaseModel } from './models/database'; import { SchemaModel } from './models/schema'; import { TableModel } from './models/table'; @@ -35,6 +35,7 @@ import { RelationProvisionModel } from './models/relationProvision'; import { SessionSecretsModuleModel } from './models/sessionSecretsModule'; import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RealtimeModuleModel } from './models/realtimeModule'; +import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { EnumModel } from './models/enum'; @@ -59,7 +60,7 @@ import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; import { DefaultIdsModuleModel } from './models/defaultIdsModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; import { EmailsModuleModel } from './models/emailsModule'; -import { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule'; +import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule'; import { InvitesModuleModel } from './models/invitesModule'; import { EventsModuleModel } from './models/eventsModule'; import { LimitsModuleModel } from './models/limitsModule'; @@ -80,6 +81,11 @@ import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; import { NotificationsModuleModel } from './models/notificationsModule'; +import { InferenceLogModuleModel } from './models/inferenceLogModule'; +import { ComputeLogModuleModel } from './models/computeLogModule'; +import { TransferLogModuleModel } from './models/transferLogModule'; +import { StorageLogModuleModel } from './models/storageLogModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; @@ -109,54 +115,51 @@ import { AppInviteModel } from './models/appInvite'; import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; -import { AuditLogModel } from './models/auditLog'; -import { AgentThreadModel } from './models/agentThread'; -import { AgentMessageModel } from './models/agentMessage'; -import { AgentTaskModel } from './models/agentTask'; -import { RoleTypeModel } from './models/roleType'; +import { AuditLogAuthModel } from './models/auditLogAuth'; import { IdentityProviderModel } from './models/identityProvider'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; +import { RoleTypeModel } from './models/roleType'; +import { MigrateFileModel } from './models/migrateFile'; +import { DevicesModuleModel } from './models/devicesModule'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault'; import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault'; import { AppLimitCapModel } from './models/appLimitCap'; import { OrgLimitCapModel } from './models/orgLimitCap'; -import { MembershipTypeModel } from './models/membershipType'; -import { MigrateFileModel } from './models/migrateFile'; -import { DevicesModuleModel } from './models/devicesModule'; -import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; +import { UserConnectedAccountModel } from './models/userConnectedAccount'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; +import { AppLimitCreditCodeModel } from './models/appLimitCreditCode'; import { AppLimitWarningModel } from './models/appLimitWarning'; -import { UserConnectedAccountModel } from './models/userConnectedAccount'; import { CommitModel } from './models/commit'; import { PubkeySettingModel } from './models/pubkeySetting'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; -import { UsageSnapshotModel } from './models/usageSnapshot'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { RlsSettingModel } from './models/rlsSetting'; -import { AppLimitEventModel } from './models/appLimitEvent'; -import { OrgLimitEventModel } from './models/orgLimitEvent'; import { RlsModuleModel } from './models/rlsModule'; +import { AgentChatModuleModel } from './models/agentChatModule'; import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { PlansModuleModel } from './models/plansModule'; import { SqlActionModel } from './models/sqlAction'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { DatabaseSettingModel } from './models/databaseSetting'; -import { BillingModuleModel } from './models/billingModule'; -import { AstMigrationModel } from './models/astMigration'; -import { UserModel } from './models/user'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { WebauthnSettingModel } from './models/webauthnSetting'; import { AppMembershipModel } from './models/appMembership'; +import { UserModel } from './models/user'; +import { AstMigrationModel } from './models/astMigration'; +import { WebauthnSettingModel } from './models/webauthnSetting'; +import { BillingModuleModel } from './models/billingModule'; import { BillingProviderModuleModel } from './models/billingProviderModule'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models'; @@ -191,9 +194,9 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), + object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), - object: new ObjectModel(client), database: new DatabaseModel(client), schema: new SchemaModel(client), table: new TableModel(client), @@ -218,6 +221,7 @@ export function createClient(config: OrmClientConfig) { sessionSecretsModule: new SessionSecretsModuleModel(client), identityProvidersModule: new IdentityProvidersModuleModel(client), realtimeModule: new RealtimeModuleModel(client), + configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client), schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), enum: new EnumModel(client), @@ -242,7 +246,7 @@ export function createClient(config: OrmClientConfig) { defaultIdsModule: new DefaultIdsModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), emailsModule: new EmailsModuleModel(client), - encryptedSecretsModule: new EncryptedSecretsModuleModel(client), + configSecretsUserModule: new ConfigSecretsUserModuleModel(client), invitesModule: new InvitesModuleModel(client), eventsModule: new EventsModuleModel(client), limitsModule: new LimitsModuleModel(client), @@ -263,6 +267,11 @@ export function createClient(config: OrmClientConfig) { webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), notificationsModule: new NotificationsModuleModel(client), + inferenceLogModule: new InferenceLogModuleModel(client), + computeLogModule: new ComputeLogModuleModel(client), + transferLogModule: new TransferLogModuleModel(client), + storageLogModule: new StorageLogModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), @@ -292,48 +301,45 @@ export function createClient(config: OrmClientConfig) { appClaimedInvite: new AppClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), - auditLog: new AuditLogModel(client), - agentThread: new AgentThreadModel(client), - agentMessage: new AgentMessageModel(client), - agentTask: new AgentTaskModel(client), - roleType: new RoleTypeModel(client), + auditLogAuth: new AuditLogAuthModel(client), identityProvider: new IdentityProviderModel(client), ref: new RefModel(client), store: new StoreModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - appLimitCreditCode: new AppLimitCreditCodeModel(client), + roleType: new RoleTypeModel(client), + migrateFile: new MigrateFileModel(client), + devicesModule: new DevicesModuleModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + nodeTypeRegistry: new NodeTypeRegistryModel(client), appLimitCapsDefault: new AppLimitCapsDefaultModel(client), orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client), appLimitCap: new AppLimitCapModel(client), orgLimitCap: new OrgLimitCapModel(client), - membershipType: new MembershipTypeModel(client), - migrateFile: new MigrateFileModel(client), - devicesModule: new DevicesModuleModel(client), - nodeTypeRegistry: new NodeTypeRegistryModel(client), + userConnectedAccount: new UserConnectedAccountModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), + appLimitCreditCode: new AppLimitCreditCodeModel(client), appLimitWarning: new AppLimitWarningModel(client), - userConnectedAccount: new UserConnectedAccountModel(client), commit: new CommitModel(client), pubkeySetting: new PubkeySettingModel(client), rateLimitsModule: new RateLimitsModuleModel(client), - usageSnapshot: new UsageSnapshotModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), + membershipType: new MembershipTypeModel(client), rlsSetting: new RlsSettingModel(client), - appLimitEvent: new AppLimitEventModel(client), - orgLimitEvent: new OrgLimitEventModel(client), rlsModule: new RlsModuleModel(client), + agentChatModule: new AgentChatModuleModel(client), rateLimitMetersModule: new RateLimitMetersModuleModel(client), plansModule: new PlansModuleModel(client), sqlAction: new SqlActionModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), databaseSetting: new DatabaseSettingModel(client), - billingModule: new BillingModuleModel(client), - astMigration: new AstMigrationModel(client), - user: new UserModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), - webauthnSetting: new WebauthnSettingModel(client), appMembership: new AppMembershipModel(client), + user: new UserModel(client), + astMigration: new AstMigrationModel(client), + webauthnSetting: new WebauthnSettingModel(client), + billingModule: new BillingModuleModel(client), billingProviderModule: new BillingProviderModuleModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index 8a39234a74..b8693547c6 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -254,6 +254,16 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } +export interface Object { + hashUuid?: string | null; + id: string; + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; @@ -278,16 +288,6 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} export interface Database { id: string; ownerId?: string | null; @@ -786,6 +786,14 @@ export interface RealtimeModule { interval?: string | null; notifyChannel?: string | null; } +/** Config row for the config_secrets_org_module, which provisions an organization-scoped encrypted key-value secrets store with manage_secrets permission and entity-membership RLS. */ +export interface ConfigSecretsOrgModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} export interface SchemaGrant { id: string; databaseId?: string | null; @@ -944,6 +952,7 @@ export interface Partition { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; createdAt?: string | null; @@ -1103,7 +1112,7 @@ export interface EmailsModule { ownerTableId?: string | null; tableName?: string | null; } -export interface EncryptedSecretsModule { +export interface ConfigSecretsUserModule { id: string; databaseId?: string | null; schemaId?: string | null; @@ -1456,6 +1465,7 @@ export interface StorageModule { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -1580,36 +1590,34 @@ export interface EntityTypeProvision { */ hasInviteAchievements?: boolean | null; /** - * Optional jsonb object for storage module configuration and initial bucket seeding. - * Only used when has_storage = true; ignored otherwise. NULL = use defaults. - * Recognized keys (all optional): - * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override - * - download_url_expiry_seconds (integer) presigned GET URL expiry override - * - default_max_file_size (bigint) global max file size in bytes for this scope - * - allowed_origins (text[]) default CORS origins for all buckets in this scope - * - buckets (jsonb[]) array of initial bucket definitions to seed - * Each bucket in the buckets array recognizes: - * - name (text, required) bucket name e.g. 'documents' - * - description (text) human-readable description - * - is_public (boolean) whether files are publicly readable (default false) - * - allowed_mime_types (text[]) whitelist of MIME types (null = any) - * - max_file_size (bigint) max file size in bytes (null = use scope default) - * - allowed_origins (text[]) per-bucket CORS override - * - provisions (jsonb object) optional: customize storage tables - * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets". - * Each value uses the same shape as table_provision: - * { nodes, fields, grants, use_rls, policies }. Fanned out - * to secure_table_provision targeting the corresponding table. - * When a key includes policies[], those REPLACE the default - * storage policies for that table; tables without a key still - * get defaults. Missing "data" on policy entries is auto-populated - * with storage-specific defaults (same as table_provision). - * Example: add SearchBm25 for full-text search on files: - * {"provisions": {"files": {"nodes": [{"$type": - * "SearchBm25", "data": {"source_fields": ["description"]}}]}}} - * Example: - * storage_config := '{"buckets": [{"name": "documents", "is_public": false, "allowed_mime_types": ["application/pdf"]}], "provisions": {"files": {"nodes": [{"$type": "SearchBm25", "data": {"source_fields": ["description"]}}]}}}'::jsonb + * Optional JSON array of storage module definitions. Each element provisions a separate + * storage module with its own tables ({prefix}_{storage_key}_buckets/files), RLS policies, + * and feature flags. Only used when has_storage = true; ignored otherwise. + * NULL = provision a single default storage module with all defaults. + * Each array element recognizes (all optional): + * - storage_key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage_config := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage_config := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"storage_key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb */ storageConfig?: Record | null; /** @@ -1737,6 +1745,93 @@ export interface NotificationsModule { hasDigestMetadata?: boolean | null; hasSubscriptions?: boolean | null; } +export interface InferenceLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface ComputeLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface TransferLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface StorageLogModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface DbUsageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: 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 { id: string; @@ -1748,7 +1843,7 @@ export interface DatabaseProvisionModule { subdomain?: string | null; /** Base domain for the database (e.g., example.com) */ domain?: string | null; - /** Array of module IDs to install, or ["all"] for all modules */ + /** Explicit array of module IDs to install (e.g. users_module, storage_module:full) */ modules?: string[] | null; /** Additional configuration options for provisioning */ options?: Record | null; @@ -2243,8 +2338,10 @@ 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 { +/** Partitioned append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ +export interface AuditLogAuth { + createdAt?: string | null; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ id: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; @@ -2258,74 +2355,6 @@ export interface AuditLog { ipAddress?: string | null; /** Whether the authentication attempt succeeded */ success?: boolean | null; - /** Timestamp when the audit event was recorded */ - createdAt?: string | null; -} -/** Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. */ -export interface AgentThread { - /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ - title?: string | null; - /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ - mode?: string | null; - /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ - model?: string | null; - /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ - systemPrompt?: string | null; - id: string; - /** Timestamp when this record was created */ - createdAt?: string | null; - /** Timestamp when this record was last updated */ - updatedAt?: string | null; - /** User who owns this record within the entity */ - ownerId?: string | null; - /** Entity this record belongs to */ - entityId?: string | null; - /** Current status of this record */ - status?: string | null; -} -/** A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only. */ -export interface AgentMessage { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId?: string | null; - /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ - entityId?: string | null; - /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ - authorRole?: string | null; - id: string; - /** Timestamp when this record was created */ - createdAt?: string | null; - /** Timestamp when this record was last updated */ - updatedAt?: string | null; - /** User who owns this record */ - ownerId?: string | null; - /** JSON metadata for extensible key-value storage */ - parts?: Record | null; -} -/** An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only. */ -export interface AgentTask { - /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ - threadId?: string | null; - /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ - entityId?: string | null; - /** Natural-language description of the work to do. Required. */ - description?: string | null; - /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ - source?: string | null; - /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ - error?: string | null; - id: string; - /** Timestamp when this record was created */ - createdAt?: string | null; - /** Timestamp when this record was last updated */ - updatedAt?: string | null; - /** User who owns this record */ - ownerId?: string | null; - /** Current status of this record */ - status?: string | null; -} -export interface RoleType { - id: number; - name?: string | null; } export interface IdentityProvider { slug?: string | null; @@ -2340,7 +2369,7 @@ export interface Ref { id: string; /** The name of the ref or branch */ name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -2350,8 +2379,8 @@ export interface Store { id: string; /** The name of the store (e.g., metaschema, migrations). */ name?: string | null; - /** The database this store belongs to. */ - databaseId?: string | null; + /** The scope this store belongs to. */ + scopeId?: string | null; /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; @@ -2362,68 +2391,9 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Redeemable credit codes managed by admins with the add_credits permission */ -export interface AppLimitCreditCode { - id: string; - /** Human-readable credit code (case-insensitive, unique) */ - code?: string | null; - /** Maximum total redemptions allowed; NULL for unlimited */ - maxRedemptions?: number | null; - /** Current number of redemptions (incremented by trigger on credit_redemptions) */ - currentRedemptions?: number | null; - /** Expiration timestamp; NULL for no expiry */ - expiresAt?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface AppLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ -export interface OrgLimitCapsDefault { - id: string; - /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ - name?: string | null; - /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface AppLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ -export interface OrgLimitCap { - id: string; - /** Name identifier of the cap being overridden */ - name?: string | null; - /** Entity this cap override applies to */ - entityId?: string | null; - /** Override cap value for this entity */ - max?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ +export interface RoleType { id: number; - /** Human-readable name of the membership type */ name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; } export interface MigrateFile { id: string; @@ -2439,122 +2409,6 @@ export interface DevicesModule { userDevicesTable?: string | null; deviceSettingsTable?: string | null; } -export interface NodeTypeRegistry { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { - id: string; - /** Name identifier of the limit this default applies to */ - name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: string | null; - /** Default soft limit threshold for warnings; NULL means no soft limit */ - softMax?: string | null; -} -/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ -export interface AppLimitWarning { - id: string; - /** Limit name this warning applies to (must match a default_limits entry) */ - name?: string | null; - /** Threshold type: absolute (fixed count) or percentage (of max) */ - warningType?: string | null; - /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ - thresholdValue?: string | null; - /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ - taskIdentifier?: string | null; -} -export interface UserConnectedAccount { - id: string; - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** A commit records changes to the repository. */ -export interface Commit { - /** The primary unique identifier for the commit. */ - id: string; - /** The commit message */ - message?: string | null; - /** The repository identifier */ - databaseId?: string | null; - storeId?: string | null; - /** Parent commits */ - parentIds?: string[] | null; - /** The author of the commit */ - authorId?: string | null; - /** The committer of the commit */ - committerId?: string | null; - /** The root of the tree */ - treeId?: string | null; - date?: string | null; -} -/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ -export interface PubkeySetting { - /** Unique identifier for this pubkey settings record */ - id: string; - /** Reference to the metaschema database */ - databaseId?: string | null; - /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ - schemaId?: string | null; - /** Crypto network for key derivation (e.g. cosmos, ethereum) */ - cryptoNetwork?: string | null; - /** Field name used to identify the user in crypto auth functions */ - userField?: string | null; - /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ - signUpWithKeyFunctionId?: string | null; - /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ - signInRequestChallengeFunctionId?: string | null; - /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ - signInRecordFailureFunctionId?: string | null; - /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ - signInWithChallengeFunctionId?: string | null; -} -export interface RateLimitsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - rateLimitSettingsTableId?: string | null; - ipRateLimitsTableId?: string | null; - rateLimitsTableId?: string | null; - rateLimitSettingsTable?: string | null; - ipRateLimitsTable?: string | null; - rateLimitsTable?: string | null; -} -/** Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns. */ -export interface UsageSnapshot { - /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */ - databaseId?: string | null; - /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */ - metricName?: string | null; - /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */ - metricValue?: string | null; - /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */ - dimensions?: Record | null; - /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */ - capturedAt?: string | null; - id: string; -} /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { id: string; @@ -2579,6 +2433,171 @@ export interface OrgMembershipDefault { /** References the entity these membership defaults apply to */ entityId?: string | null; } +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +export interface AppLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Default cap values for static configuration limits (max file size, feature flags, etc.). Not metered — just read by consumers. */ +export interface OrgLimitCapsDefault { + id: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name?: string | null; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface AppLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +/** Per-entity cap overrides. Allows specific orgs/entities to have different cap values than the scope default. */ +export interface OrgLimitCap { + id: string; + /** Name identifier of the cap being overridden */ + name?: string | null; + /** Entity this cap override applies to */ + entityId?: string | null; + /** Override cap value for this entity */ + max?: string | null; +} +export interface UserConnectedAccount { + id: string; + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { + id: string; + /** Name identifier of the limit this default applies to */ + name?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; +} +/** Redeemable credit codes managed by admins with the add_credits permission */ +export interface AppLimitCreditCode { + id: string; + /** Human-readable credit code (case-insensitive, unique) */ + code?: string | null; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number | null; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number | null; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string | null; +} +/** Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it. */ +export interface AppLimitWarning { + id: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name?: string | null; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType?: string | null; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue?: string | null; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier?: string | null; +} +/** A commit records changes to the repository. */ +export interface Commit { + /** The primary unique identifier for the commit. */ + id: string; + /** The commit message */ + message?: string | null; + /** The scope identifier */ + scopeId?: string | null; + storeId?: string | null; + /** Parent commits */ + parentIds?: string[] | null; + /** The author of the commit */ + authorId?: string | null; + /** The committer of the commit */ + committerId?: string | null; + /** The root of the tree */ + treeId?: string | null; + date?: string | null; +} +/** Per-database public-key crypto auth runtime configuration; typed replacement for api_modules pubkey_challenge JSONB entries */ +export interface PubkeySetting { + /** Unique identifier for this pubkey settings record */ + id: string; + /** Reference to the metaschema database */ + databaseId?: string | null; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string | null; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string | null; + /** Field name used to identify the user in crypto auth functions */ + userField?: string | null; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string | null; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string | null; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string | null; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string | null; +} +export interface RateLimitsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + rateLimitSettingsTableId?: string | null; + ipRateLimitsTableId?: string | null; + rateLimitsTableId?: string | null; + rateLimitSettingsTable?: string | null; + ipRateLimitsTable?: string | null; + rateLimitsTable?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; +} /** Per-database RLS module runtime configuration; typed replacement for api_modules rls_module JSONB entries */ export interface RlsSetting { /** Unique identifier for this RLS settings record */ @@ -2602,48 +2621,6 @@ export interface RlsSetting { /** Reference to the current_ip_address function (FK to metaschema_public.function) */ currentIpAddressFunctionId?: string | null; } -/** Append-only log of limit events for historical reporting and audit */ -export interface AppLimitEvent { - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} -/** Append-only log of limit events for historical reporting and audit */ -export interface OrgLimitEvent { - /** Limit name this event applies to */ - name?: string | null; - /** User who triggered this event; NULL for system/aggregate events */ - actorId?: string | null; - /** Entity this event applies to; NULL for app-level events */ - entityId?: string | null; - /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ - eventType?: string | null; - /** Change amount: positive for increment, negative for decrement */ - delta?: string | null; - /** Usage count before this event */ - numBefore?: string | null; - /** Usage count after this event */ - numAfter?: string | null; - /** Max limit ceiling at the time of this event */ - maxAtEvent?: string | null; - /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ - reason?: string | null; -} export interface RlsModule { id: string; databaseId?: string | null; @@ -2657,6 +2634,20 @@ export interface RlsModule { currentRole?: string | null; currentRoleId?: string | null; } +export interface AgentChatModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + apiId?: string | null; + threadTableId?: string | null; + threadTableName?: string | null; + messageTableId?: string | null; + messageTableName?: string | null; + taskTableId?: string | null; + taskTableName?: string | null; + prefix?: string | null; +} export interface RateLimitMetersModule { id: string; databaseId?: string | null; @@ -2701,6 +2692,54 @@ export interface SqlAction { actionId?: string | null; actorId?: string | null; } +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + createdAt?: string | null; + /** Unique identifier for each limit event */ + id: string; + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} /** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ export interface DatabaseSetting { /** Unique identifier for this settings record */ @@ -2732,53 +2771,6 @@ export interface DatabaseSetting { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: Record | null; } -export interface BillingModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; -} -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ - 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. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ - searchScore?: number | null; -} /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { id: string; @@ -2805,6 +2797,66 @@ export interface OrgMembershipSetting { /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ limitAllocationMode?: string | null; } +/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ +export interface AppMembership { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean | null; + /** Whether this member has been banned from the entity */ + isBanned?: boolean | null; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean | null; + /** Whether this member has been verified (e.g. email confirmation) */ + isVerified?: boolean | null; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean | null; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean | null; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean | null; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string | null; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string | null; + /** References the user who holds this membership */ + actorId?: string | null; + profileId?: string | null; +} +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ + 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. 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; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} /** Per-database WebAuthn/passkey runtime configuration; typed replacement for api_modules webauthn_challenge JSONB entries */ export interface WebauthnSetting { /** Unique identifier for this WebAuthn settings record */ @@ -2844,34 +2896,25 @@ export interface WebauthnSetting { /** Challenge TTL in seconds (default 300 = 5 minutes) */ challengeExpirySeconds?: string | null; } -/** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ -export interface AppMembership { +export interface BillingModule { id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean | null; - /** Whether this member has been banned from the entity */ - isBanned?: boolean | null; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean | null; - /** Whether this member has been verified (e.g. email confirmation) */ - isVerified?: boolean | null; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean | null; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean | null; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean | null; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string | null; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string | null; - /** References the user who holds this membership */ - actorId?: string | null; - profileId?: string | null; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; } export interface BillingProviderModule { id: string; @@ -2933,9 +2976,9 @@ export interface PageInfo { export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} +export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} -export interface ObjectRelations {} export interface DatabaseRelations { owner?: User | null; databaseSetting?: DatabaseSetting | null; @@ -2950,6 +2993,7 @@ export interface DatabaseRelations { billingModule?: BillingModule | null; billingProviderModule?: BillingProviderModule | null; rateLimitMetersModule?: RateLimitMetersModule | null; + agentChatModule?: AgentChatModule | null; schemas?: ConnectionResult; tables?: ConnectionResult
; checkConstraints?: ConnectionResult; @@ -2991,7 +3035,7 @@ export interface DatabaseRelations { defaultIdsModules?: ConnectionResult; denormalizedTableFields?: ConnectionResult; emailsModules?: ConnectionResult; - encryptedSecretsModules?: ConnectionResult; + configSecretsUserModules?: ConnectionResult; invitesModules?: ConnectionResult; eventsModules?: ConnectionResult; limitsModules?: ConnectionResult; @@ -3016,6 +3060,12 @@ export interface DatabaseRelations { identityProvidersModules?: ConnectionResult; notificationsModules?: ConnectionResult; realtimeModules?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; + inferenceLogModules?: ConnectionResult; + computeLogModules?: ConnectionResult; + transferLogModules?: ConnectionResult; + storageLogModules?: ConnectionResult; + dbUsageModules?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -3033,6 +3083,7 @@ export interface SchemaRelations { realtimeModulesByPrivateSchemaId?: ConnectionResult; realtimeModules?: ConnectionResult; realtimeModulesBySubscriptionsSchemaId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface TableRelations { database?: Database | null; @@ -3064,6 +3115,7 @@ export interface TableRelations { realtimeModulesByChangeLogTableId?: ConnectionResult; realtimeModulesByListenerNodeTableId?: ConnectionResult; realtimeModulesBySourceRegistryTableId?: ConnectionResult; + configSecretsOrgModules?: ConnectionResult; } export interface CheckConstraintRelations { database?: Database | null; @@ -3173,6 +3225,11 @@ export interface RealtimeModuleRelations { sourceRegistryTable?: Table | null; subscriptionsSchema?: Schema | null; } +export interface ConfigSecretsOrgModuleRelations { + database?: Database | null; + schema?: Schema | null; + table?: Table | null; +} export interface SchemaGrantRelations { database?: Database | null; schema?: Schema | null; @@ -3293,7 +3350,7 @@ export interface EmailsModuleRelations { schema?: Schema | null; table?: Table | null; } -export interface EncryptedSecretsModuleRelations { +export interface ConfigSecretsUserModuleRelations { database?: Database | null; schema?: Schema | null; table?: Table | null; @@ -3480,6 +3537,43 @@ export interface NotificationsModuleRelations { schema?: Schema | null; userSettingsTableByUserSettingsTableId?: Table | null; } +export interface InferenceLogModuleRelations { + database?: Database | null; + inferenceLogTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usageDailyTable?: Table | null; +} +export interface ComputeLogModuleRelations { + computeLogTable?: Table | null; + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + usageDailyTable?: Table | null; +} +export interface TransferLogModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + transferLogTable?: Table | null; + usageDailyTable?: Table | null; +} +export interface StorageLogModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + schema?: Schema | null; + storageLogTable?: Table | null; + usageDailyTable?: Table | null; +} +export interface DbUsageModuleRelations { + database?: Database | null; + privateSchema?: Schema | null; + queryStatsDailyTable?: Table | null; + queryStatsLogTable?: Table | null; + schema?: Schema | null; + tableStatsDailyTable?: Table | null; + tableStatsLogTable?: Table | null; +} export interface DatabaseProvisionModuleRelations { database?: Database | null; } @@ -3596,37 +3690,14 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } -export interface AuditLogRelations { +export interface AuditLogAuthRelations { actor?: User | null; } -export interface AgentThreadRelations { - entity?: User | null; - owner?: User | null; - agentMessagesByThreadId?: ConnectionResult; - agentTasksByThreadId?: ConnectionResult; -} -export interface AgentMessageRelations { - owner?: User | null; - thread?: AgentThread | null; -} -export interface AgentTaskRelations { - owner?: User | null; - thread?: AgentThread | null; -} -export interface RoleTypeRelations {} export interface IdentityProviderRelations {} export interface RefRelations {} export interface StoreRelations {} export interface AppPermissionDefaultRelations {} -export interface AppLimitCreditCodeRelations { - appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; - appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; -} -export interface AppLimitCapsDefaultRelations {} -export interface OrgLimitCapsDefaultRelations {} -export interface AppLimitCapRelations {} -export interface OrgLimitCapRelations {} -export interface MembershipTypeRelations {} +export interface RoleTypeRelations {} export interface MigrateFileRelations {} export interface DevicesModuleRelations { database?: Database | null; @@ -3634,7 +3705,16 @@ export interface DevicesModuleRelations { schema?: Schema | null; userDevicesTableByUserDevicesTableId?: Table | null; } +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations { + entity?: User | null; +} export interface NodeTypeRegistryRelations {} +export interface AppLimitCapsDefaultRelations {} +export interface OrgLimitCapsDefaultRelations {} +export interface AppLimitCapRelations {} +export interface OrgLimitCapRelations {} +export interface UserConnectedAccountRelations {} export interface AppLimitDefaultRelations { appLimitCreditsByDefaultLimitId?: ConnectionResult; appLimitCreditCodeItemsByDefaultLimitId?: ConnectionResult; @@ -3642,8 +3722,11 @@ export interface AppLimitDefaultRelations { export interface OrgLimitDefaultRelations { orgLimitCreditsByDefaultLimitId?: ConnectionResult; } +export interface AppLimitCreditCodeRelations { + appLimitCreditCodeItemsByCreditCodeId?: ConnectionResult; + appLimitCreditRedemptionsByCreditCodeId?: ConnectionResult; +} export interface AppLimitWarningRelations {} -export interface UserConnectedAccountRelations {} export interface CommitRelations {} export interface PubkeySettingRelations { database?: Database | null; @@ -3660,11 +3743,7 @@ export interface RateLimitsModuleRelations { rateLimitsTableByRateLimitsTableId?: Table | null; schema?: Schema | null; } -export interface UsageSnapshotRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} +export interface MembershipTypeRelations {} export interface RlsSettingRelations { authenticateFunction?: Function | null; authenticateSchema?: Schema | null; @@ -3676,8 +3755,6 @@ export interface RlsSettingRelations { database?: Database | null; roleSchema?: Schema | null; } -export interface AppLimitEventRelations {} -export interface OrgLimitEventRelations {} export interface RlsModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3686,6 +3763,15 @@ export interface RlsModuleRelations { sessionsTable?: Table | null; usersTable?: Table | null; } +export interface AgentChatModuleRelations { + api?: Api | null; + database?: Database | null; + messageTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; + taskTable?: Table | null; + threadTable?: Table | null; +} export interface RateLimitMetersModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -3704,19 +3790,17 @@ export interface PlansModuleRelations { schema?: Schema | null; } export interface SqlActionRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface DatabaseSettingRelations { database?: Database | null; } -export interface BillingModuleRelations { - balancesTable?: Table | null; - database?: Database | null; - ledgerTable?: Table | null; - metersTable?: Table | null; - planSubscriptionsTable?: Table | null; - privateSchema?: Schema | null; - schema?: Schema | null; +export interface OrgMembershipSettingRelations { + entity?: User | null; +} +export interface AppMembershipRelations { + actor?: User | null; } -export interface AstMigrationRelations {} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -3773,15 +3857,9 @@ export interface UserRelations { orgClaimedInvitesByEntityId?: ConnectionResult; orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; - auditLogsByActorId?: ConnectionResult; - agentThreadsByEntityId?: ConnectionResult; - ownedAgentThreads?: ConnectionResult; - ownedAgentMessages?: ConnectionResult; - ownedAgentTasks?: ConnectionResult; -} -export interface OrgMembershipSettingRelations { - entity?: User | null; + auditLogAuthsByActorId?: ConnectionResult; } +export interface AstMigrationRelations {} export interface WebauthnSettingRelations { credentialsSchema?: Schema | null; credentialsTable?: Table | null; @@ -3794,8 +3872,16 @@ export interface WebauthnSettingRelations { sessionsTable?: Table | null; userField?: Field | null; } -export interface AppMembershipRelations { - actor?: User | null; +export interface BillingModuleRelations { + balancesTable?: Table | null; + database?: Database | null; + ledgerTable?: Table | null; + meterCreditsTable?: Table | null; + meterSourcesTable?: Table | null; + metersTable?: Table | null; + planSubscriptionsTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; } export interface BillingProviderModuleRelations { billingCustomersTable?: Table | null; @@ -3826,9 +3912,9 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & 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; -export type ObjectWithRelations = Object & ObjectRelations; export type DatabaseWithRelations = Database & DatabaseRelations; export type SchemaWithRelations = Schema & SchemaRelations; export type TableWithRelations = Table & TableRelations; @@ -3858,6 +3944,8 @@ export type SessionSecretsModuleWithRelations = SessionSecretsModule & export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & IdentityProvidersModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; +export type ConfigSecretsOrgModuleWithRelations = ConfigSecretsOrgModule & + ConfigSecretsOrgModuleRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type EnumWithRelations = Enum & EnumRelations; @@ -3885,8 +3973,8 @@ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleR export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; export type EmailsModuleWithRelations = EmailsModule & EmailsModuleRelations; -export type EncryptedSecretsModuleWithRelations = EncryptedSecretsModule & - EncryptedSecretsModuleRelations; +export type ConfigSecretsUserModuleWithRelations = ConfigSecretsUserModule & + ConfigSecretsUserModuleRelations; export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; @@ -3910,6 +3998,11 @@ export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & WebauthnCredentialsModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; +export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; +export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; +export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; @@ -3943,54 +4036,51 @@ export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; -export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; -export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; -export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type AuditLogAuthWithRelations = AuditLogAuth & AuditLogAuthRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; +export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; +export type AppMembershipDefaultWithRelations = AppMembershipDefault & + AppMembershipDefaultRelations; +export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & + OrgMembershipDefaultRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppLimitCapsDefaultWithRelations = AppLimitCapsDefault & AppLimitCapsDefaultRelations; export type OrgLimitCapsDefaultWithRelations = OrgLimitCapsDefault & OrgLimitCapsDefaultRelations; export type AppLimitCapWithRelations = AppLimitCap & AppLimitCapRelations; export type OrgLimitCapWithRelations = OrgLimitCap & OrgLimitCapRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; -export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; -export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; -export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; +export type UserConnectedAccountWithRelations = UserConnectedAccount & + UserConnectedAccountRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; +export type AppLimitCreditCodeWithRelations = AppLimitCreditCode & AppLimitCreditCodeRelations; export type AppLimitWarningWithRelations = AppLimitWarning & AppLimitWarningRelations; -export type UserConnectedAccountWithRelations = UserConnectedAccount & - UserConnectedAccountRelations; export type CommitWithRelations = Commit & CommitRelations; export type PubkeySettingWithRelations = PubkeySetting & PubkeySettingRelations; export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; -export type UsageSnapshotWithRelations = UsageSnapshot & UsageSnapshotRelations; -export type AppMembershipDefaultWithRelations = AppMembershipDefault & - AppMembershipDefaultRelations; -export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & - OrgMembershipDefaultRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; -export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; -export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; +export type AgentChatModuleWithRelations = AgentChatModule & AgentChatModuleRelations; export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & RateLimitMetersModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; -export type UserWithRelations = User & UserRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; +export type UserWithRelations = User & UserRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type WebauthnSettingWithRelations = WebauthnSetting & WebauthnSettingRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; @@ -4007,6 +4097,16 @@ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + scopeId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -4021,16 +4121,6 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type DatabaseSelect = { id?: boolean; ownerId?: boolean; @@ -4079,6 +4169,9 @@ export type DatabaseSelect = { rateLimitMetersModule?: { select: RateLimitMetersModuleSelect; }; + agentChatModule?: { + select: AgentChatModuleSelect; + }; schemas?: { select: SchemaSelect; first?: number; @@ -4325,11 +4418,11 @@ export type DatabaseSelect = { filter?: EmailsModuleFilter; orderBy?: EmailsModuleOrderBy[]; }; - encryptedSecretsModules?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModules?: { + select: ConfigSecretsUserModuleSelect; first?: number; - filter?: EncryptedSecretsModuleFilter; - orderBy?: EncryptedSecretsModuleOrderBy[]; + filter?: ConfigSecretsUserModuleFilter; + orderBy?: ConfigSecretsUserModuleOrderBy[]; }; invitesModules?: { select: InvitesModuleSelect; @@ -4475,6 +4568,42 @@ export type DatabaseSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; + inferenceLogModules?: { + select: InferenceLogModuleSelect; + first?: number; + filter?: InferenceLogModuleFilter; + orderBy?: InferenceLogModuleOrderBy[]; + }; + computeLogModules?: { + select: ComputeLogModuleSelect; + first?: number; + filter?: ComputeLogModuleFilter; + orderBy?: ComputeLogModuleOrderBy[]; + }; + transferLogModules?: { + select: TransferLogModuleSelect; + first?: number; + filter?: TransferLogModuleFilter; + orderBy?: TransferLogModuleOrderBy[]; + }; + storageLogModules?: { + select: StorageLogModuleSelect; + first?: number; + filter?: StorageLogModuleFilter; + orderBy?: StorageLogModuleOrderBy[]; + }; + dbUsageModules?: { + select: DbUsageModuleSelect; + first?: number; + filter?: DbUsageModuleFilter; + orderBy?: DbUsageModuleOrderBy[]; + }; databaseProvisionModules?: { select: DatabaseProvisionModuleSelect; first?: number; @@ -4578,6 +4707,12 @@ export type SchemaSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type TableSelect = { id?: boolean; @@ -4765,6 +4900,12 @@ export type TableSelect = { filter?: RealtimeModuleFilter; orderBy?: RealtimeModuleOrderBy[]; }; + configSecretsOrgModules?: { + select: ConfigSecretsOrgModuleSelect; + first?: number; + filter?: ConfigSecretsOrgModuleFilter; + orderBy?: ConfigSecretsOrgModuleOrderBy[]; + }; }; export type CheckConstraintSelect = { id?: boolean; @@ -5299,6 +5440,22 @@ export type RealtimeModuleSelect = { select: SchemaSelect; }; }; +export type ConfigSecretsOrgModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + tableId?: boolean; + tableName?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; + table?: { + select: TableSelect; + }; +}; export type SchemaGrantSelect = { id?: boolean; databaseId?: boolean; @@ -5494,6 +5651,7 @@ export type PartitionSelect = { partitionKeyId?: boolean; interval?: boolean; retention?: boolean; + retentionKeepTable?: boolean; premake?: boolean; namingPattern?: boolean; createdAt?: boolean; @@ -5771,7 +5929,7 @@ export type EmailsModuleSelect = { select: TableSelect; }; }; -export type EncryptedSecretsModuleSelect = { +export type ConfigSecretsUserModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; @@ -6423,6 +6581,7 @@ export type StorageModuleSelect = { bucketsTableName?: boolean; filesTableName?: boolean; membershipType?: boolean; + storageKey?: boolean; policies?: boolean; skipDefaultPolicyTables?: boolean; entityTableId?: boolean; @@ -6621,6 +6780,174 @@ export type NotificationsModuleSelect = { select: TableSelect; }; }; +export type InferenceLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + inferenceLogTableId?: boolean; + inferenceLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + inferenceLogTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type ComputeLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + computeLogTableId?: boolean; + computeLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + computeLogTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type TransferLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + transferLogTableId?: boolean; + transferLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + transferLogTable?: { + select: TableSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type StorageLogModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + storageLogTableId?: boolean; + storageLogTableName?: boolean; + usageDailyTableId?: boolean; + usageDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + actorFkTableId?: boolean; + entityFkTableId?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + storageLogTable?: { + select: TableSelect; + }; + usageDailyTable?: { + select: TableSelect; + }; +}; +export type DbUsageModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; + prefix?: boolean; + database?: { + select: DatabaseSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + queryStatsDailyTable?: { + select: TableSelect; + }; + queryStatsLogTable?: { + select: TableSelect; + }; + schema?: { + select: SchemaSelect; + }; + tableStatsDailyTable?: { + select: TableSelect; + }; + tableStatsLogTable?: { + select: TableSelect; + }; +}; export type DatabaseProvisionModuleSelect = { id?: boolean; databaseName?: boolean; @@ -7104,7 +7431,8 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; -export type AuditLogSelect = { +export type AuditLogAuthSelect = { + createdAt?: boolean; id?: boolean; event?: boolean; actorId?: boolean; @@ -7112,79 +7440,10 @@ export type AuditLogSelect = { userAgent?: boolean; ipAddress?: boolean; success?: boolean; - createdAt?: boolean; actor?: { select: UserSelect; }; }; -export type AgentThreadSelect = { - title?: boolean; - mode?: boolean; - model?: boolean; - systemPrompt?: boolean; - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ownerId?: boolean; - entityId?: boolean; - status?: boolean; - entity?: { - select: UserSelect; - }; - owner?: { - select: UserSelect; - }; - agentMessagesByThreadId?: { - select: AgentMessageSelect; - first?: number; - filter?: AgentMessageFilter; - orderBy?: AgentMessageOrderBy[]; - }; - agentTasksByThreadId?: { - select: AgentTaskSelect; - first?: number; - filter?: AgentTaskFilter; - orderBy?: AgentTaskOrderBy[]; - }; -}; -export type AgentMessageSelect = { - threadId?: boolean; - entityId?: boolean; - authorRole?: boolean; - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ownerId?: boolean; - parts?: boolean; - owner?: { - select: UserSelect; - }; - thread?: { - select: AgentThreadSelect; - }; -}; -export type AgentTaskSelect = { - threadId?: boolean; - entityId?: boolean; - description?: boolean; - source?: boolean; - error?: boolean; - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ownerId?: boolean; - status?: boolean; - owner?: { - select: UserSelect; - }; - thread?: { - select: AgentThreadSelect; - }; -}; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; export type IdentityProviderSelect = { slug?: boolean; kind?: boolean; @@ -7195,14 +7454,14 @@ export type IdentityProviderSelect = { export type RefSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; commitId?: boolean; }; export type StoreSelect = { id?: boolean; name?: boolean; - databaseId?: boolean; + scopeId?: boolean; hash?: boolean; createdAt?: boolean; }; @@ -7210,54 +7469,9 @@ export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type AppLimitCreditCodeSelect = { - id?: boolean; - code?: boolean; - maxRedemptions?: boolean; - currentRedemptions?: boolean; - expiresAt?: boolean; - appLimitCreditCodeItemsByCreditCodeId?: { - select: AppLimitCreditCodeItemSelect; - first?: number; - filter?: AppLimitCreditCodeItemFilter; - orderBy?: AppLimitCreditCodeItemOrderBy[]; - }; - appLimitCreditRedemptionsByCreditCodeId?: { - select: AppLimitCreditRedemptionSelect; - first?: number; - filter?: AppLimitCreditRedemptionFilter; - orderBy?: AppLimitCreditRedemptionOrderBy[]; - }; -}; -export type AppLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitCapsDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type AppLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type OrgLimitCapSelect = { - id?: boolean; - name?: boolean; - entityId?: boolean; - max?: boolean; -}; -export type MembershipTypeSelect = { +export type RoleTypeSelect = { id?: boolean; name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; }; export type MigrateFileSelect = { id?: boolean; @@ -7285,6 +7499,27 @@ export type DevicesModuleSelect = { select: TableSelect; }; }; +export type AppMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; export type NodeTypeRegistrySelect = { name?: boolean; slug?: boolean; @@ -7294,6 +7529,38 @@ export type NodeTypeRegistrySelect = { parameterSchema?: boolean; tags?: boolean; }; +export type AppLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type OrgLimitCapsDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; +}; +export type AppLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type OrgLimitCapSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + max?: boolean; +}; +export type UserConnectedAccountSelect = { + id?: boolean; + ownerId?: boolean; + service?: boolean; + identifier?: boolean; + details?: boolean; + isVerified?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -7324,6 +7591,25 @@ export type OrgLimitDefaultSelect = { orderBy?: OrgLimitCreditOrderBy[]; }; }; +export type AppLimitCreditCodeSelect = { + id?: boolean; + code?: boolean; + maxRedemptions?: boolean; + currentRedemptions?: boolean; + expiresAt?: boolean; + appLimitCreditCodeItemsByCreditCodeId?: { + select: AppLimitCreditCodeItemSelect; + first?: number; + filter?: AppLimitCreditCodeItemFilter; + orderBy?: AppLimitCreditCodeItemOrderBy[]; + }; + appLimitCreditRedemptionsByCreditCodeId?: { + select: AppLimitCreditRedemptionSelect; + first?: number; + filter?: AppLimitCreditRedemptionFilter; + orderBy?: AppLimitCreditRedemptionOrderBy[]; + }; +}; export type AppLimitWarningSelect = { id?: boolean; name?: boolean; @@ -7331,20 +7617,10 @@ export type AppLimitWarningSelect = { thresholdValue?: boolean; taskIdentifier?: boolean; }; -export type UserConnectedAccountSelect = { - id?: boolean; - ownerId?: boolean; - service?: boolean; - identifier?: boolean; - details?: boolean; - isVerified?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type CommitSelect = { id?: boolean; message?: boolean; - databaseId?: boolean; + scopeId?: boolean; storeId?: boolean; parentIds?: boolean; authorId?: boolean; @@ -7407,34 +7683,13 @@ export type RateLimitsModuleSelect = { select: SchemaSelect; }; }; -export type UsageSnapshotSelect = { - databaseId?: boolean; - metricName?: boolean; - metricValue?: boolean; - dimensions?: boolean; - capturedAt?: boolean; - id?: boolean; -}; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { +export type MembershipTypeSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; + name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; export type RlsSettingSelect = { id?: boolean; @@ -7475,28 +7730,6 @@ export type RlsSettingSelect = { select: SchemaSelect; }; }; -export type AppLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; -export type OrgLimitEventSelect = { - name?: boolean; - actorId?: boolean; - entityId?: boolean; - eventType?: boolean; - delta?: boolean; - numBefore?: boolean; - numAfter?: boolean; - maxAtEvent?: boolean; - reason?: boolean; -}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7528,6 +7761,41 @@ export type RlsModuleSelect = { select: TableSelect; }; }; +export type AgentChatModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + apiId?: boolean; + threadTableId?: boolean; + threadTableName?: boolean; + messageTableId?: boolean; + messageTableName?: boolean; + taskTableId?: boolean; + taskTableName?: boolean; + prefix?: boolean; + api?: { + select: ApiSelect; + }; + database?: { + select: DatabaseSelect; + }; + messageTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; + taskTable?: { + select: TableSelect; + }; + threadTable?: { + select: TableSelect; + }; +}; export type RateLimitMetersModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7611,6 +7879,32 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; +export type AppLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + createdAt?: boolean; + id?: boolean; + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; export type DatabaseSettingSelect = { id?: boolean; databaseId?: boolean; @@ -7630,57 +7924,45 @@ export type DatabaseSettingSelect = { select: DatabaseSelect; }; }; -export type BillingModuleSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - metersTableId?: boolean; - metersTableName?: boolean; - planSubscriptionsTableId?: boolean; - planSubscriptionsTableName?: boolean; - ledgerTableId?: boolean; - ledgerTableName?: boolean; - balancesTableId?: boolean; - balancesTableName?: boolean; - recordUsageFunction?: boolean; - prefix?: boolean; - balancesTable?: { - select: TableSelect; - }; - database?: { - select: DatabaseSelect; - }; - ledgerTable?: { - select: TableSelect; - }; - metersTable?: { - select: TableSelect; - }; - planSubscriptionsTable?: { - select: TableSelect; - }; - privateSchema?: { - select: SchemaSelect; - }; - schema?: { - select: SchemaSelect; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; + entity?: { + select: UserSelect; }; }; -export type AstMigrationSelect = { +export type AppMembershipSelect = { id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; createdAt?: boolean; - action?: boolean; - actionId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: boolean; + granted?: boolean; actorId?: boolean; + profileId?: boolean; + actor?: { + select: UserSelect; + }; }; export type UserSelect = { id?: boolean; @@ -8012,55 +8294,27 @@ export type UserSelect = { filter?: OrgClaimedInviteFilter; orderBy?: OrgClaimedInviteOrderBy[]; }; - auditLogsByActorId?: { - select: AuditLogSelect; + auditLogAuthsByActorId?: { + select: AuditLogAuthSelect; first?: number; - filter?: AuditLogFilter; - orderBy?: AuditLogOrderBy[]; - }; - agentThreadsByEntityId?: { - select: AgentThreadSelect; - first?: number; - filter?: AgentThreadFilter; - orderBy?: AgentThreadOrderBy[]; - }; - ownedAgentThreads?: { - select: AgentThreadSelect; - first?: number; - filter?: AgentThreadFilter; - orderBy?: AgentThreadOrderBy[]; - }; - ownedAgentMessages?: { - select: AgentMessageSelect; - first?: number; - filter?: AgentMessageFilter; - orderBy?: AgentMessageOrderBy[]; - }; - ownedAgentTasks?: { - select: AgentTaskSelect; - first?: number; - filter?: AgentTaskFilter; - orderBy?: AgentTaskOrderBy[]; + filter?: AuditLogAuthFilter; + orderBy?: AuditLogAuthOrderBy[]; }; }; -export type OrgMembershipSettingSelect = { +export type AstMigrationSelect = { id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: boolean; - populateMemberEmail?: boolean; - limitAllocationMode?: boolean; - entity?: { - select: UserSelect; - }; + action?: boolean; + actionId?: boolean; + actorId?: boolean; }; export type WebauthnSettingSelect = { id?: boolean; @@ -8112,25 +8366,51 @@ export type WebauthnSettingSelect = { select: FieldSelect; }; }; -export type AppMembershipSelect = { +export type BillingModuleSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: boolean; - granted?: boolean; - actorId?: boolean; - profileId?: boolean; - actor?: { - select: UserSelect; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; + meterSourcesTableId?: boolean; + meterSourcesTableName?: boolean; + recordUsageFunction?: boolean; + prefix?: boolean; + balancesTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + ledgerTable?: { + select: TableSelect; + }; + meterCreditsTable?: { + select: TableSelect; + }; + meterSourcesTable?: { + select: TableSelect; + }; + metersTable?: { + select: TableSelect; + }; + planSubscriptionsTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; }; }; export type BillingProviderModuleSelect = { @@ -8256,6 +8536,28 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8292,28 +8594,6 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface DatabaseFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -8521,10 +8801,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -8653,6 +8933,34 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModules` relation. */ + inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; + /** `inferenceLogModules` exist. */ + inferenceLogModulesExist?: boolean; + /** Filter by the object’s `computeLogModules` relation. */ + computeLogModules?: DatabaseToManyComputeLogModuleFilter; + /** `computeLogModules` exist. */ + computeLogModulesExist?: boolean; + /** Filter by the object’s `transferLogModules` relation. */ + transferLogModules?: DatabaseToManyTransferLogModuleFilter; + /** `transferLogModules` exist. */ + transferLogModulesExist?: boolean; + /** Filter by the object’s `storageLogModules` relation. */ + storageLogModules?: DatabaseToManyStorageLogModuleFilter; + /** `storageLogModules` exist. */ + storageLogModulesExist?: boolean; + /** Filter by the object’s `dbUsageModules` relation. */ + dbUsageModules?: DatabaseToManyDbUsageModuleFilter; + /** `dbUsageModules` exist. */ + dbUsageModulesExist?: boolean; + /** Filter by the object’s `agentChatModule` relation. */ + agentChatModule?: AgentChatModuleFilter; + /** A related `agentChatModule` exists. */ + agentChatModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -8747,6 +9055,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface TableFilter { /** Filter by the object’s `id` field. */ @@ -8913,6 +9225,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } export interface CheckConstraintFilter { /** Filter by the object’s `id` field. */ @@ -9788,6 +10104,30 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +export interface ConfigSecretsOrgModuleFilter { + /** 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} export interface SchemaGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10127,6 +10467,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -10514,7 +10856,7 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -export interface EncryptedSecretsModuleFilter { +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -10526,11 +10868,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -11461,6 +11803,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -11762,6 +12106,254 @@ export interface NotificationsModuleFilter { /** A related `userSettingsTableByUserSettingsTableId` exists. */ userSettingsTableByUserSettingsTableIdExists?: boolean; } +export interface InferenceLogModuleFilter { + /** 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 `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface ComputeLogModuleFilter { + /** 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 `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; + /** Filter by the object’s `computeLogTable` relation. */ + computeLogTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface TransferLogModuleFilter { + /** 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 `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `transferLogTable` relation. */ + transferLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface StorageLogModuleFilter { + /** 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 `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `storageLogTable` relation. */ + storageLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +export interface DbUsageModuleFilter { + /** 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 `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `queryStatsDailyTable` relation. */ + queryStatsDailyTable?: TableFilter; + /** Filter by the object’s `queryStatsLogTable` relation. */ + queryStatsLogTable?: TableFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `tableStatsDailyTable` relation. */ + tableStatsDailyTable?: TableFilter; + /** Filter by the object’s `tableStatsLogTable` relation. */ + tableStatsLogTable?: TableFilter; +} export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -12644,7 +13236,9 @@ export interface OrgClaimedInviteFilter { /** A related `sender` exists. */ senderExists?: boolean; } -export interface AuditLogFilter { +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -12659,131 +13253,17 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ actorExists?: boolean; } -export interface AgentThreadFilter { - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Negates the expression. */ - not?: AgentThreadFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentTasksByThreadId` relation. */ - agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; - /** `agentTasksByThreadId` exist. */ - agentTasksByThreadIdExist?: boolean; -} -export interface AgentMessageFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Negates the expression. */ - not?: AgentMessageFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -export interface AgentTaskFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Negates the expression. */ - not?: AgentTaskFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -export interface RoleTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; - /** Negates the expression. */ - not?: RoleTypeFilter; -} export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ slug?: StringFilter; @@ -12807,8 +13287,8 @@ export interface RefFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `commitId` field. */ @@ -12825,8 +13305,8 @@ export interface StoreFilter { id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; + /** Filter by the object’s `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `hash` field. */ hash?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -12850,111 +13330,17 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -export interface AppLimitCreditCodeFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `code` field. */ - code?: StringFilter; - /** Filter by the object’s `maxRedemptions` field. */ - maxRedemptions?: IntFilter; - /** Filter by the object’s `currentRedemptions` field. */ - currentRedemptions?: IntFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeFilter; - /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ - appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ - appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; - /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ - appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; - /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ - appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; -} -export interface AppLimitCapsDefaultFilter { - /** 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?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitCapsDefaultFilter; -} -export interface OrgLimitCapsDefaultFilter { - /** 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?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapsDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapsDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapsDefaultFilter; -} -export interface AppLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCapFilter[]; - /** Negates the expression. */ - not?: AppLimitCapFilter; -} -export interface OrgLimitCapFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `max` field. */ - max?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitCapFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitCapFilter[]; - /** Negates the expression. */ - not?: OrgLimitCapFilter; -} -export interface MembershipTypeFilter { +export interface RoleTypeFilter { /** Filter by the object’s `id` field. */ id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: RoleTypeFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: RoleTypeFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: RoleTypeFilter; } export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ @@ -13000,6 +13386,52 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } +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; +} +export interface OrgMembershipDefaultFilter { + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface NodeTypeRegistryFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; @@ -13022,6 +13454,90 @@ export interface NodeTypeRegistryFilter { /** Negates the expression. */ not?: NodeTypeRegistryFilter; } +export interface AppLimitCapsDefaultFilter { + /** 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?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitCapsDefaultFilter; +} +export interface OrgLimitCapsDefaultFilter { + /** 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?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapsDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapsDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapsDefaultFilter; +} +export interface AppLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCapFilter[]; + /** Negates the expression. */ + not?: AppLimitCapFilter; +} +export interface OrgLimitCapFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitCapFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitCapFilter[]; + /** Negates the expression. */ + not?: OrgLimitCapFilter; +} +export interface UserConnectedAccountFilter { + /** 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?: UserConnectedAccountFilter[]; + /** Checks for any expressions in this list. */ + or?: UserConnectedAccountFilter[]; + /** Negates the expression. */ + not?: UserConnectedAccountFilter; +} export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13066,6 +13582,32 @@ export interface OrgLimitDefaultFilter { /** `orgLimitCreditsByDefaultLimitId` exist. */ orgLimitCreditsByDefaultLimitIdExist?: boolean; } +export interface AppLimitCreditCodeFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `code` field. */ + code?: StringFilter; + /** Filter by the object’s `maxRedemptions` field. */ + maxRedemptions?: IntFilter; + /** Filter by the object’s `currentRedemptions` field. */ + currentRedemptions?: IntFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeFilter; + /** Filter by the object’s `appLimitCreditCodeItemsByCreditCodeId` relation. */ + appLimitCreditCodeItemsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByCreditCodeId` exist. */ + appLimitCreditCodeItemsByCreditCodeIdExist?: boolean; + /** Filter by the object’s `appLimitCreditRedemptionsByCreditCodeId` relation. */ + appLimitCreditRedemptionsByCreditCodeId?: AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter; + /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ + appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; +} export interface AppLimitWarningFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13084,37 +13626,13 @@ export interface AppLimitWarningFilter { /** Negates the expression. */ not?: AppLimitWarningFilter; } -export interface UserConnectedAccountFilter { - /** 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?: UserConnectedAccountFilter[]; - /** Checks for any expressions in this list. */ - or?: UserConnectedAccountFilter[]; - /** Negates the expression. */ - not?: UserConnectedAccountFilter; -} 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 `scopeId` field. */ + scopeId?: UUIDFilter; /** Filter by the object’s `storeId` field. */ storeId?: UUIDFilter; /** Filter by the object’s `parentIds` field. */ @@ -13218,71 +13736,25 @@ export interface RateLimitsModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } -export interface UsageSnapshotFilter { - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `metricName` field. */ - metricName?: StringFilter; - /** Filter by the object’s `metricValue` field. */ - metricValue?: BigIntFilter; - /** Filter by the object’s `dimensions` field. */ - dimensions?: JSONFilter; - /** Filter by the object’s `capturedAt` field. */ - capturedAt?: DatetimeFilter; - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: UsageSnapshotFilter[]; - /** Checks for any expressions in this list. */ - or?: UsageSnapshotFilter[]; - /** Negates the expression. */ - not?: UsageSnapshotFilter; -} -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; -} -export interface OrgMembershipDefaultFilter { +export interface MembershipTypeFilter { /** 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 `entityId` field. */ - entityId?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: MembershipTypeFilter; } export interface RlsSettingFilter { /** Filter by the object’s `id` field. */ @@ -13346,58 +13818,6 @@ export interface RlsSettingFilter { /** A related `roleSchema` exists. */ roleSchemaExists?: boolean; } -export interface AppLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitEventFilter[]; - /** Negates the expression. */ - not?: AppLimitEventFilter; -} -export interface OrgLimitEventFilter { - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `eventType` field. */ - eventType?: StringFilter; - /** Filter by the object’s `delta` field. */ - delta?: BigIntFilter; - /** Filter by the object’s `numBefore` field. */ - numBefore?: BigIntFilter; - /** Filter by the object’s `numAfter` field. */ - numAfter?: BigIntFilter; - /** Filter by the object’s `maxAtEvent` field. */ - maxAtEvent?: BigIntFilter; - /** Filter by the object’s `reason` field. */ - reason?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitEventFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitEventFilter[]; - /** Negates the expression. */ - not?: OrgLimitEventFilter; -} export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13440,6 +13860,52 @@ export interface RlsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } +export interface AgentChatModuleFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `threadTableId` field. */ + threadTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableId` field. */ + messageTableId?: UUIDFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableId` field. */ + taskTableId?: UUIDFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentChatModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentChatModuleFilter[]; + /** Negates the expression. */ + not?: AgentChatModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `messageTable` relation. */ + messageTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `taskTable` relation. */ + taskTable?: TableFilter; + /** Filter by the object’s `threadTable` relation. */ + threadTable?: TableFilter; +} export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13572,13 +14038,73 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } -export interface DatabaseSettingFilter { +export interface AppLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; /** Filter by the object’s `enablePostgis` field. */ enablePostgis?: BooleanFilter; /** Filter by the object’s `enableSearch` field. */ @@ -13610,89 +14136,85 @@ export interface DatabaseSettingFilter { /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; } -export interface BillingModuleFilter { +export interface OrgMembershipSettingFilter { /** 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 `metersTableId` field. */ - metersTableId?: UUIDFilter; - /** Filter by the object’s `metersTableName` field. */ - metersTableName?: StringFilter; - /** Filter by the object’s `planSubscriptionsTableId` field. */ - planSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `planSubscriptionsTableName` field. */ - planSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `ledgerTableId` field. */ - ledgerTableId?: UUIDFilter; - /** Filter by the object’s `ledgerTableName` field. */ - ledgerTableName?: StringFilter; - /** Filter by the object’s `balancesTableId` field. */ - balancesTableId?: UUIDFilter; - /** Filter by the object’s `balancesTableName` field. */ - balancesTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** 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 `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: BillingModuleFilter; - /** Filter by the object’s `balancesTable` relation. */ - balancesTable?: TableFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `ledgerTable` relation. */ - ledgerTable?: TableFilter; - /** Filter by the object’s `metersTable` relation. */ - metersTable?: TableFilter; - /** Filter by the object’s `planSubscriptionsTable` relation. */ - planSubscriptionsTable?: TableFilter; - /** Filter by the object’s `privateSchema` relation. */ - privateSchema?: SchemaFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; + not?: OrgMembershipSettingFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; } -export interface AstMigrationFilter { +export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; + id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; + /** Filter by the object’s `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 `isBanned` field. */ + isBanned?: BooleanFilter; + /** Filter by the object’s `isDisabled` field. */ + isDisabled?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isActive` field. */ + isActive?: BooleanFilter; + /** Filter by the object’s `isOwner` field. */ + isOwner?: BooleanFilter; + /** Filter by the object’s `isAdmin` field. */ + isAdmin?: BooleanFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `granted` field. */ + granted?: BitStringFilter; /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; + and?: AppMembershipFilter[]; /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; + or?: AppMembershipFilter[]; /** Negates the expression. */ - not?: AstMigrationFilter; + not?: AppMembershipFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; } export interface UserFilter { /** Filter by the object’s `id` field. */ @@ -13935,26 +14457,10 @@ export interface UserFilter { orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; /** `orgClaimedInvitesBySenderId` exist. */ orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; - /** Filter by the object’s `agentThreadsByEntityId` relation. */ - agentThreadsByEntityId?: UserToManyAgentThreadFilter; - /** `agentThreadsByEntityId` exist. */ - agentThreadsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedAgentThreads` relation. */ - ownedAgentThreads?: UserToManyAgentThreadFilter; - /** `ownedAgentThreads` exist. */ - ownedAgentThreadsExist?: boolean; - /** Filter by the object’s `ownedAgentMessages` relation. */ - ownedAgentMessages?: UserToManyAgentMessageFilter; - /** `ownedAgentMessages` exist. */ - ownedAgentMessagesExist?: boolean; - /** Filter by the object’s `ownedAgentTasks` relation. */ - ownedAgentTasks?: UserToManyAgentTaskFilter; - /** `ownedAgentTasks` exist. */ - ownedAgentTasksExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -13967,43 +14473,39 @@ export interface UserFilter { */ unifiedSearch?: string; } -export interface OrgMembershipSettingFilter { +export interface AstMigrationFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; /** 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 `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `inviteProfileAssignmentMode` field. */ - inviteProfileAssignmentMode?: StringFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; - /** Filter by the object’s `limitAllocationMode` field. */ - limitAllocationMode?: StringFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: AstMigrationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: AstMigrationFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: AstMigrationFilter; } export interface WebauthnSettingFilter { /** Filter by the object’s `id` field. */ @@ -14087,47 +14589,67 @@ export interface WebauthnSettingFilter { /** A related `userField` exists. */ userFieldExists?: boolean; } -export interface AppMembershipFilter { +export interface BillingModuleFilter { /** 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 `isBanned` field. */ - isBanned?: BooleanFilter; - /** Filter by the object’s `isDisabled` field. */ - isDisabled?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isActive` field. */ - isActive?: BooleanFilter; - /** Filter by the object’s `isOwner` field. */ - isOwner?: BooleanFilter; - /** Filter by the object’s `isAdmin` field. */ - isAdmin?: BooleanFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `granted` field. */ - granted?: BitStringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `profileId` field. */ - profileId?: 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 `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipFilter[]; + and?: BillingModuleFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipFilter[]; + or?: BillingModuleFilter[]; /** Negates the expression. */ - not?: AppMembershipFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; + /** Filter by the object’s `meterSourcesTable` relation. */ + meterSourcesTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; } export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ @@ -14294,6 +14816,24 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14322,24 +14862,6 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_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'; export type DatabaseOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15082,6 +15604,20 @@ export type RealtimeModuleOrderBy = | 'INTERVAL_DESC' | 'NOTIFY_CHANNEL_ASC' | 'NOTIFY_CHANNEL_DESC'; +export type ConfigSecretsOrgModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | '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'; export type SchemaGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -15318,6 +15854,8 @@ export type PartitionOrderBy = | 'INTERVAL_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' + | 'RETENTION_KEEP_TABLE_ASC' + | 'RETENTION_KEEP_TABLE_DESC' | 'PREMAKE_ASC' | 'PREMAKE_DESC' | 'NAMING_PATTERN_ASC' @@ -15546,7 +16084,7 @@ export type EmailsModuleOrderBy = | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC'; -export type EncryptedSecretsModuleOrderBy = +export type ConfigSecretsUserModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -16162,6 +16700,8 @@ export type StorageModuleOrderBy = | 'FILES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' + | 'STORAGE_KEY_ASC' + | 'STORAGE_KEY_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' | 'SKIP_DEFAULT_POLICY_TABLES_ASC' @@ -16358,6 +16898,180 @@ export type NotificationsModuleOrderBy = | 'HAS_DIGEST_METADATA_DESC' | 'HAS_SUBSCRIPTIONS_ASC' | 'HAS_SUBSCRIPTIONS_DESC'; +export type InferenceLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'INFERENCE_LOG_TABLE_ID_ASC' + | 'INFERENCE_LOG_TABLE_ID_DESC' + | 'INFERENCE_LOG_TABLE_NAME_ASC' + | 'INFERENCE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type ComputeLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type TransferLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TRANSFER_LOG_TABLE_ID_ASC' + | 'TRANSFER_LOG_TABLE_ID_DESC' + | 'TRANSFER_LOG_TABLE_NAME_ASC' + | 'TRANSFER_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type StorageLogModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'STORAGE_LOG_TABLE_ID_ASC' + | 'STORAGE_LOG_TABLE_ID_DESC' + | 'STORAGE_LOG_TABLE_NAME_ASC' + | 'STORAGE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'ACTOR_FK_TABLE_ID_ASC' + | 'ACTOR_FK_TABLE_ID_DESC' + | 'ENTITY_FK_TABLE_ID_ASC' + | 'ENTITY_FK_TABLE_ID_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type DbUsageModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -16976,10 +17690,12 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AuditLogOrderBy = +export type AuditLogAuthOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' @@ -16993,85 +17709,7 @@ export type AuditLogOrderBy = | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -export type AgentThreadOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'MODE_ASC' - | 'MODE_DESC' - | 'MODEL_ASC' - | 'MODEL_DESC' - | 'SYSTEM_PROMPT_ASC' - | 'SYSTEM_PROMPT_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -export type AgentMessageOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'THREAD_ID_ASC' - | 'THREAD_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'AUTHOR_ROLE_ASC' - | 'AUTHOR_ROLE_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'PARTS_ASC' - | 'PARTS_DESC'; -export type AgentTaskOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'THREAD_ID_ASC' - | 'THREAD_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SOURCE_ASC' - | 'SOURCE_DESC' - | 'ERROR_ASC' - | 'ERROR_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'STATUS_ASC' - | 'STATUS_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; + | 'SUCCESS_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -17092,8 +17730,8 @@ export type RefOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'COMMIT_ID_ASC' @@ -17106,8 +17744,8 @@ export type StoreOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'CREATED_AT_ASC' @@ -17120,80 +17758,14 @@ export type AppPermissionDefaultOrderBy = | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC'; -export type AppLimitCreditCodeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CODE_ASC' - | 'CODE_DESC' - | 'MAX_REDEMPTIONS_ASC' - | 'MAX_REDEMPTIONS_DESC' - | 'CURRENT_REDEMPTIONS_ASC' - | 'CURRENT_REDEMPTIONS_DESC' - | 'EXPIRES_AT_ASC' - | 'EXPIRES_AT_DESC'; -export type AppLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapsDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitCapOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type MembershipTypeOrderBy = +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'NAME_DESC'; export type MigrateFileOrderBy = | 'NATURAL' | 'ID_ASC' @@ -17220,6 +17792,42 @@ export type DevicesModuleOrderBy = | 'USER_DEVICES_TABLE_DESC' | 'DEVICE_SETTINGS_TABLE_ASC' | 'DEVICE_SETTINGS_TABLE_DESC'; +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type NodeTypeRegistryOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17238,7 +17846,7 @@ export type NodeTypeRegistryOrderBy = | 'PARAMETER_SCHEMA_DESC' | 'TAGS_ASC' | 'TAGS_DESC'; -export type AppLimitDefaultOrderBy = +export type AppLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17247,10 +17855,8 @@ export type AppLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type OrgLimitDefaultOrderBy = + | 'MAX_DESC'; +export type OrgLimitCapsDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17259,10 +17865,8 @@ export type OrgLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC' - | 'SOFT_MAX_ASC' - | 'SOFT_MAX_DESC'; -export type AppLimitWarningOrderBy = + | 'MAX_DESC'; +export type AppLimitCapOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -17270,12 +17874,22 @@ export type AppLimitWarningOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'WARNING_TYPE_ASC' - | 'WARNING_TYPE_DESC' - | 'THRESHOLD_VALUE_ASC' - | 'THRESHOLD_VALUE_DESC' - | 'TASK_IDENTIFIER_ASC' - | 'TASK_IDENTIFIER_DESC'; + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; +export type OrgLimitCapOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'MAX_ASC' + | 'MAX_DESC'; export type UserConnectedAccountOrderBy = | 'NATURAL' | 'ID_ASC' @@ -17294,6 +17908,58 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type AppLimitCreditCodeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CODE_ASC' + | 'CODE_DESC' + | 'MAX_REDEMPTIONS_ASC' + | 'MAX_REDEMPTIONS_DESC' + | 'CURRENT_REDEMPTIONS_ASC' + | 'CURRENT_REDEMPTIONS_DESC' + | 'EXPIRES_AT_ASC' + | 'EXPIRES_AT_DESC'; +export type AppLimitWarningOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'WARNING_TYPE_ASC' + | 'WARNING_TYPE_DESC' + | 'THRESHOLD_VALUE_ASC' + | 'THRESHOLD_VALUE_DESC' + | 'TASK_IDENTIFIER_ASC' + | 'TASK_IDENTIFIER_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17302,8 +17968,8 @@ export type CommitOrderBy = | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' + | 'SCOPE_ID_ASC' + | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC' | 'PARENT_IDS_ASC' @@ -17360,58 +18026,22 @@ export type RateLimitsModuleOrderBy = | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC'; -export type UsageSnapshotOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'METRIC_NAME_ASC' - | 'METRIC_NAME_DESC' - | 'METRIC_VALUE_ASC' - | 'METRIC_VALUE_DESC' - | 'DIMENSIONS_ASC' - | 'DIMENSIONS_DESC' - | 'CAPTURED_AT_ASC' - | 'CAPTURED_AT_DESC' - | 'ID_ASC' - | 'ID_DESC'; -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type RlsSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17436,46 +18066,6 @@ export type RlsSettingOrderBy = | 'CURRENT_USER_AGENT_FUNCTION_ID_DESC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_ASC' | 'CURRENT_IP_ADDRESS_FUNCTION_ID_DESC'; -export type AppLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; -export type OrgLimitEventOrderBy = - | 'NATURAL' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'EVENT_TYPE_ASC' - | 'EVENT_TYPE_DESC' - | 'DELTA_ASC' - | 'DELTA_DESC' - | 'NUM_BEFORE_ASC' - | 'NUM_BEFORE_DESC' - | 'NUM_AFTER_ASC' - | 'NUM_AFTER_DESC' - | 'MAX_AT_EVENT_ASC' - | 'MAX_AT_EVENT_DESC' - | 'REASON_ASC' - | 'REASON_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17502,6 +18092,34 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; +export type AgentChatModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC' + | 'THREAD_TABLE_ID_ASC' + | 'THREAD_TABLE_ID_DESC' + | 'THREAD_TABLE_NAME_ASC' + | 'THREAD_TABLE_NAME_DESC' + | 'MESSAGE_TABLE_ID_ASC' + | 'MESSAGE_TABLE_ID_DESC' + | 'MESSAGE_TABLE_NAME_ASC' + | 'MESSAGE_TABLE_NAME_DESC' + | 'TASK_TABLE_ID_ASC' + | 'TASK_TABLE_ID_DESC' + | 'TASK_TABLE_NAME_ASC' + | 'TASK_TABLE_NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type RateLimitMetersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17588,6 +18206,58 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; export type DatabaseSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17620,66 +18290,74 @@ export type DatabaseSettingOrderBy = | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; -export type BillingModuleOrderBy = +export type OrgMembershipSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'METERS_TABLE_ID_ASC' - | 'METERS_TABLE_ID_DESC' - | 'METERS_TABLE_NAME_ASC' - | 'METERS_TABLE_NAME_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'LEDGER_TABLE_ID_ASC' - | 'LEDGER_TABLE_ID_DESC' - | 'LEDGER_TABLE_NAME_ASC' - | 'LEDGER_TABLE_NAME_DESC' - | 'BALANCES_TABLE_ID_ASC' - | 'BALANCES_TABLE_ID_DESC' - | 'BALANCES_TABLE_NAME_ASC' - | 'BALANCES_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC'; -export type AstMigrationOrderBy = + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; +export type AppMembershipOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | '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' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | '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'; + | 'ACTOR_ID_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17706,38 +18384,34 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -export type OrgMembershipSettingOrderBy = +export type AstMigrationOrderBy = | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | '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' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' - | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC' - | 'LIMIT_ALLOCATION_MODE_ASC' - | 'LIMIT_ALLOCATION_MODE_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type WebauthnSettingOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17778,42 +18452,46 @@ export type WebauthnSettingOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_SECONDS_ASC' | 'CHALLENGE_EXPIRY_SECONDS_DESC'; -export type AppMembershipOrderBy = +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | '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'; + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' + | 'METER_SOURCES_TABLE_ID_ASC' + | 'METER_SOURCES_TABLE_ID_DESC' + | 'METER_SOURCES_TABLE_NAME_ASC' + | 'METER_SOURCES_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17963,18 +18641,44 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionInput { +export interface CreateObjectInput { clientMutationId?: string; - appPermission: { - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; + object: { + scopeId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; }; } -export interface AppPermissionPatch { - name?: string | null; - bitnum?: number | null; +export interface ObjectPatch { + scopeId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + appPermission: { + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; + }; +} +export interface AppPermissionPatch { + name?: string | null; + bitnum?: number | null; bitstr?: string | null; description?: string | null; } @@ -18011,32 +18715,6 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateDatabaseInput { clientMutationId?: string; database: { @@ -18959,6 +19637,30 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } +export interface CreateConfigSecretsOrgModuleInput { + clientMutationId?: string; + configSecretsOrgModule: { + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + }; +} +export interface ConfigSecretsOrgModulePatch { + databaseId?: string | null; + schemaId?: string | null; + tableId?: string | null; + tableName?: string | null; +} +export interface UpdateConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; + configSecretsOrgModulePatch: ConfigSecretsOrgModulePatch; +} +export interface DeleteConfigSecretsOrgModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateSchemaGrantInput { clientMutationId?: string; schemaGrant: { @@ -19305,6 +20007,7 @@ export interface CreatePartitionInput { partitionKeyId: string; interval?: string; retention?: string; + retentionKeepTable?: boolean; premake?: number; namingPattern?: string; }; @@ -19316,6 +20019,7 @@ export interface PartitionPatch { partitionKeyId?: string | null; interval?: string | null; retention?: string | null; + retentionKeepTable?: boolean | null; premake?: number | null; namingPattern?: string | null; } @@ -19653,27 +20357,27 @@ export interface DeleteEmailsModuleInput { clientMutationId?: string; id: string; } -export interface CreateEncryptedSecretsModuleInput { +export interface CreateConfigSecretsUserModuleInput { clientMutationId?: string; - encryptedSecretsModule: { + configSecretsUserModule: { databaseId: string; schemaId?: string; tableId?: string; tableName?: string; }; } -export interface EncryptedSecretsModulePatch { +export interface ConfigSecretsUserModulePatch { databaseId?: string | null; schemaId?: string | null; tableId?: string | null; tableName?: string | null; } -export interface UpdateEncryptedSecretsModuleInput { +export interface UpdateConfigSecretsUserModuleInput { clientMutationId?: string; id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; + configSecretsUserModulePatch: ConfigSecretsUserModulePatch; } -export interface DeleteEncryptedSecretsModuleInput { +export interface DeleteConfigSecretsUserModuleInput { clientMutationId?: string; id: string; } @@ -20406,6 +21110,7 @@ export interface CreateStorageModuleInput { bucketsTableName?: string; filesTableName?: string; membershipType?: number; + storageKey?: string; policies?: Record; skipDefaultPolicyTables?: string[]; entityTableId?: string; @@ -20441,6 +21146,7 @@ export interface StorageModulePatch { bucketsTableName?: string | null; filesTableName?: string | null; membershipType?: number | null; + storageKey?: string | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; entityTableId?: string | null; @@ -20663,6 +21369,230 @@ export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } +export interface CreateInferenceLogModuleInput { + clientMutationId?: string; + inferenceLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface InferenceLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateInferenceLogModuleInput { + clientMutationId?: string; + id: string; + inferenceLogModulePatch: InferenceLogModulePatch; +} +export interface DeleteInferenceLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + computeLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface ComputeLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateComputeLogModuleInput { + clientMutationId?: string; + id: string; + computeLogModulePatch: ComputeLogModulePatch; +} +export interface DeleteComputeLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + transferLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface TransferLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + transferLogModulePatch: TransferLogModulePatch; +} +export interface DeleteTransferLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateStorageLogModuleInput { + clientMutationId?: string; + storageLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + }; +} +export interface StorageLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; +} +export interface UpdateStorageLogModuleInput { + clientMutationId?: string; + id: string; + storageLogModulePatch: StorageLogModulePatch; +} +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateDbUsageModuleInput { + clientMutationId?: string; + dbUsageModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + }; +} +export interface DbUsageModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; +} +export interface UpdateDbUsageModuleInput { + clientMutationId?: string; + id: string; + dbUsageModulePatch: DbUsageModulePatch; +} +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -21498,9 +22428,9 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateAuditLogInput { +export interface CreateAuditLogAuthInput { clientMutationId?: string; - auditLog: { + auditLogAuth: { event: string; actorId?: string; origin?: ConstructiveInternalTypeOrigin; @@ -21509,7 +22439,7 @@ export interface CreateAuditLogInput { success: boolean; }; } -export interface AuditLogPatch { +export interface AuditLogAuthPatch { event?: string | null; actorId?: string | null; origin?: ConstructiveInternalTypeOrigin | null; @@ -21517,119 +22447,15 @@ export interface AuditLogPatch { ipAddress?: string | null; success?: boolean | null; } -export interface UpdateAuditLogInput { +export interface UpdateAuditLogAuthInput { clientMutationId?: string; id: string; - auditLogPatch: AuditLogPatch; + auditLogAuthPatch: AuditLogAuthPatch; } -export interface DeleteAuditLogInput { +export interface DeleteAuditLogAuthInput { clientMutationId?: string; id: string; } -export interface CreateAgentThreadInput { - clientMutationId?: string; - agentThread: { - title?: string; - mode?: string; - model?: string; - systemPrompt?: string; - ownerId?: string; - entityId: string; - status?: string; - }; -} -export interface AgentThreadPatch { - title?: string | null; - mode?: string | null; - model?: string | null; - systemPrompt?: string | null; - ownerId?: string | null; - entityId?: string | null; - status?: string | null; -} -export interface UpdateAgentThreadInput { - clientMutationId?: string; - id: string; - agentThreadPatch: AgentThreadPatch; -} -export interface DeleteAgentThreadInput { - clientMutationId?: string; - id: string; -} -export interface CreateAgentMessageInput { - clientMutationId?: string; - agentMessage: { - threadId: string; - entityId: string; - authorRole: string; - ownerId?: string; - parts?: Record; - }; -} -export interface AgentMessagePatch { - threadId?: string | null; - entityId?: string | null; - authorRole?: string | null; - ownerId?: string | null; - parts?: Record | null; -} -export interface UpdateAgentMessageInput { - clientMutationId?: string; - id: string; - agentMessagePatch: AgentMessagePatch; -} -export interface DeleteAgentMessageInput { - clientMutationId?: string; - id: string; -} -export interface CreateAgentTaskInput { - clientMutationId?: string; - agentTask: { - threadId: string; - entityId: string; - description: string; - source?: string; - error?: string; - ownerId?: string; - status?: string; - }; -} -export interface AgentTaskPatch { - threadId?: string | null; - entityId?: string | null; - description?: string | null; - source?: string | null; - error?: string | null; - ownerId?: string | null; - status?: string | null; -} -export interface UpdateAgentTaskInput { - clientMutationId?: string; - id: string; - agentTaskPatch: AgentTaskPatch; -} -export interface DeleteAgentTaskInput { - 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 CreateIdentityProviderInput { clientMutationId?: string; identityProvider: { @@ -21660,14 +22486,14 @@ export interface CreateRefInput { clientMutationId?: string; ref: { name: string; - databaseId: string; + scopeId: string; storeId: string; commitId?: string; }; } export interface RefPatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; commitId?: string | null; } @@ -21684,13 +22510,13 @@ export interface CreateStoreInput { clientMutationId?: string; store: { name: string; - databaseId: string; + scopeId: string; hash?: string; }; } export interface StorePatch { name?: string | null; - databaseId?: string | null; + scopeId?: string | null; hash?: string | null; } export interface UpdateStoreInput { @@ -21720,30 +22546,150 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitCreditCodeInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - appLimitCreditCode: { - code: string; - maxRedemptions?: number; - currentRedemptions?: number; - expiresAt?: string; + roleType: { + name: string; }; } -export interface AppLimitCreditCodePatch { - code?: string | null; - maxRedemptions?: number | null; - currentRedemptions?: number | null; - expiresAt?: string | null; +export interface RoleTypePatch { + name?: string | null; } -export interface UpdateAppLimitCreditCodeInput { +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + migrateFile: { + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; + }; +} +export interface MigrateFilePatch { + databaseId?: string | null; + upload?: ConstructiveInternalTypeUpload | null; +} +export interface UpdateMigrateFileInput { clientMutationId?: string; id: string; - appLimitCreditCodePatch: AppLimitCreditCodePatch; + migrateFilePatch: MigrateFilePatch; } -export interface DeleteAppLimitCreditCodeInput { +export interface DeleteMigrateFileInput { + clientMutationId?: string; + id: string; +} +export interface CreateDevicesModuleInput { + clientMutationId?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; + }; +} +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + devicesModulePatch: DevicesModulePatch; +} +export interface DeleteDevicesModuleInput { clientMutationId?: string; id: string; } +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; + }; +} +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} export interface CreateAppLimitCapsDefaultInput { clientMutationId?: string; appLimitCapsDefault: { @@ -21828,110 +22774,32 @@ export interface DeleteOrgLimitCapInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} -export interface CreateMigrateFileInput { - clientMutationId?: string; - migrateFile: { - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; - }; -} -export interface MigrateFilePatch { - databaseId?: string | null; - upload?: ConstructiveInternalTypeUpload | null; -} -export interface UpdateMigrateFileInput { - clientMutationId?: string; - id: string; - migrateFilePatch: MigrateFilePatch; -} -export interface DeleteMigrateFileInput { - clientMutationId?: string; - id: string; -} -export interface CreateDevicesModuleInput { +export interface CreateUserConnectedAccountInput { clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; + userConnectedAccount: { + ownerId?: string; + service?: string; + identifier?: string; + details?: Record; + isVerified?: boolean; }; } -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; +export interface UserConnectedAccountPatch { + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; } -export interface UpdateDevicesModuleInput { +export interface UpdateUserConnectedAccountInput { clientMutationId?: string; id: string; - devicesModulePatch: DevicesModulePatch; + userConnectedAccountPatch: UserConnectedAccountPatch; } -export interface DeleteDevicesModuleInput { +export interface DeleteUserConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - nodeTypeRegistry: { - name: string; - slug: string; - category: string; - displayName?: string; - description?: string; - parameterSchema?: Record; - tags?: string[]; - }; -} -export interface NodeTypeRegistryPatch { - name?: string | null; - slug?: string | null; - category?: string | null; - displayName?: string | null; - description?: string | null; - parameterSchema?: Record | null; - tags?: string[] | null; -} -export interface UpdateNodeTypeRegistryInput { - clientMutationId?: string; - name: string; - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -export interface DeleteNodeTypeRegistryInput { - clientMutationId?: string; - name: string; -} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -21976,6 +22844,30 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitCreditCodeInput { + clientMutationId?: string; + appLimitCreditCode: { + code: string; + maxRedemptions?: number; + currentRedemptions?: number; + expiresAt?: string; + }; +} +export interface AppLimitCreditCodePatch { + code?: string | null; + maxRedemptions?: number | null; + currentRedemptions?: number | null; + expiresAt?: string | null; +} +export interface UpdateAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; + appLimitCreditCodePatch: AppLimitCreditCodePatch; +} +export interface DeleteAppLimitCreditCodeInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitWarningInput { clientMutationId?: string; appLimitWarning: { @@ -22000,37 +22892,11 @@ export interface DeleteAppLimitWarningInput { clientMutationId?: string; id: string; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - userConnectedAccount: { - ownerId?: string; - service?: string; - identifier?: string; - details?: Record; - isVerified?: boolean; - }; -} -export interface UserConnectedAccountPatch { - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; -} -export interface UpdateUserConnectedAccountInput { - clientMutationId?: string; - id: string; - userConnectedAccountPatch: UserConnectedAccountPatch; -} -export interface DeleteUserConnectedAccountInput { - clientMutationId?: string; - id: string; -} export interface CreateCommitInput { clientMutationId?: string; commit: { message?: string; - databaseId: string; + scopeId: string; storeId: string; parentIds?: string[]; authorId?: string; @@ -22041,7 +22907,7 @@ export interface CreateCommitInput { } export interface CommitPatch { message?: string | null; - databaseId?: string | null; + scopeId?: string | null; storeId?: string | null; parentIds?: string[] | null; authorId?: string | null; @@ -22122,79 +22988,31 @@ export interface DeleteRateLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateUsageSnapshotInput { - clientMutationId?: string; - usageSnapshot: { - databaseId: string; - metricName: string; - metricValue?: string; - dimensions?: Record; - capturedAt?: string; - }; -} -export interface UsageSnapshotPatch { - databaseId?: string | null; - metricName?: string | null; - metricValue?: string | null; - dimensions?: Record | null; - capturedAt?: string | null; -} -export interface UpdateUsageSnapshotInput { - clientMutationId?: string; - id: string; - usageSnapshotPatch: UsageSnapshotPatch; -} -export interface DeleteUsageSnapshotInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; +export interface MembershipTypePatch { + name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateRlsSettingInput { clientMutationId?: string; @@ -22230,74 +23048,6 @@ export interface DeleteRlsSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitEventInput { - clientMutationId?: string; - appLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface AppLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateAppLimitEventInput { - clientMutationId?: string; - id: string; - appLimitEventPatch: AppLimitEventPatch; -} -export interface DeleteAppLimitEventInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgLimitEventInput { - clientMutationId?: string; - orgLimitEvent: { - name?: string; - actorId?: string; - entityId?: string; - eventType?: string; - delta?: string; - numBefore?: string; - numAfter?: string; - maxAtEvent?: string; - reason?: string; - }; -} -export interface OrgLimitEventPatch { - name?: string | null; - actorId?: string | null; - entityId?: string | null; - eventType?: string | null; - delta?: string | null; - numBefore?: string | null; - numAfter?: string | null; - maxAtEvent?: string | null; - reason?: string | null; -} -export interface UpdateOrgLimitEventInput { - clientMutationId?: string; - id: string; - orgLimitEventPatch: OrgLimitEventPatch; -} -export interface DeleteOrgLimitEventInput { - clientMutationId?: string; - id: string; -} export interface CreateRlsModuleInput { clientMutationId?: string; rlsModule: { @@ -22334,6 +23084,44 @@ export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } +export interface CreateAgentChatModuleInput { + clientMutationId?: string; + agentChatModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + apiId?: string; + threadTableId?: string; + threadTableName?: string; + messageTableId?: string; + messageTableName?: string; + taskTableId?: string; + taskTableName?: string; + prefix?: string; + }; +} +export interface AgentChatModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + apiId?: string | null; + threadTableId?: string | null; + threadTableName?: string | null; + messageTableId?: string | null; + messageTableName?: string | null; + taskTableId?: string | null; + taskTableName?: string | null; + prefix?: string | null; +} +export interface UpdateAgentChatModuleInput { + clientMutationId?: string; + id: string; + agentChatModulePatch: AgentChatModulePatch; +} +export interface DeleteAgentChatModuleInput { + clientMutationId?: string; + id: string; +} export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; rateLimitMetersModule: { @@ -22450,6 +23238,74 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} export interface CreateDatabaseSettingInput { clientMutationId?: string; databaseSetting: { @@ -22492,45 +23348,108 @@ export interface DeleteDatabaseSettingInput { clientMutationId?: string; id: string; } -export interface CreateBillingModuleInput { +export interface CreateOrgMembershipSettingInput { clientMutationId?: string; - billingModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - recordUsageFunction?: string; - prefix?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; }; } -export interface BillingModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - metersTableId?: string | null; - metersTableName?: string | null; - planSubscriptionsTableId?: string | null; - planSubscriptionsTableName?: string | null; - ledgerTableId?: string | null; - ledgerTableName?: string | null; - balancesTableId?: string | null; - balancesTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; } -export interface UpdateBillingModuleInput { +export interface UpdateOrgMembershipSettingInput { clientMutationId?: string; id: string; - billingModulePatch: BillingModulePatch; + orgMembershipSettingPatch: OrgMembershipSettingPatch; } -export interface DeleteBillingModuleInput { +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppMembershipInput { + clientMutationId?: string; + appMembership: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isBanned?: boolean; + isDisabled?: boolean; + isVerified?: boolean; + isActive?: boolean; + isOwner?: boolean; + isAdmin?: boolean; + permissions?: string; + granted?: string; + actorId: string; + profileId?: string; + }; +} +export interface AppMembershipPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isBanned?: boolean | null; + isDisabled?: boolean | null; + isVerified?: boolean | null; + isActive?: boolean | null; + isOwner?: boolean | null; + isAdmin?: boolean | null; + permissions?: string | null; + granted?: string | null; + actorId?: string | null; + profileId?: string | null; +} +export interface UpdateAppMembershipInput { + clientMutationId?: string; + id: string; + appMembershipPatch: AppMembershipPatch; +} +export interface DeleteAppMembershipInput { + clientMutationId?: string; + id: string; +} +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + type?: number | null; + profilePictureUpload?: File | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { clientMutationId?: string; id: string; } @@ -22572,69 +23491,6 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } -export interface CreateUserInput { - clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; - }; -} -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - type?: number | null; - profilePictureUpload?: File | null; -} -export interface UpdateUserInput { - clientMutationId?: string; - id: string; - userPatch: UserPatch; -} -export interface DeleteUserInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - inviteProfileAssignmentMode?: string; - populateMemberEmail?: boolean; - limitAllocationMode?: string; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - inviteProfileAssignmentMode?: string | null; - populateMemberEmail?: boolean | null; - limitAllocationMode?: string | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} export interface CreateWebauthnSettingInput { clientMutationId?: string; webauthnSetting: { @@ -22685,45 +23541,53 @@ export interface DeleteWebauthnSettingInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipInput { +export interface CreateBillingModuleInput { clientMutationId?: string; - appMembership: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isBanned?: boolean; - isDisabled?: boolean; - isVerified?: boolean; - isActive?: boolean; - isOwner?: boolean; - isAdmin?: boolean; - permissions?: string; - granted?: string; - actorId: string; - profileId?: string; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + recordUsageFunction?: string; + prefix?: string; }; } -export interface AppMembershipPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isBanned?: boolean | null; - isDisabled?: boolean | null; - isVerified?: boolean | null; - isActive?: boolean | null; - isOwner?: boolean | null; - isAdmin?: boolean | null; - permissions?: string | null; - granted?: string | null; - actorId?: string | null; - profileId?: string | null; +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; } -export interface UpdateAppMembershipInput { +export interface UpdateBillingModuleInput { clientMutationId?: string; id: string; - appMembershipPatch: AppMembershipPatch; + billingModulePatch: BillingModulePatch; } -export interface DeleteAppMembershipInput { +export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } @@ -22877,7 +23741,7 @@ export const connectionFieldsMap = { defaultIdsModules: 'DefaultIdsModule', denormalizedTableFields: 'DenormalizedTableField', emailsModules: 'EmailsModule', - encryptedSecretsModules: 'EncryptedSecretsModule', + configSecretsUserModules: 'ConfigSecretsUserModule', invitesModules: 'InvitesModule', eventsModules: 'EventsModule', limitsModules: 'LimitsModule', @@ -22902,6 +23766,12 @@ export const connectionFieldsMap = { identityProvidersModules: 'IdentityProvidersModule', notificationsModules: 'NotificationsModule', realtimeModules: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', + inferenceLogModules: 'InferenceLogModule', + computeLogModules: 'ComputeLogModule', + transferLogModules: 'TransferLogModule', + storageLogModules: 'StorageLogModule', + dbUsageModules: 'DbUsageModule', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { @@ -22918,6 +23788,7 @@ export const connectionFieldsMap = { realtimeModulesByPrivateSchemaId: 'RealtimeModule', realtimeModules: 'RealtimeModule', realtimeModulesBySubscriptionsSchemaId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Table: { checkConstraints: 'CheckConstraint', @@ -22945,6 +23816,7 @@ export const connectionFieldsMap = { realtimeModulesByChangeLogTableId: 'RealtimeModule', realtimeModulesByListenerNodeTableId: 'RealtimeModule', realtimeModulesBySourceRegistryTableId: 'RealtimeModule', + configSecretsOrgModules: 'ConfigSecretsOrgModule', }, Field: { spatialRelations: 'SpatialRelation', @@ -22974,14 +23846,6 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, - AgentThread: { - agentMessagesByThreadId: 'AgentMessage', - agentTasksByThreadId: 'AgentTask', - }, - AppLimitCreditCode: { - appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', - appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', - }, AppLimitDefault: { appLimitCreditsByDefaultLimitId: 'AppLimitCredit', appLimitCreditCodeItemsByDefaultLimitId: 'AppLimitCreditCodeItem', @@ -22989,6 +23853,10 @@ export const connectionFieldsMap = { OrgLimitDefault: { orgLimitCreditsByDefaultLimitId: 'OrgLimitCredit', }, + AppLimitCreditCode: { + appLimitCreditCodeItemsByCreditCodeId: 'AppLimitCreditCodeItem', + appLimitCreditRedemptionsByCreditCodeId: 'AppLimitCreditRedemption', + }, User: { ownedDatabases: 'Database', appAdminGrantsByActorId: 'AppAdminGrant', @@ -23041,11 +23909,7 @@ export const connectionFieldsMap = { orgClaimedInvitesByEntityId: 'OrgClaimedInvite', orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', orgClaimedInvitesBySenderId: 'OrgClaimedInvite', - auditLogsByActorId: 'AuditLog', - agentThreadsByEntityId: 'AgentThread', - ownedAgentThreads: 'AgentThread', - ownedAgentMessages: 'AgentMessage', - ownedAgentTasks: 'AgentTask', + auditLogAuthsByActorId: 'AuditLogAuth', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -23116,12 +23980,12 @@ export interface VerifyEmailInput { } export interface FreezeObjectsInput { clientMutationId?: string; - databaseId?: string; + sId?: string; id?: string; } export interface InitEmptyRepoInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; } export interface ConstructBlueprintInput { @@ -23142,7 +24006,7 @@ export interface ResetPasswordInput { } export interface RemoveNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; } @@ -23165,6 +24029,11 @@ export interface ProvisionSpatialRelationInput { pOperator?: string; pParamName?: string; } +export interface SignInCrossOriginInput { + clientMutationId?: string; + token?: string; + credentialKind?: string; +} export interface BootstrapUserInput { clientMutationId?: string; targetDatabaseId?: string; @@ -23175,6 +24044,24 @@ export interface BootstrapUserInput { displayName?: string; returnApiKey?: boolean; } +export interface SignUpInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} +export interface SignInInput { + clientMutationId?: string; + email?: string; + password?: string; + rememberMe?: boolean; + credentialKind?: string; + csrfToken?: string; + deviceToken?: string; +} export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; @@ -23205,14 +24092,14 @@ export interface ProvisionIndexInput { } export interface SetDataAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; } export interface SetPropsAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23228,7 +24115,7 @@ export interface ProvisionDatabaseWithUserInput { } export interface InsertNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23237,7 +24124,7 @@ export interface InsertNodeAtPathInput { } export interface UpdateNodeAtPathInput { clientMutationId?: string; - dbId?: string; + sId?: string; root?: string; path?: string[]; data?: Record; @@ -23246,7 +24133,7 @@ export interface UpdateNodeAtPathInput { } export interface SetAndCommitInput { clientMutationId?: string; - dbId?: string; + sId?: string; storeId?: string; refname?: string; path?: string[]; @@ -23286,11 +24173,6 @@ export interface ApplyRlsInput { permissive?: boolean; name?: string; } -export interface SignInCrossOriginInput { - clientMutationId?: string; - token?: string; - credentialKind?: string; -} export interface CreateUserDatabaseInput { clientMutationId?: string; databaseName?: string; @@ -23312,23 +24194,6 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface SignUpInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface RequestCrossOriginTokenInput { clientMutationId?: string; email?: string; @@ -23336,15 +24201,6 @@ export interface RequestCrossOriginTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface SignInInput { - clientMutationId?: string; - email?: string; - password?: string; - rememberMe?: boolean; - credentialKind?: string; - csrfToken?: string; - deviceToken?: string; -} export interface ProvisionTableInput { clientMutationId?: string; databaseId?: string; @@ -23361,6 +24217,14 @@ export interface ProvisionTableInput { uniqueConstraints?: Record; description?: string; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -23739,14 +24603,14 @@ export interface DatabaseToManyEmailsModuleFilter { /** Filters to entities where no related entity matches. */ none?: EmailsModuleFilter; } -/** A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyEncryptedSecretsModuleFilter { +/** A filter to be used against many `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsUserModuleFilter { /** Filters to entities where at least one related entity matches. */ - some?: EncryptedSecretsModuleFilter; + some?: ConfigSecretsUserModuleFilter; /** Filters to entities where every related entity matches. */ - every?: EncryptedSecretsModuleFilter; + every?: ConfigSecretsUserModuleFilter; /** Filters to entities where no related entity matches. */ - none?: EncryptedSecretsModuleFilter; + none?: ConfigSecretsUserModuleFilter; } /** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyInvitesModuleFilter { @@ -23964,6 +24828,60 @@ export interface DatabaseToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} +/** A filter to be used against many `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyInferenceLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: InferenceLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: InferenceLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: InferenceLogModuleFilter; +} +/** A filter to be used against many `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyComputeLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ComputeLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ComputeLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ComputeLogModuleFilter; +} +/** A filter to be used against many `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyTransferLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TransferLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: TransferLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: TransferLogModuleFilter; +} +/** A filter to be used against many `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyStorageLogModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: StorageLogModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: StorageLogModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: StorageLogModuleFilter; +} +/** A filter to be used against many `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDbUsageModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DbUsageModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: DbUsageModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: DbUsageModuleFilter; +} /** 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. */ @@ -24088,6 +25006,15 @@ export interface SchemaToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyCheckConstraintFilter { /** Filters to entities where at least one related entity matches. */ @@ -24259,6 +25186,15 @@ export interface TableToManyRealtimeModuleFilter { /** Filters to entities where no related entity matches. */ none?: RealtimeModuleFilter; } +/** A filter to be used against many `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyConfigSecretsOrgModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: ConfigSecretsOrgModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: ConfigSecretsOrgModuleFilter; +} /** A filter to be used against many `SpatialRelation` object types. All fields are combined with a logical ‘and.’ */ export interface FieldToManySpatialRelationFilter { /** Filters to entities where at least one related entity matches. */ @@ -24895,42 +25831,6 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentMessageFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; -} -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadToManyAgentTaskFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; -} -/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditCodeItemFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditCodeItemFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditCodeItemFilter; -} -/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AppLimitCreditRedemptionFilter; - /** Filters to entities where every related entity matches. */ - every?: AppLimitCreditRedemptionFilter; - /** Filters to entities where no related entity matches. */ - none?: AppLimitCreditRedemptionFilter; -} /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUploadFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -24993,6 +25893,24 @@ export interface OrgLimitDefaultToManyOrgLimitCreditFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitCreditFilter; } +/** A filter to be used against many `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditCodeItemFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditCodeItemFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditCodeItemFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditCodeItemFilter; +} +/** A filter to be used against many `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeToManyAppLimitCreditRedemptionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppLimitCreditRedemptionFilter; + /** Filters to entities where every related entity matches. */ + every?: AppLimitCreditRedemptionFilter; + /** Filters to entities where no related entity matches. */ + none?: AppLimitCreditRedemptionFilter; +} /** 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). */ @@ -25317,41 +26235,14 @@ export interface UserToManyOrgClaimedInviteFilter { /** Filters to entities where no related entity matches. */ none?: OrgClaimedInviteFilter; } -/** 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 many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentThreadFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentThreadFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentThreadFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentThreadFilter; -} -/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentMessageFilter { - /** Filters to entities where at least one related entity matches. */ - some?: AgentMessageFilter; - /** Filters to entities where every related entity matches. */ - every?: AgentMessageFilter; - /** Filters to entities where no related entity matches. */ - none?: AgentMessageFilter; -} -/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyAgentTaskFilter { +/** A filter to be used against many `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogAuthFilter { /** Filters to entities where at least one related entity matches. */ - some?: AgentTaskFilter; + some?: AuditLogAuthFilter; /** Filters to entities where every related entity matches. */ - every?: AgentTaskFilter; + every?: AuditLogAuthFilter; /** Filters to entities where no related entity matches. */ - none?: AgentTaskFilter; + none?: AuditLogAuthFilter; } /** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ export interface TrgmSearchInput { @@ -25469,6 +26360,10 @@ export interface SchemaFilter { realtimeModulesBySubscriptionsSchemaId?: SchemaToManyRealtimeModuleFilter; /** `realtimeModulesBySubscriptionsSchemaId` exist. */ realtimeModulesBySubscriptionsSchemaIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: SchemaToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ */ export interface TableFilter { @@ -25636,6 +26531,10 @@ export interface TableFilter { realtimeModulesBySourceRegistryTableId?: TableToManyRealtimeModuleFilter; /** `realtimeModulesBySourceRegistryTableId` exist. */ realtimeModulesBySourceRegistryTableIdExist?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: TableToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; } /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { @@ -26494,6 +27393,8 @@ export interface PartitionFilter { interval?: StringFilter; /** Filter by the object’s `retention` field. */ retention?: StringFilter; + /** Filter by the object’s `retentionKeepTable` field. */ + retentionKeepTable?: BooleanFilter; /** Filter by the object’s `premake` field. */ premake?: IntFilter; /** Filter by the object’s `namingPattern` field. */ @@ -27056,8 +27957,8 @@ export interface EmailsModuleFilter { /** Filter by the object’s `table` relation. */ table?: TableFilter; } -/** A filter to be used against `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface EncryptedSecretsModuleFilter { +/** A filter to be used against `ConfigSecretsUserModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsUserModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -27069,11 +27970,11 @@ export interface EncryptedSecretsModuleFilter { /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Checks for all expressions in this list. */ - and?: EncryptedSecretsModuleFilter[]; + and?: ConfigSecretsUserModuleFilter[]; /** Checks for any expressions in this list. */ - or?: EncryptedSecretsModuleFilter[]; + or?: ConfigSecretsUserModuleFilter[]; /** Negates the expression. */ - not?: EncryptedSecretsModuleFilter; + not?: ConfigSecretsUserModuleFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ @@ -28059,6 +28960,8 @@ export interface StorageModuleFilter { filesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; + /** Filter by the object’s `storageKey` field. */ + storageKey?: StringFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; /** Filter by the object’s `skipDefaultPolicyTables` field. */ @@ -28469,6 +29372,284 @@ export interface RealtimeModuleFilter { /** Filter by the object’s `subscriptionsSchema` relation. */ subscriptionsSchema?: SchemaFilter; } +/** A filter to be used against `ConfigSecretsOrgModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsOrgModuleFilter { + /** 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 `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ConfigSecretsOrgModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ConfigSecretsOrgModuleFilter[]; + /** Negates the expression. */ + not?: ConfigSecretsOrgModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { + /** 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 `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InferenceLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InferenceLogModuleFilter[]; + /** Negates the expression. */ + not?: InferenceLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `inferenceLogTable` relation. */ + inferenceLogTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ComputeLogModuleFilter { + /** 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 `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: ComputeLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: ComputeLogModuleFilter[]; + /** Negates the expression. */ + not?: ComputeLogModuleFilter; + /** Filter by the object’s `computeLogTable` relation. */ + computeLogTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TransferLogModuleFilter { + /** 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 `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: TransferLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: TransferLogModuleFilter[]; + /** Negates the expression. */ + not?: TransferLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `transferLogTable` relation. */ + transferLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageLogModuleFilter { + /** 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 `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: StorageLogModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: StorageLogModuleFilter[]; + /** Negates the expression. */ + not?: StorageLogModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `storageLogTable` relation. */ + storageLogTable?: TableFilter; + /** Filter by the object’s `usageDailyTable` relation. */ + usageDailyTable?: TableFilter; +} +/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbUsageModuleFilter { + /** 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 `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `queryStatsDailyTable` relation. */ + queryStatsDailyTable?: TableFilter; + /** Filter by the object’s `queryStatsLogTable` relation. */ + queryStatsLogTable?: TableFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `tableStatsDailyTable` relation. */ + tableStatsDailyTable?: TableFilter; + /** Filter by the object’s `tableStatsLogTable` relation. */ + tableStatsLogTable?: TableFilter; +} /** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ @@ -28592,108 +29773,6 @@ export interface BlueprintTemplateFilter { /** `blueprintsByTemplateId` exist. */ blueprintsByTemplateIdExist?: boolean; } -/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentMessageFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `parts` field. */ - parts?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: AgentMessageFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentMessageFilter[]; - /** Negates the expression. */ - not?: AgentMessageFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentTaskFilter { - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `source` field. */ - source?: StringFilter; - /** Filter by the object’s `error` field. */ - error?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentTaskFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentTaskFilter[]; - /** Negates the expression. */ - not?: AgentTaskFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `thread` relation. */ - thread?: AgentThreadFilter; -} -/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditCodeItemFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `defaultLimitId` field. */ - defaultLimitId?: UUIDFilter; - /** Filter by the object’s `amount` field. */ - amount?: BigIntFilter; - /** Filter by the object’s `creditType` field. */ - creditType?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditCodeItemFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditCodeItemFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditCodeItemFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; - /** Filter by the object’s `defaultLimit` relation. */ - defaultLimit?: AppLimitDefaultFilter; -} -/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitCreditRedemptionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `creditCodeId` field. */ - creditCodeId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitCreditRedemptionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitCreditRedemptionFilter[]; - /** Negates the expression. */ - not?: AppLimitCreditRedemptionFilter; - /** Filter by the object’s `creditCode` relation. */ - creditCode?: AppLimitCreditCodeFilter; -} /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -28721,6 +29800,29 @@ export interface AppLimitCreditFilter { /** Filter by the object’s `defaultLimit` relation. */ defaultLimit?: AppLimitDefaultFilter; } +/** A filter to be used against `AppLimitCreditCodeItem` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditCodeItemFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `defaultLimitId` field. */ + defaultLimitId?: UUIDFilter; + /** Filter by the object’s `amount` field. */ + amount?: BigIntFilter; + /** Filter by the object’s `creditType` field. */ + creditType?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditCodeItemFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditCodeItemFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditCodeItemFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; + /** Filter by the object’s `defaultLimit` relation. */ + defaultLimit?: AppLimitDefaultFilter; +} /** A filter to be used against `OrgLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -28754,6 +29856,23 @@ export interface OrgLimitCreditFilter { /** A related `entity` exists. */ entityExists?: boolean; } +/** A filter to be used against `AppLimitCreditRedemption` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitCreditRedemptionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `creditCodeId` field. */ + creditCodeId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitCreditRedemptionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitCreditRedemptionFilter[]; + /** Negates the expression. */ + not?: AppLimitCreditRedemptionFilter; + /** Filter by the object’s `creditCode` relation. */ + creditCode?: AppLimitCreditCodeFilter; +} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Filter by the object’s `id` field. */ @@ -28962,10 +30081,10 @@ export interface DatabaseFilter { emailsModules?: DatabaseToManyEmailsModuleFilter; /** `emailsModules` exist. */ emailsModulesExist?: boolean; - /** Filter by the object’s `encryptedSecretsModules` relation. */ - encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter; - /** `encryptedSecretsModules` exist. */ - encryptedSecretsModulesExist?: boolean; + /** Filter by the object’s `configSecretsUserModules` relation. */ + configSecretsUserModules?: DatabaseToManyConfigSecretsUserModuleFilter; + /** `configSecretsUserModules` exist. */ + configSecretsUserModulesExist?: boolean; /** Filter by the object’s `invitesModules` relation. */ invitesModules?: DatabaseToManyInvitesModuleFilter; /** `invitesModules` exist. */ @@ -29094,6 +30213,34 @@ export interface DatabaseFilter { rateLimitMetersModule?: RateLimitMetersModuleFilter; /** A related `rateLimitMetersModule` exists. */ rateLimitMetersModuleExists?: boolean; + /** Filter by the object’s `configSecretsOrgModules` relation. */ + configSecretsOrgModules?: DatabaseToManyConfigSecretsOrgModuleFilter; + /** `configSecretsOrgModules` exist. */ + configSecretsOrgModulesExist?: boolean; + /** Filter by the object’s `inferenceLogModules` relation. */ + inferenceLogModules?: DatabaseToManyInferenceLogModuleFilter; + /** `inferenceLogModules` exist. */ + inferenceLogModulesExist?: boolean; + /** Filter by the object’s `computeLogModules` relation. */ + computeLogModules?: DatabaseToManyComputeLogModuleFilter; + /** `computeLogModules` exist. */ + computeLogModulesExist?: boolean; + /** Filter by the object’s `transferLogModules` relation. */ + transferLogModules?: DatabaseToManyTransferLogModuleFilter; + /** `transferLogModules` exist. */ + transferLogModulesExist?: boolean; + /** Filter by the object’s `storageLogModules` relation. */ + storageLogModules?: DatabaseToManyStorageLogModuleFilter; + /** `storageLogModules` exist. */ + storageLogModulesExist?: boolean; + /** Filter by the object’s `dbUsageModules` relation. */ + dbUsageModules?: DatabaseToManyDbUsageModuleFilter; + /** `dbUsageModules` exist. */ + dbUsageModulesExist?: boolean; + /** Filter by the object’s `agentChatModule` relation. */ + agentChatModule?: AgentChatModuleFilter; + /** A related `agentChatModule` exists. */ + agentChatModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -29869,8 +31016,10 @@ export interface OrgClaimedInviteFilter { /** A related `sender` exists. */ senderExists?: boolean; } -/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogFilter { +/** A filter to be used against `AuditLogAuth` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogAuthFilter { + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `event` field. */ @@ -29885,60 +31034,17 @@ export interface AuditLogFilter { 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[]; + and?: AuditLogAuthFilter[]; /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; + or?: AuditLogAuthFilter[]; /** Negates the expression. */ - not?: AuditLogFilter; + not?: AuditLogAuthFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; /** A related `actor` exists. */ actorExists?: boolean; } -/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ -export interface AgentThreadFilter { - /** Filter by the object’s `title` field. */ - title?: StringFilter; - /** Filter by the object’s `mode` field. */ - mode?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** Filter by the object’s `systemPrompt` field. */ - systemPrompt?: StringFilter; - /** 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 `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AgentThreadFilter[]; - /** Checks for any expressions in this list. */ - or?: AgentThreadFilter[]; - /** Negates the expression. */ - not?: AgentThreadFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** Filter by the object’s `agentMessagesByThreadId` relation. */ - agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; - /** `agentMessagesByThreadId` exist. */ - agentMessagesByThreadIdExist?: boolean; - /** Filter by the object’s `agentTasksByThreadId` relation. */ - agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; - /** `agentTasksByThreadId` exist. */ - agentTasksByThreadIdExist?: boolean; -} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -30521,26 +31627,10 @@ export interface UserFilter { orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; /** `orgClaimedInvitesBySenderId` exist. */ orgClaimedInvitesBySenderIdExist?: boolean; - /** Filter by the object’s `auditLogsByActorId` relation. */ - auditLogsByActorId?: UserToManyAuditLogFilter; - /** `auditLogsByActorId` exist. */ - auditLogsByActorIdExist?: boolean; - /** Filter by the object’s `agentThreadsByEntityId` relation. */ - agentThreadsByEntityId?: UserToManyAgentThreadFilter; - /** `agentThreadsByEntityId` exist. */ - agentThreadsByEntityIdExist?: boolean; - /** Filter by the object’s `ownedAgentThreads` relation. */ - ownedAgentThreads?: UserToManyAgentThreadFilter; - /** `ownedAgentThreads` exist. */ - ownedAgentThreadsExist?: boolean; - /** Filter by the object’s `ownedAgentMessages` relation. */ - ownedAgentMessages?: UserToManyAgentMessageFilter; - /** `ownedAgentMessages` exist. */ - ownedAgentMessagesExist?: boolean; - /** Filter by the object’s `ownedAgentTasks` relation. */ - ownedAgentTasks?: UserToManyAgentTaskFilter; - /** `ownedAgentTasks` exist. */ - ownedAgentTasksExist?: boolean; + /** Filter by the object’s `auditLogAuthsByActorId` relation. */ + auditLogAuthsByActorId?: UserToManyAuditLogAuthFilter; + /** `auditLogAuthsByActorId` exist. */ + auditLogAuthsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -30553,6 +31643,31 @@ export interface UserFilter { */ unifiedSearch?: 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?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; + /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ + appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; + /** `appLimitCreditsByDefaultLimitId` exist. */ + appLimitCreditsByDefaultLimitIdExist?: boolean; + /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ + appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; + /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ + appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; +} /** A filter to be used against `AppLimitCreditCode` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditCodeFilter { /** Filter by the object’s `id` field. */ @@ -30580,31 +31695,6 @@ export interface AppLimitCreditCodeFilter { /** `appLimitCreditRedemptionsByCreditCodeId` exist. */ appLimitCreditRedemptionsByCreditCodeIdExist?: boolean; } -/** 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?: BigIntFilter; - /** Filter by the object’s `softMax` field. */ - softMax?: BigIntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; - /** Filter by the object’s `appLimitCreditsByDefaultLimitId` relation. */ - appLimitCreditsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditFilter; - /** `appLimitCreditsByDefaultLimitId` exist. */ - appLimitCreditsByDefaultLimitIdExist?: boolean; - /** Filter by the object’s `appLimitCreditCodeItemsByDefaultLimitId` relation. */ - appLimitCreditCodeItemsByDefaultLimitId?: AppLimitDefaultToManyAppLimitCreditCodeItemFilter; - /** `appLimitCreditCodeItemsByDefaultLimitId` exist. */ - appLimitCreditCodeItemsByDefaultLimitIdExist?: boolean; -} /** 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. */ @@ -31115,6 +32205,14 @@ export interface BillingModuleFilter { balancesTableId?: UUIDFilter; /** Filter by the object’s `balancesTableName` field. */ balancesTableName?: StringFilter; + /** Filter by the object’s `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; /** Filter by the object’s `recordUsageFunction` field. */ recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ @@ -31131,6 +32229,10 @@ export interface BillingModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `ledgerTable` relation. */ ledgerTable?: TableFilter; + /** Filter by the object’s `meterCreditsTable` relation. */ + meterCreditsTable?: TableFilter; + /** Filter by the object’s `meterSourcesTable` relation. */ + meterSourcesTable?: TableFilter; /** Filter by the object’s `metersTable` relation. */ metersTable?: TableFilter; /** Filter by the object’s `planSubscriptionsTable` relation. */ @@ -31266,6 +32368,53 @@ export interface RateLimitMetersModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against `AgentChatModule` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentChatModuleFilter { + /** 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 `apiId` field. */ + apiId?: UUIDFilter; + /** Filter by the object’s `threadTableId` field. */ + threadTableId?: UUIDFilter; + /** Filter by the object’s `threadTableName` field. */ + threadTableName?: StringFilter; + /** Filter by the object’s `messageTableId` field. */ + messageTableId?: UUIDFilter; + /** Filter by the object’s `messageTableName` field. */ + messageTableName?: StringFilter; + /** Filter by the object’s `taskTableId` field. */ + taskTableId?: UUIDFilter; + /** Filter by the object’s `taskTableName` field. */ + taskTableName?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentChatModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentChatModuleFilter[]; + /** Negates the expression. */ + not?: AgentChatModuleFilter; + /** Filter by the object’s `api` relation. */ + api?: ApiFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `messageTable` relation. */ + messageTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; + /** Filter by the object’s `taskTable` relation. */ + taskTable?: TableFilter; + /** Filter by the object’s `threadTable` relation. */ + threadTable?: TableFilter; +} /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ export interface BitStringFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -31465,8 +32614,27 @@ export interface OrgMembershipSettingFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } -/** A connection to a list of `AppPermission` values. */ +/** A connection to a list of `Object` values. */ // ============ Payload/Return Types (for custom operations) ============ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; +/** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; edges: AppPermissionEdge[]; @@ -31504,25 +32672,6 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; export interface SendAccountDeletionEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -31707,6 +32856,16 @@ export type ProvisionSpatialRelationPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface SignInCrossOriginPayload { + clientMutationId?: string | null; + result?: SignInCrossOriginRecord | null; +} +export type SignInCrossOriginPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInCrossOriginRecordSelect; + }; +}; export interface BootstrapUserPayload { clientMutationId?: string | null; result?: BootstrapUserRecord[] | null; @@ -31717,6 +32876,26 @@ export type BootstrapUserPayloadSelect = { select: BootstrapUserRecordSelect; }; }; +export interface SignUpPayload { + clientMutationId?: string | null; + result?: SignUpRecord | null; +} +export type SignUpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpRecordSelect; + }; +}; +export interface SignInPayload { + clientMutationId?: string | null; + result?: SignInRecord | null; +} +export type SignInPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInRecordSelect; + }; +}; export interface SetFieldOrderPayload { clientMutationId?: string | null; } @@ -31817,16 +32996,6 @@ export interface ApplyRlsPayload { export type ApplyRlsPayloadSelect = { clientMutationId?: boolean; }; -export interface SignInCrossOriginPayload { - clientMutationId?: string | null; - result?: SignInCrossOriginRecord | null; -} -export type SignInCrossOriginPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInCrossOriginRecordSelect; - }; -}; export interface CreateUserDatabasePayload { clientMutationId?: string | null; result?: string | null; @@ -31855,57 +33024,37 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; -export interface SendVerificationEmailPayload { +export interface RequestCrossOriginTokenPayload { clientMutationId?: string | null; - result?: boolean | null; + result?: string | null; } -export type SendVerificationEmailPayloadSelect = { +export type RequestCrossOriginTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; -export interface SignUpPayload { +export interface ProvisionTablePayload { clientMutationId?: string | null; - result?: SignUpRecord | null; + result?: ProvisionTableRecord[] | null; } -export type SignUpPayloadSelect = { +export type ProvisionTablePayloadSelect = { clientMutationId?: boolean; result?: { - select: SignUpRecordSelect; + select: ProvisionTableRecordSelect; }; }; -export interface RequestCrossOriginTokenPayload { +export interface SendVerificationEmailPayload { clientMutationId?: string | null; - result?: string | null; + result?: boolean | null; } -export type RequestCrossOriginTokenPayloadSelect = { +export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SignInPayload { - clientMutationId?: string | null; - result?: SignInRecord | null; -} -export type SignInPayloadSelect = { - clientMutationId?: boolean; - result?: { - select: SignInRecordSelect; - }; -}; -export interface ProvisionTablePayload { +export interface ForgotPasswordPayload { clientMutationId?: string | null; - result?: ProvisionTableRecord[] | null; } -export type ProvisionTablePayloadSelect = { +export type ForgotPasswordPayloadSelect = { clientMutationId?: boolean; - result?: { - select: ProvisionTableRecordSelect; - }; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -31929,6 +33078,51 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -32019,51 +33213,6 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateDatabasePayload { clientMutationId?: string | null; /** The `Database` that was created by this mutation. */ @@ -33144,6 +34293,51 @@ export type DeleteRealtimeModulePayloadSelect = { select: RealtimeModuleEdgeSelect; }; }; +export interface CreateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was created by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type CreateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface UpdateConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was updated by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type UpdateConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; +export interface DeleteConfigSecretsOrgModulePayload { + clientMutationId?: string | null; + /** The `ConfigSecretsOrgModule` that was deleted by this mutation. */ + configSecretsOrgModule?: ConfigSecretsOrgModule | null; + configSecretsOrgModuleEdge?: ConfigSecretsOrgModuleEdge | null; +} +export type DeleteConfigSecretsOrgModulePayloadSelect = { + clientMutationId?: boolean; + configSecretsOrgModule?: { + select: ConfigSecretsOrgModuleSelect; + }; + configSecretsOrgModuleEdge?: { + select: ConfigSecretsOrgModuleEdgeSelect; + }; +}; export interface CreateSchemaGrantPayload { clientMutationId?: string | null; /** The `SchemaGrant` that was created by this mutation. */ @@ -34224,49 +35418,49 @@ export type DeleteEmailsModulePayloadSelect = { select: EmailsModuleEdgeSelect; }; }; -export interface CreateEncryptedSecretsModulePayload { +export interface CreateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was created by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was created by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type CreateEncryptedSecretsModulePayloadSelect = { +export type CreateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface UpdateEncryptedSecretsModulePayload { +export interface UpdateConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was updated by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was updated by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type UpdateEncryptedSecretsModulePayloadSelect = { +export type UpdateConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; -export interface DeleteEncryptedSecretsModulePayload { +export interface DeleteConfigSecretsUserModulePayload { clientMutationId?: string | null; - /** The `EncryptedSecretsModule` that was deleted by this mutation. */ - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; + /** The `ConfigSecretsUserModule` that was deleted by this mutation. */ + configSecretsUserModule?: ConfigSecretsUserModule | null; + configSecretsUserModuleEdge?: ConfigSecretsUserModuleEdge | null; } -export type DeleteEncryptedSecretsModulePayloadSelect = { +export type DeleteConfigSecretsUserModulePayloadSelect = { clientMutationId?: boolean; - encryptedSecretsModule?: { - select: EncryptedSecretsModuleSelect; + configSecretsUserModule?: { + select: ConfigSecretsUserModuleSelect; }; - encryptedSecretsModuleEdge?: { - select: EncryptedSecretsModuleEdgeSelect; + configSecretsUserModuleEdge?: { + select: ConfigSecretsUserModuleEdgeSelect; }; }; export interface CreateInvitesModulePayload { @@ -35169,6 +36363,231 @@ export type DeleteNotificationsModulePayloadSelect = { select: NotificationsModuleEdgeSelect; }; }; +export interface CreateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was created by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type CreateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface UpdateInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was updated by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type UpdateInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface DeleteInferenceLogModulePayload { + clientMutationId?: string | null; + /** The `InferenceLogModule` that was deleted by this mutation. */ + inferenceLogModule?: InferenceLogModule | null; + inferenceLogModuleEdge?: InferenceLogModuleEdge | null; +} +export type DeleteInferenceLogModulePayloadSelect = { + clientMutationId?: boolean; + inferenceLogModule?: { + select: InferenceLogModuleSelect; + }; + inferenceLogModuleEdge?: { + select: InferenceLogModuleEdgeSelect; + }; +}; +export interface CreateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was created by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type CreateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface UpdateComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was updated by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type UpdateComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface DeleteComputeLogModulePayload { + clientMutationId?: string | null; + /** The `ComputeLogModule` that was deleted by this mutation. */ + computeLogModule?: ComputeLogModule | null; + computeLogModuleEdge?: ComputeLogModuleEdge | null; +} +export type DeleteComputeLogModulePayloadSelect = { + clientMutationId?: boolean; + computeLogModule?: { + select: ComputeLogModuleSelect; + }; + computeLogModuleEdge?: { + select: ComputeLogModuleEdgeSelect; + }; +}; +export interface CreateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was created by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type CreateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface UpdateTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was updated by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type UpdateTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface DeleteTransferLogModulePayload { + clientMutationId?: string | null; + /** The `TransferLogModule` that was deleted by this mutation. */ + transferLogModule?: TransferLogModule | null; + transferLogModuleEdge?: TransferLogModuleEdge | null; +} +export type DeleteTransferLogModulePayloadSelect = { + clientMutationId?: boolean; + transferLogModule?: { + select: TransferLogModuleSelect; + }; + transferLogModuleEdge?: { + select: TransferLogModuleEdgeSelect; + }; +}; +export interface CreateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was created by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type CreateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface UpdateStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was updated by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type UpdateStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface DeleteStorageLogModulePayload { + clientMutationId?: string | null; + /** The `StorageLogModule` that was deleted by this mutation. */ + storageLogModule?: StorageLogModule | null; + storageLogModuleEdge?: StorageLogModuleEdge | null; +} +export type DeleteStorageLogModulePayloadSelect = { + clientMutationId?: boolean; + storageLogModule?: { + select: StorageLogModuleSelect; + }; + storageLogModuleEdge?: { + select: StorageLogModuleEdgeSelect; + }; +}; +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type CreateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type UpdateDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} +export type DeleteDbUsageModulePayloadSelect = { + clientMutationId?: boolean; + dbUsageModule?: { + select: DbUsageModuleSelect; + }; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; + }; +}; export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; /** The `DatabaseProvisionModule` that was created by this mutation. */ @@ -36474,229 +37893,49 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; -export interface CreateAuditLogPayload { +export interface CreateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was created by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type CreateAuditLogPayloadSelect = { +export type CreateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface UpdateAuditLogPayload { +export interface UpdateAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was updated by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type UpdateAuditLogPayloadSelect = { +export type UpdateAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; + auditLogAuth?: { + select: AuditLogAuthSelect; }; - auditLogEdge?: { - select: AuditLogEdgeSelect; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; -export interface DeleteAuditLogPayload { +export interface DeleteAuditLogAuthPayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `AuditLogAuth` that was deleted by this mutation. */ + auditLogAuth?: AuditLogAuth | null; + auditLogAuthEdge?: AuditLogAuthEdge | null; } -export type DeleteAuditLogPayloadSelect = { +export type DeleteAuditLogAuthPayloadSelect = { clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface CreateAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was created by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export type CreateAgentThreadPayloadSelect = { - clientMutationId?: boolean; - agentThread?: { - select: AgentThreadSelect; - }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; - }; -}; -export interface UpdateAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was updated by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export type UpdateAgentThreadPayloadSelect = { - clientMutationId?: boolean; - agentThread?: { - select: AgentThreadSelect; - }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; - }; -}; -export interface DeleteAgentThreadPayload { - clientMutationId?: string | null; - /** The `AgentThread` that was deleted by this mutation. */ - agentThread?: AgentThread | null; - agentThreadEdge?: AgentThreadEdge | null; -} -export type DeleteAgentThreadPayloadSelect = { - clientMutationId?: boolean; - agentThread?: { - select: AgentThreadSelect; - }; - agentThreadEdge?: { - select: AgentThreadEdgeSelect; - }; -}; -export interface CreateAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was created by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export type CreateAgentMessagePayloadSelect = { - clientMutationId?: boolean; - agentMessage?: { - select: AgentMessageSelect; - }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; - }; -}; -export interface UpdateAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was updated by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export type UpdateAgentMessagePayloadSelect = { - clientMutationId?: boolean; - agentMessage?: { - select: AgentMessageSelect; - }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; - }; -}; -export interface DeleteAgentMessagePayload { - clientMutationId?: string | null; - /** The `AgentMessage` that was deleted by this mutation. */ - agentMessage?: AgentMessage | null; - agentMessageEdge?: AgentMessageEdge | null; -} -export type DeleteAgentMessagePayloadSelect = { - clientMutationId?: boolean; - agentMessage?: { - select: AgentMessageSelect; - }; - agentMessageEdge?: { - select: AgentMessageEdgeSelect; - }; -}; -export interface CreateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was created by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export type CreateAgentTaskPayloadSelect = { - clientMutationId?: boolean; - agentTask?: { - select: AgentTaskSelect; - }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; - }; -}; -export interface UpdateAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was updated by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export type UpdateAgentTaskPayloadSelect = { - clientMutationId?: boolean; - agentTask?: { - select: AgentTaskSelect; - }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; - }; -}; -export interface DeleteAgentTaskPayload { - clientMutationId?: string | null; - /** The `AgentTask` that was deleted by this mutation. */ - agentTask?: AgentTask | null; - agentTaskEdge?: AgentTaskEdge | null; -} -export type DeleteAgentTaskPayloadSelect = { - clientMutationId?: boolean; - agentTask?: { - select: AgentTaskSelect; - }; - agentTaskEdge?: { - select: AgentTaskEdgeSelect; - }; -}; -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; + auditLogAuth?: { + select: AuditLogAuthSelect; + }; + auditLogAuthEdge?: { + select: AuditLogAuthEdgeSelect; }; }; export interface CreateIdentityProviderPayload { @@ -36845,49 +38084,240 @@ export type DeleteAppPermissionDefaultPayloadSelect = { select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateAppLimitCreditCodePayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was created by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreateAppLimitCreditCodePayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdateAppLimitCreditCodePayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was updated by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdateAppLimitCreditCodePayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeleteAppLimitCreditCodePayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `AppLimitCreditCode` that was deleted by this mutation. */ - appLimitCreditCode?: AppLimitCreditCode | null; - appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeleteAppLimitCreditCodePayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - appLimitCreditCode?: { - select: AppLimitCreditCodeSelect; + roleType?: { + select: RoleTypeSelect; }; - appLimitCreditCodeEdge?: { - select: AppLimitCreditCodeEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; + }; +}; +export interface CreateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type CreateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface UpdateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type UpdateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface DeleteDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type DeleteDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + 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 CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; }; }; export interface CreateAppLimitCapsDefaultPayload { @@ -37070,150 +38500,15 @@ export type DeleteOrgLimitCapPayloadSelect = { select: OrgLimitCapEdgeSelect; }; }; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type DeleteMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface CreateMigrateFilePayload { - clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; -} -export type CreateMigrateFilePayloadSelect = { - clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; - }; -}; -export interface CreateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type CreateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface UpdateDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type UpdateDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface DeleteDevicesModulePayload { - clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; -} -export type DeleteDevicesModulePayloadSelect = { - clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; - }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; - }; -}; -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was created by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type CreateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was updated by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export type UpdateNodeTypeRegistryPayloadSelect = { - clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; - }; -}; -export interface DeleteNodeTypeRegistryPayload { +export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; - /** The `NodeTypeRegistry` that was deleted by this mutation. */ - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; } -export type DeleteNodeTypeRegistryPayloadSelect = { +export type CreateUserConnectedAccountPayloadSelect = { clientMutationId?: boolean; - nodeTypeRegistry?: { - select: NodeTypeRegistrySelect; - }; - nodeTypeRegistryEdge?: { - select: NodeTypeRegistryEdgeSelect; + userConnectedAccount?: { + select: UserConnectedAccountSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -37306,6 +38601,51 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; +export interface CreateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was created by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type CreateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface UpdateAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was updated by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type UpdateAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; +export interface DeleteAppLimitCreditCodePayload { + clientMutationId?: string | null; + /** The `AppLimitCreditCode` that was deleted by this mutation. */ + appLimitCreditCode?: AppLimitCreditCode | null; + appLimitCreditCodeEdge?: AppLimitCreditCodeEdge | null; +} +export type DeleteAppLimitCreditCodePayloadSelect = { + clientMutationId?: boolean; + appLimitCreditCode?: { + select: AppLimitCreditCodeSelect; + }; + appLimitCreditCodeEdge?: { + select: AppLimitCreditCodeEdgeSelect; + }; +}; export interface CreateAppLimitWarningPayload { clientMutationId?: string | null; /** The `AppLimitWarning` that was created by this mutation. */ @@ -37351,17 +38691,6 @@ export type DeleteAppLimitWarningPayloadSelect = { select: AppLimitWarningEdgeSelect; }; }; -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} -export type CreateUserConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; - }; -}; export interface CreateCommitPayload { clientMutationId?: string | null; /** The `Commit` that was created by this mutation. */ @@ -37452,184 +38781,94 @@ export type DeletePubkeySettingPayloadSelect = { select: PubkeySettingEdgeSelect; }; }; -export interface CreateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type CreateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type UpdateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type DeleteRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface CreateUsageSnapshotPayload { - clientMutationId?: string | null; - /** The `UsageSnapshot` that was created by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; -} -export type CreateUsageSnapshotPayloadSelect = { - clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; - }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; - }; -}; -export interface UpdateUsageSnapshotPayload { - clientMutationId?: string | null; - /** The `UsageSnapshot` that was updated by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; -} -export type UpdateUsageSnapshotPayloadSelect = { - clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; - }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; - }; -}; -export interface DeleteUsageSnapshotPayload { - clientMutationId?: string | null; - /** The `UsageSnapshot` that was deleted by this mutation. */ - usageSnapshot?: UsageSnapshot | null; - usageSnapshotEdge?: UsageSnapshotEdge | null; -} -export type DeleteUsageSnapshotPayloadSelect = { - clientMutationId?: boolean; - usageSnapshot?: { - select: UsageSnapshotSelect; - }; - usageSnapshotEdge?: { - select: UsageSnapshotEdgeSelect; - }; -}; -export interface CreateAppMembershipDefaultPayload { +export interface CreateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type CreateAppMembershipDefaultPayloadSelect = { +export type CreateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; -export interface UpdateAppMembershipDefaultPayload { +export interface UpdateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type UpdateAppMembershipDefaultPayloadSelect = { +export type UpdateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; -export interface DeleteAppMembershipDefaultPayload { +export interface DeleteRateLimitsModulePayload { clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type DeleteAppMembershipDefaultPayloadSelect = { +export type DeleteRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - appMembershipDefault?: { - select: AppMembershipDefaultSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; }; - appMembershipDefaultEdge?: { - select: AppMembershipDefaultEdgeSelect; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; -export interface CreateOrgMembershipDefaultPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateOrgMembershipDefaultPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateOrgMembershipDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteOrgMembershipDefaultPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; export interface CreateRlsSettingPayload { @@ -37677,28 +38916,6 @@ export type DeleteRlsSettingPayloadSelect = { select: RlsSettingEdgeSelect; }; }; -export interface CreateAppLimitEventPayload { - clientMutationId?: string | null; - /** The `AppLimitEvent` that was created by this mutation. */ - appLimitEvent?: AppLimitEvent | null; -} -export type CreateAppLimitEventPayloadSelect = { - clientMutationId?: boolean; - appLimitEvent?: { - select: AppLimitEventSelect; - }; -}; -export interface CreateOrgLimitEventPayload { - clientMutationId?: string | null; - /** The `OrgLimitEvent` that was created by this mutation. */ - orgLimitEvent?: OrgLimitEvent | null; -} -export type CreateOrgLimitEventPayloadSelect = { - clientMutationId?: boolean; - orgLimitEvent?: { - select: OrgLimitEventSelect; - }; -}; export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -37744,6 +38961,51 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; +export interface CreateAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was created by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} +export type CreateAgentChatModulePayloadSelect = { + clientMutationId?: boolean; + agentChatModule?: { + select: AgentChatModuleSelect; + }; + agentChatModuleEdge?: { + select: AgentChatModuleEdgeSelect; + }; +}; +export interface UpdateAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was updated by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} +export type UpdateAgentChatModulePayloadSelect = { + clientMutationId?: boolean; + agentChatModule?: { + select: AgentChatModuleSelect; + }; + agentChatModuleEdge?: { + select: AgentChatModuleEdgeSelect; + }; +}; +export interface DeleteAgentChatModulePayload { + clientMutationId?: string | null; + /** The `AgentChatModule` that was deleted by this mutation. */ + agentChatModule?: AgentChatModule | null; + agentChatModuleEdge?: AgentChatModuleEdge | null; +} +export type DeleteAgentChatModulePayloadSelect = { + clientMutationId?: boolean; + agentChatModule?: { + select: AgentChatModuleSelect; + }; + agentChatModuleEdge?: { + select: AgentChatModuleEdgeSelect; + }; +}; export interface CreateRateLimitMetersModulePayload { clientMutationId?: string | null; /** The `RateLimitMetersModule` that was created by this mutation. */ @@ -37845,6 +39107,96 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface UpdateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was updated by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type UpdateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface DeleteAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was deleted by this mutation. */ + appLimitEvent?: AppLimitEvent | null; + appLimitEventEdge?: AppLimitEventEdge | null; +} +export type DeleteAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; + appLimitEventEdge?: { + select: AppLimitEventEdgeSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface UpdateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was updated by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type UpdateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; +export interface DeleteOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was deleted by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; + orgLimitEventEdge?: OrgLimitEventEdge | null; +} +export type DeleteOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; + orgLimitEventEdge?: { + select: OrgLimitEventEdgeSelect; + }; +}; export interface CreateDatabaseSettingPayload { clientMutationId?: string | null; /** The `DatabaseSetting` that was created by this mutation. */ @@ -37890,60 +39242,94 @@ export type DeleteDatabaseSettingPayloadSelect = { select: DatabaseSettingEdgeSelect; }; }; -export interface CreateBillingModulePayload { +export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type CreateBillingModulePayloadSelect = { +export type CreateOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface UpdateBillingModulePayload { +export interface UpdateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type UpdateBillingModulePayloadSelect = { +export type UpdateOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface DeleteBillingModulePayload { +export interface DeleteOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type DeleteBillingModulePayloadSelect = { +export type DeleteOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; -export interface CreateAstMigrationPayload { +export interface CreateAppMembershipPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `AppMembership` that was created by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; } -export type CreateAstMigrationPayloadSelect = { +export type CreateAppMembershipPayloadSelect = { clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was updated by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + /** The `AppMembership` that was deleted by this mutation. */ + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; }; }; export interface CreateUserPayload { @@ -37991,49 +39377,15 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type CreateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} -export type UpdateOrgMembershipSettingPayloadSelect = { - clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; - }; -}; -export interface DeleteOrgMembershipSettingPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type CreateAstMigrationPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + astMigration?: { + select: AstMigrationSelect; }; }; export interface CreateWebauthnSettingPayload { @@ -38081,49 +39433,49 @@ export type DeleteWebauthnSettingPayloadSelect = { select: WebauthnSettingEdgeSelect; }; }; -export interface CreateAppMembershipPayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was created by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type CreateAppMembershipPayloadSelect = { +export type CreateBillingModulePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + billingModule?: { + select: BillingModuleSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface UpdateAppMembershipPayload { +export interface UpdateBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was updated by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type UpdateAppMembershipPayloadSelect = { +export type UpdateBillingModulePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + billingModule?: { + select: BillingModuleSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface DeleteAppMembershipPayload { +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `AppMembership` that was deleted by this mutation. */ - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type DeleteAppMembershipPayloadSelect = { +export type DeleteBillingModulePayloadSelect = { clientMutationId?: boolean; - appMembership?: { - select: AppMembershipSelect; + billingModule?: { + select: BillingModuleSelect; }; - appMembershipEdge?: { - select: AppMembershipEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; export interface CreateBillingProviderModulePayload { @@ -38216,16 +39568,16 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { +/** A `Object` edge in the connection. */ +export interface ObjectEdge { cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; } -export type AppPermissionEdgeSelect = { +export type ObjectEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionSelect; + select: ObjectSelect; }; }; /** Information about pagination in a connection. */ @@ -38245,6 +39597,18 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { + cursor?: string | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -38257,17 +39621,21 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; +export interface SignInCrossOriginRecord { + id?: string | null; + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; + isVerified?: boolean | null; + totpEnabled?: boolean | null; } -export type ObjectEdgeSelect = { - cursor?: boolean; - node?: { - select: ObjectSelect; - }; +export type SignInCrossOriginRecordSelect = { + id?: boolean; + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; + isVerified?: boolean; + totpEnabled?: boolean; }; export interface BootstrapUserRecord { outUserId?: string | null; @@ -38289,62 +39657,6 @@ export type BootstrapUserRecordSelect = { outIsSudo?: boolean; outApiKey?: boolean; }; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; -}; -export interface ProvisionRelationRecord { - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; -} -export type ProvisionRelationRecordSelect = { - outFieldId?: boolean; - outJunctionTableId?: boolean; - outSourceFieldId?: boolean; - outTargetFieldId?: boolean; -}; -export interface SignInCrossOriginRecord { - id?: string | null; - userId?: string | null; - accessToken?: string | null; - accessTokenExpiresAt?: string | null; - isVerified?: boolean | null; - totpEnabled?: boolean | null; -} -export type SignInCrossOriginRecordSelect = { - id?: boolean; - userId?: boolean; - accessToken?: boolean; - accessTokenExpiresAt?: boolean; - isVerified?: boolean; - totpEnabled?: boolean; -}; -export interface ExtendTokenExpiresRecord { - id?: string | null; - sessionId?: string | null; - expiresAt?: string | null; -} -export type ExtendTokenExpiresRecordSelect = { - id?: boolean; - sessionId?: boolean; - expiresAt?: boolean; -}; -export interface CreateApiKeyRecord { - apiKey?: string | null; - keyId?: string | null; - expiresAt?: string | null; -} -export type CreateApiKeyRecordSelect = { - apiKey?: boolean; - keyId?: boolean; - expiresAt?: boolean; -}; export interface SignUpRecord { id?: string | null; userId?: string | null; @@ -38381,6 +39693,46 @@ export type SignInRecordSelect = { mfaRequired?: boolean; mfaChallengeToken?: boolean; }; +export interface ProvisionDatabaseWithUserRecord { + outDatabaseId?: string | null; + outApiKey?: string | null; +} +export type ProvisionDatabaseWithUserRecordSelect = { + outDatabaseId?: boolean; + outApiKey?: boolean; +}; +export interface ProvisionRelationRecord { + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; +} +export type ProvisionRelationRecordSelect = { + outFieldId?: boolean; + outJunctionTableId?: boolean; + outSourceFieldId?: boolean; + outTargetFieldId?: boolean; +}; +export interface ExtendTokenExpiresRecord { + id?: string | null; + sessionId?: string | null; + expiresAt?: string | null; +} +export type ExtendTokenExpiresRecordSelect = { + id?: boolean; + sessionId?: boolean; + expiresAt?: boolean; +}; +export interface CreateApiKeyRecord { + apiKey?: string | null; + keyId?: string | null; + expiresAt?: string | null; +} +export type CreateApiKeyRecordSelect = { + apiKey?: boolean; + keyId?: boolean; + expiresAt?: boolean; +}; export interface ProvisionTableRecord { outTableId?: string | null; outFields?: string[] | null; @@ -38677,6 +40029,18 @@ export type RealtimeModuleEdgeSelect = { select: RealtimeModuleSelect; }; }; +/** A `ConfigSecretsOrgModule` edge in the connection. */ +export interface ConfigSecretsOrgModuleEdge { + cursor?: string | null; + /** The `ConfigSecretsOrgModule` at the end of the edge. */ + node?: ConfigSecretsOrgModule | null; +} +export type ConfigSecretsOrgModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConfigSecretsOrgModuleSelect; + }; +}; /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { cursor?: string | null; @@ -38965,16 +40329,16 @@ export type EmailsModuleEdgeSelect = { select: EmailsModuleSelect; }; }; -/** A `EncryptedSecretsModule` edge in the connection. */ -export interface EncryptedSecretsModuleEdge { +/** A `ConfigSecretsUserModule` edge in the connection. */ +export interface ConfigSecretsUserModuleEdge { cursor?: string | null; - /** The `EncryptedSecretsModule` at the end of the edge. */ - node?: EncryptedSecretsModule | null; + /** The `ConfigSecretsUserModule` at the end of the edge. */ + node?: ConfigSecretsUserModule | null; } -export type EncryptedSecretsModuleEdgeSelect = { +export type ConfigSecretsUserModuleEdgeSelect = { cursor?: boolean; node?: { - select: EncryptedSecretsModuleSelect; + select: ConfigSecretsUserModuleSelect; }; }; /** A `InvitesModule` edge in the connection. */ @@ -39217,6 +40581,66 @@ export type NotificationsModuleEdgeSelect = { select: NotificationsModuleSelect; }; }; +/** A `InferenceLogModule` edge in the connection. */ +export interface InferenceLogModuleEdge { + cursor?: string | null; + /** The `InferenceLogModule` at the end of the edge. */ + node?: InferenceLogModule | null; +} +export type InferenceLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InferenceLogModuleSelect; + }; +}; +/** A `ComputeLogModule` edge in the connection. */ +export interface ComputeLogModuleEdge { + cursor?: string | null; + /** The `ComputeLogModule` at the end of the edge. */ + node?: ComputeLogModule | null; +} +export type ComputeLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ComputeLogModuleSelect; + }; +}; +/** A `TransferLogModule` edge in the connection. */ +export interface TransferLogModuleEdge { + cursor?: string | null; + /** The `TransferLogModule` at the end of the edge. */ + node?: TransferLogModule | null; +} +export type TransferLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TransferLogModuleSelect; + }; +}; +/** A `StorageLogModule` edge in the connection. */ +export interface StorageLogModuleEdge { + cursor?: string | null; + /** The `StorageLogModule` at the end of the edge. */ + node?: StorageLogModule | null; +} +export type StorageLogModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: StorageLogModuleSelect; + }; +}; +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; +} +export type DbUsageModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DbUsageModuleSelect; + }; +}; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -39565,52 +40989,52 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { +/** A `AuditLogAuth` edge in the connection. */ +export interface AuditLogAuthEdge { cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; + /** The `AuditLogAuth` at the end of the edge. */ + node?: AuditLogAuth | null; } -export type AuditLogEdgeSelect = { +export type AuditLogAuthEdgeSelect = { cursor?: boolean; node?: { - select: AuditLogSelect; + select: AuditLogAuthSelect; }; }; -/** A `AgentThread` edge in the connection. */ -export interface AgentThreadEdge { +/** A `Ref` edge in the connection. */ +export interface RefEdge { cursor?: string | null; - /** The `AgentThread` at the end of the edge. */ - node?: AgentThread | null; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; } -export type AgentThreadEdgeSelect = { +export type RefEdgeSelect = { cursor?: boolean; node?: { - select: AgentThreadSelect; + select: RefSelect; }; }; -/** A `AgentMessage` edge in the connection. */ -export interface AgentMessageEdge { +/** A `Store` edge in the connection. */ +export interface StoreEdge { cursor?: string | null; - /** The `AgentMessage` at the end of the edge. */ - node?: AgentMessage | null; + /** The `Store` at the end of the edge. */ + node?: Store | null; } -export type AgentMessageEdgeSelect = { +export type StoreEdgeSelect = { cursor?: boolean; node?: { - select: AgentMessageSelect; + select: StoreSelect; }; }; -/** A `AgentTask` edge in the connection. */ -export interface AgentTaskEdge { +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { cursor?: string | null; - /** The `AgentTask` at the end of the edge. */ - node?: AgentTask | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; } -export type AgentTaskEdgeSelect = { +export type AppPermissionDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AgentTaskSelect; + select: AppPermissionDefaultSelect; }; }; /** A `RoleType` edge in the connection. */ @@ -39625,52 +41049,52 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; -/** A `Ref` edge in the connection. */ -export interface RefEdge { +/** A `DevicesModule` edge in the connection. */ +export interface DevicesModuleEdge { cursor?: string | null; - /** The `Ref` at the end of the edge. */ - node?: Ref | null; + /** The `DevicesModule` at the end of the edge. */ + node?: DevicesModule | null; } -export type RefEdgeSelect = { +export type DevicesModuleEdgeSelect = { cursor?: boolean; node?: { - select: RefSelect; + select: DevicesModuleSelect; }; }; -/** A `Store` edge in the connection. */ -export interface StoreEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `Store` at the end of the edge. */ - node?: Store | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type StoreEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: StoreSelect; + select: AppMembershipDefaultSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; } -export type AppPermissionDefaultEdgeSelect = { +export type OrgMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionDefaultSelect; + select: OrgMembershipDefaultSelect; }; }; -/** A `AppLimitCreditCode` edge in the connection. */ -export interface AppLimitCreditCodeEdge { +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { cursor?: string | null; - /** The `AppLimitCreditCode` at the end of the edge. */ - node?: AppLimitCreditCode | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; } -export type AppLimitCreditCodeEdgeSelect = { +export type NodeTypeRegistryEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitCreditCodeSelect; + select: NodeTypeRegistrySelect; }; }; /** A `AppLimitCapsDefault` edge in the connection. */ @@ -39721,42 +41145,6 @@ export type OrgLimitCapEdgeSelect = { select: OrgLimitCapSelect; }; }; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { - cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; -} -export type MembershipTypeEdgeSelect = { - cursor?: boolean; - node?: { - select: MembershipTypeSelect; - }; -}; -/** A `DevicesModule` edge in the connection. */ -export interface DevicesModuleEdge { - cursor?: string | null; - /** The `DevicesModule` at the end of the edge. */ - node?: DevicesModule | null; -} -export type DevicesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: DevicesModuleSelect; - }; -}; -/** A `NodeTypeRegistry` edge in the connection. */ -export interface NodeTypeRegistryEdge { - cursor?: string | null; - /** The `NodeTypeRegistry` at the end of the edge. */ - node?: NodeTypeRegistry | null; -} -export type NodeTypeRegistryEdgeSelect = { - cursor?: boolean; - node?: { - select: NodeTypeRegistrySelect; - }; -}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -39781,6 +41169,18 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; +/** A `AppLimitCreditCode` edge in the connection. */ +export interface AppLimitCreditCodeEdge { + cursor?: string | null; + /** The `AppLimitCreditCode` at the end of the edge. */ + node?: AppLimitCreditCode | null; +} +export type AppLimitCreditCodeEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitCreditCodeSelect; + }; +}; /** A `AppLimitWarning` edge in the connection. */ export interface AppLimitWarningEdge { cursor?: string | null; @@ -39829,40 +41229,16 @@ export type RateLimitsModuleEdgeSelect = { select: RateLimitsModuleSelect; }; }; -/** A `UsageSnapshot` edge in the connection. */ -export interface UsageSnapshotEdge { - cursor?: string | null; - /** The `UsageSnapshot` at the end of the edge. */ - node?: UsageSnapshot | null; -} -export type UsageSnapshotEdgeSelect = { - cursor?: boolean; - node?: { - select: UsageSnapshotSelect; - }; -}; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -export type AppMembershipDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: AppMembershipDefaultSelect; - }; -}; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: MembershipTypeSelect; }; }; /** A `RlsSetting` edge in the connection. */ @@ -39889,6 +41265,18 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; +/** A `AgentChatModule` edge in the connection. */ +export interface AgentChatModuleEdge { + cursor?: string | null; + /** The `AgentChatModule` at the end of the edge. */ + node?: AgentChatModule | null; +} +export type AgentChatModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: AgentChatModuleSelect; + }; +}; /** A `RateLimitMetersModule` edge in the connection. */ export interface RateLimitMetersModuleEdge { cursor?: string | null; @@ -39913,40 +41301,40 @@ export type PlansModuleEdgeSelect = { select: PlansModuleSelect; }; }; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; } -export type DatabaseSettingEdgeSelect = { +export type AppLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: DatabaseSettingSelect; + select: AppLimitEventSelect; }; }; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; } -export type BillingModuleEdgeSelect = { +export type OrgLimitEventEdgeSelect = { cursor?: boolean; node?: { - select: BillingModuleSelect; + select: OrgLimitEventSelect; }; }; -/** A `User` edge in the connection. */ -export interface UserEdge { +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { cursor?: string | null; - /** The `User` at the end of the edge. */ - node?: User | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; } -export type UserEdgeSelect = { +export type DatabaseSettingEdgeSelect = { cursor?: boolean; node?: { - select: UserSelect; + select: DatabaseSettingSelect; }; }; /** A `OrgMembershipSetting` edge in the connection. */ @@ -39961,6 +41349,30 @@ export type OrgMembershipSettingEdgeSelect = { select: OrgMembershipSettingSelect; }; }; +/** A `AppMembership` edge in the connection. */ +export interface AppMembershipEdge { + cursor?: string | null; + /** The `AppMembership` at the end of the edge. */ + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; +/** A `User` edge in the connection. */ +export interface UserEdge { + cursor?: string | null; + /** The `User` at the end of the edge. */ + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; /** A `WebauthnSetting` edge in the connection. */ export interface WebauthnSettingEdge { cursor?: string | null; @@ -39973,16 +41385,16 @@ export type WebauthnSettingEdgeSelect = { select: WebauthnSettingSelect; }; }; -/** A `AppMembership` edge in the connection. */ -export interface AppMembershipEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `AppMembership` at the end of the edge. */ - node?: AppMembership | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type AppMembershipEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipSelect; + select: BillingModuleSelect; }; }; /** A `BillingProviderModule` edge in the connection. */ diff --git a/sdk/constructive-sdk/src/public/orm/models/agentChatModule.ts b/sdk/constructive-sdk/src/public/orm/models/agentChatModule.ts new file mode 100644 index 0000000000..a531d98ff6 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/agentChatModule.ts @@ -0,0 +1,244 @@ +/** + * AgentChatModule 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 { + AgentChatModule, + AgentChatModuleWithRelations, + AgentChatModuleSelect, + AgentChatModuleFilter, + AgentChatModuleOrderBy, + CreateAgentChatModuleInput, + UpdateAgentChatModuleInput, + AgentChatModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentChatModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentChatModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentChatModule', + 'agentChatModules', + 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, + }, + 'AgentChatModuleFilter', + 'AgentChatModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentChatModule', + fieldName: 'agentChatModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentChatModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentChatModule', + 'agentChatModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AgentChatModuleFilter', + 'AgentChatModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentChatModule', + fieldName: 'agentChatModule', + document, + variables, + transform: (data: { + agentChatModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentChatModule: data.agentChatModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentChatModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentChatModule', + 'agentChatModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentChatModuleFilter', + 'AgentChatModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentChatModule', + fieldName: 'agentChatModule', + document, + variables, + transform: (data: { + agentChatModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentChatModule: data.agentChatModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentChatModule: { + agentChatModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentChatModule', + 'createAgentChatModule', + 'agentChatModule', + args.select, + args.data, + 'CreateAgentChatModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentChatModule', + fieldName: 'createAgentChatModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentChatModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentChatModule: { + agentChatModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentChatModule', + 'updateAgentChatModule', + 'agentChatModule', + args.select, + args.where.id, + args.data, + 'UpdateAgentChatModuleInput', + 'id', + 'agentChatModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentChatModule', + fieldName: 'updateAgentChatModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentChatModule: { + agentChatModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentChatModule', + 'deleteAgentChatModule', + 'agentChatModule', + { + id: args.where.id, + }, + 'DeleteAgentChatModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentChatModule', + fieldName: 'deleteAgentChatModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/agentTask.ts b/sdk/constructive-sdk/src/public/orm/models/agentTask.ts deleted file mode 100644 index 3bbc609f16..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/agentTask.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AgentTask 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 { - AgentTask, - AgentTaskWithRelations, - AgentTaskSelect, - AgentTaskFilter, - AgentTaskOrderBy, - CreateAgentTaskInput, - UpdateAgentTaskInput, - AgentTaskPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AgentTaskModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentTasks: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AgentTask', - 'agentTasks', - 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, - }, - 'AgentTaskFilter', - 'AgentTaskOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentTask', - fieldName: 'agentTasks', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentTask: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AgentTask', - 'agentTasks', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AgentTaskFilter', - 'AgentTaskOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentTask', - fieldName: 'agentTask', - document, - variables, - transform: (data: { - agentTasks?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - agentTask: data.agentTasks?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentTask: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AgentTask', - 'agentTasks', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AgentTaskFilter', - 'AgentTaskOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentTask', - fieldName: 'agentTask', - document, - variables, - transform: (data: { - agentTasks?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - agentTask: data.agentTasks?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAgentTask: { - agentTask: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AgentTask', - 'createAgentTask', - 'agentTask', - args.select, - args.data, - 'CreateAgentTaskInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentTask', - fieldName: 'createAgentTask', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AgentTaskPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAgentTask: { - agentTask: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AgentTask', - 'updateAgentTask', - 'agentTask', - args.select, - args.where.id, - args.data, - 'UpdateAgentTaskInput', - 'id', - 'agentTaskPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentTask', - fieldName: 'updateAgentTask', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAgentTask: { - agentTask: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AgentTask', - 'deleteAgentTask', - 'agentTask', - { - id: args.where.id, - }, - 'DeleteAgentTaskInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentTask', - fieldName: 'deleteAgentTask', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/agentThread.ts b/sdk/constructive-sdk/src/public/orm/models/agentThread.ts deleted file mode 100644 index 7bbd14abec..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/agentThread.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AgentThread 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 { - AgentThread, - AgentThreadWithRelations, - AgentThreadSelect, - AgentThreadFilter, - AgentThreadOrderBy, - CreateAgentThreadInput, - UpdateAgentThreadInput, - AgentThreadPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AgentThreadModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentThreads: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AgentThread', - 'agentThreads', - 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, - }, - 'AgentThreadFilter', - 'AgentThreadOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentThread', - fieldName: 'agentThreads', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentThread: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AgentThread', - 'agentThreads', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AgentThreadFilter', - 'AgentThreadOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentThread', - fieldName: 'agentThread', - document, - variables, - transform: (data: { - agentThreads?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - agentThread: data.agentThreads?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - agentThread: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AgentThread', - 'agentThreads', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AgentThreadFilter', - 'AgentThreadOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AgentThread', - fieldName: 'agentThread', - document, - variables, - transform: (data: { - agentThreads?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - agentThread: data.agentThreads?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAgentThread: { - agentThread: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AgentThread', - 'createAgentThread', - 'agentThread', - args.select, - args.data, - 'CreateAgentThreadInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentThread', - fieldName: 'createAgentThread', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AgentThreadPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAgentThread: { - agentThread: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AgentThread', - 'updateAgentThread', - 'agentThread', - args.select, - args.where.id, - args.data, - 'UpdateAgentThreadInput', - 'id', - 'agentThreadPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentThread', - fieldName: 'updateAgentThread', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAgentThread: { - agentThread: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AgentThread', - 'deleteAgentThread', - 'agentThread', - { - id: args.where.id, - }, - 'DeleteAgentThreadInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AgentThread', - fieldName: 'deleteAgentThread', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts index b8e0c98e11..ef7249f3e9 100644 --- a/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts +++ b/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts @@ -104,6 +104,46 @@ export class AppLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvent', + document, + variables, + transform: (data: { + appLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appLimitEvent: data.appLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class AppLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppLimitEvent', + 'updateAppLimitEvent', + 'appLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateAppLimitEventInput', + 'id', + 'appLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'updateAppLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppLimitEvent', + 'deleteAppLimitEvent', + 'appLimitEvent', + { + id: args.where.id, + }, + 'DeleteAppLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'deleteAppLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-sdk/src/public/orm/models/auditLog.ts b/sdk/constructive-sdk/src/public/orm/models/auditLog.ts deleted file mode 100644 index 8d8abc012f..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/auditLog.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * AuditLog 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 { - AuditLog, - AuditLogWithRelations, - AuditLogSelect, - AuditLogFilter, - AuditLogOrderBy, - CreateAuditLogInput, - UpdateAuditLogInput, - AuditLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class AuditLogModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLogs: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - 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, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLogs', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - auditLog: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'AuditLog', - 'auditLogs', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'AuditLogFilter', - 'AuditLogOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'AuditLog', - fieldName: 'auditLog', - document, - variables, - transform: (data: { - auditLogs?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - auditLog: data.auditLogs?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'AuditLog', - 'createAuditLog', - 'auditLog', - args.select, - args.data, - 'CreateAuditLogInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'createAuditLog', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - AuditLogPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'AuditLog', - 'updateAuditLog', - 'auditLog', - args.select, - args.where.id, - args.data, - 'UpdateAuditLogInput', - 'id', - 'auditLogPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'updateAuditLog', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteAuditLog: { - auditLog: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'AuditLog', - 'deleteAuditLog', - 'auditLog', - { - id: args.where.id, - }, - 'DeleteAuditLogInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'AuditLog', - fieldName: 'deleteAuditLog', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/models/auditLogAuth.ts b/sdk/constructive-sdk/src/public/orm/models/auditLogAuth.ts new file mode 100644 index 0000000000..8a6665612c --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/auditLogAuth.ts @@ -0,0 +1,244 @@ +/** + * AuditLogAuth 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 { + AuditLogAuth, + AuditLogAuthWithRelations, + AuditLogAuthSelect, + AuditLogAuthFilter, + AuditLogAuthOrderBy, + CreateAuditLogAuthInput, + UpdateAuditLogAuthInput, + AuditLogAuthPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AuditLogAuthModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogAuths: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AuditLogAuth', + 'auditLogAuths', + 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, + }, + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuths', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogAuth: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AuditLogAuth', + 'auditLogAuths', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', + document, + variables, + transform: (data: { + auditLogAuths?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + auditLogAuth: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AuditLogAuth', + 'auditLogAuths', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AuditLogAuthFilter', + 'AuditLogAuthOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AuditLogAuth', + fieldName: 'auditLogAuth', + document, + variables, + transform: (data: { + auditLogAuths?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + auditLogAuth: data.auditLogAuths?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AuditLogAuth', + 'createAuditLogAuth', + 'auditLogAuth', + args.select, + args.data, + 'CreateAuditLogAuthInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLogAuth', + fieldName: 'createAuditLogAuth', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AuditLogAuthPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AuditLogAuth', + 'updateAuditLogAuth', + 'auditLogAuth', + args.select, + args.where.id, + args.data, + 'UpdateAuditLogAuthInput', + 'id', + 'auditLogAuthPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLogAuth', + fieldName: 'updateAuditLogAuth', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAuditLogAuth: { + auditLogAuth: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AuditLogAuth', + 'deleteAuditLogAuth', + 'auditLogAuth', + { + id: args.where.id, + }, + 'DeleteAuditLogAuthInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AuditLogAuth', + fieldName: 'deleteAuditLogAuth', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/computeLogModule.ts b/sdk/constructive-sdk/src/public/orm/models/computeLogModule.ts new file mode 100644 index 0000000000..2e36321ef1 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/computeLogModule.ts @@ -0,0 +1,244 @@ +/** + * ComputeLogModule 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 { + ComputeLogModule, + ComputeLogModuleWithRelations, + ComputeLogModuleSelect, + ComputeLogModuleFilter, + ComputeLogModuleOrderBy, + CreateComputeLogModuleInput, + UpdateComputeLogModuleInput, + ComputeLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ComputeLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + computeLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'ComputeLogModule', + 'computeLogModules', + 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, + }, + 'ComputeLogModuleFilter', + 'ComputeLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ComputeLogModule', + fieldName: 'computeLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + computeLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ComputeLogModule', + 'computeLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ComputeLogModuleFilter', + 'ComputeLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ComputeLogModule', + fieldName: 'computeLogModule', + document, + variables, + transform: (data: { + computeLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + computeLogModule: data.computeLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + computeLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ComputeLogModule', + 'computeLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ComputeLogModuleFilter', + 'ComputeLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ComputeLogModule', + fieldName: 'computeLogModule', + document, + variables, + transform: (data: { + computeLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + computeLogModule: data.computeLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ComputeLogModule', + 'createComputeLogModule', + 'computeLogModule', + args.select, + args.data, + 'CreateComputeLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ComputeLogModule', + fieldName: 'createComputeLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ComputeLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ComputeLogModule', + 'updateComputeLogModule', + 'computeLogModule', + args.select, + args.where.id, + args.data, + 'UpdateComputeLogModuleInput', + 'id', + 'computeLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ComputeLogModule', + fieldName: 'updateComputeLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteComputeLogModule: { + computeLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ComputeLogModule', + 'deleteComputeLogModule', + 'computeLogModule', + { + id: args.where.id, + }, + 'DeleteComputeLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ComputeLogModule', + fieldName: 'deleteComputeLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/configSecretsOrgModule.ts b/sdk/constructive-sdk/src/public/orm/models/configSecretsOrgModule.ts new file mode 100644 index 0000000000..ef53f2d5cd --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/configSecretsOrgModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsOrgModule 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 { + ConfigSecretsOrgModule, + ConfigSecretsOrgModuleWithRelations, + ConfigSecretsOrgModuleSelect, + ConfigSecretsOrgModuleFilter, + ConfigSecretsOrgModuleOrderBy, + CreateConfigSecretsOrgModuleInput, + UpdateConfigSecretsOrgModuleInput, + ConfigSecretsOrgModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsOrgModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + 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, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsOrgModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsOrgModule', + 'configSecretsOrgModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsOrgModuleFilter', + 'ConfigSecretsOrgModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'configSecretsOrgModule', + document, + variables, + transform: (data: { + configSecretsOrgModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsOrgModule', + 'createConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.data, + 'CreateConfigSecretsOrgModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'createConfigSecretsOrgModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsOrgModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsOrgModule', + 'updateConfigSecretsOrgModule', + 'configSecretsOrgModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsOrgModuleInput', + 'id', + 'configSecretsOrgModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'updateConfigSecretsOrgModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsOrgModule: { + configSecretsOrgModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsOrgModule', + 'deleteConfigSecretsOrgModule', + 'configSecretsOrgModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsOrgModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsOrgModule', + fieldName: 'deleteConfigSecretsOrgModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/configSecretsUserModule.ts b/sdk/constructive-sdk/src/public/orm/models/configSecretsUserModule.ts new file mode 100644 index 0000000000..b1b8f0cacb --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/configSecretsUserModule.ts @@ -0,0 +1,246 @@ +/** + * ConfigSecretsUserModule 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 { + ConfigSecretsUserModule, + ConfigSecretsUserModuleWithRelations, + ConfigSecretsUserModuleSelect, + ConfigSecretsUserModuleFilter, + ConfigSecretsUserModuleOrderBy, + CreateConfigSecretsUserModuleInput, + UpdateConfigSecretsUserModuleInput, + ConfigSecretsUserModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class ConfigSecretsUserModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + 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, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + configSecretsUserModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'ConfigSecretsUserModule', + 'configSecretsUserModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'ConfigSecretsUserModuleFilter', + 'ConfigSecretsUserModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'ConfigSecretsUserModule', + fieldName: 'configSecretsUserModule', + document, + variables, + transform: (data: { + configSecretsUserModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + configSecretsUserModule: data.configSecretsUserModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'ConfigSecretsUserModule', + 'createConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.data, + 'CreateConfigSecretsUserModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'createConfigSecretsUserModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + ConfigSecretsUserModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'ConfigSecretsUserModule', + 'updateConfigSecretsUserModule', + 'configSecretsUserModule', + args.select, + args.where.id, + args.data, + 'UpdateConfigSecretsUserModuleInput', + 'id', + 'configSecretsUserModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'updateConfigSecretsUserModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteConfigSecretsUserModule: { + configSecretsUserModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'ConfigSecretsUserModule', + 'deleteConfigSecretsUserModule', + 'configSecretsUserModule', + { + id: args.where.id, + }, + 'DeleteConfigSecretsUserModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'ConfigSecretsUserModule', + fieldName: 'deleteConfigSecretsUserModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/usageSnapshot.ts b/sdk/constructive-sdk/src/public/orm/models/dbUsageModule.ts similarity index 53% rename from sdk/constructive-react/src/admin/orm/models/usageSnapshot.ts rename to sdk/constructive-sdk/src/public/orm/models/dbUsageModule.ts index 9fad79a81f..69aa58b980 100644 --- a/sdk/constructive-react/src/admin/orm/models/usageSnapshot.ts +++ b/sdk/constructive-sdk/src/public/orm/models/dbUsageModule.ts @@ -1,5 +1,5 @@ /** - * UsageSnapshot model for ORM client + * DbUsageModule 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 { - UsageSnapshot, - UsageSnapshotWithRelations, - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy, - CreateUsageSnapshotInput, - UpdateUsageSnapshotInput, - UsageSnapshotPatch, + DbUsageModule, + DbUsageModuleWithRelations, + DbUsageModuleSelect, + DbUsageModuleFilter, + DbUsageModuleOrderBy, + CreateDbUsageModuleInput, + UpdateDbUsageModuleInput, + DbUsageModulePatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class UsageSnapshotModel { +export class DbUsageModuleModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - usageSnapshots: ConnectionResult>; + dbUsageModules: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', + 'DbUsageModule', + 'dbUsageModules', args.select, { where: args?.where, @@ -56,65 +56,65 @@ export class UsageSnapshotModel { before: args?.before, offset: args?.offset, }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', + 'DbUsageModuleFilter', + 'DbUsageModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshots', + operationName: 'DbUsageModule', + fieldName: 'dbUsageModules', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; + dbUsageModule: InferSelectResult | null; }> { const { document, variables } = buildFindFirstDocument( - 'UsageSnapshot', - 'usageSnapshots', + 'DbUsageModule', + 'dbUsageModules', args.select, { where: args?.where, orderBy: args?.orderBy as string[] | undefined, }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', + 'DbUsageModuleFilter', + 'DbUsageModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'dbUsageModule', document, variables, transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; + dbUsageModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, + dbUsageModule: data.dbUsageModules?.nodes?.[0] ?? null, }), }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; + dbUsageModule: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', + 'DbUsageModule', + 'dbUsageModules', args.select, { where: { @@ -124,90 +124,90 @@ export class UsageSnapshotModel { }, first: 1, }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', + 'DbUsageModuleFilter', + 'DbUsageModuleOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'dbUsageModule', document, variables, transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; + dbUsageModules?: { + nodes?: InferSelectResult[]; }; }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, + dbUsageModule: data.dbUsageModules?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createUsageSnapshot: { - usageSnapshot: InferSelectResult; + createDbUsageModule: { + dbUsageModule: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'UsageSnapshot', - 'createUsageSnapshot', - 'usageSnapshot', + 'DbUsageModule', + 'createDbUsageModule', + 'dbUsageModule', args.select, args.data, - 'CreateUsageSnapshotInput', + 'CreateDbUsageModuleInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'createUsageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'createDbUsageModule', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - UsageSnapshotPatch + DbUsageModulePatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; + updateDbUsageModule: { + dbUsageModule: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'UsageSnapshot', - 'updateUsageSnapshot', - 'usageSnapshot', + 'DbUsageModule', + 'updateDbUsageModule', + 'dbUsageModule', args.select, args.where.id, args.data, - 'UpdateUsageSnapshotInput', + 'UpdateDbUsageModuleInput', 'id', - 'usageSnapshotPatch', + 'dbUsageModulePatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'updateUsageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'updateDbUsageModule', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -215,28 +215,28 @@ export class UsageSnapshotModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; + deleteDbUsageModule: { + dbUsageModule: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'UsageSnapshot', - 'deleteUsageSnapshot', - 'usageSnapshot', + 'DbUsageModule', + 'deleteDbUsageModule', + 'dbUsageModule', { id: args.where.id, }, - 'DeleteUsageSnapshotInput', + 'DeleteDbUsageModuleInput', args.select, connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'deleteUsageSnapshot', + operationName: 'DbUsageModule', + fieldName: 'deleteDbUsageModule', document, variables, }); diff --git a/sdk/constructive-sdk/src/public/orm/models/encryptedSecretsModule.ts b/sdk/constructive-sdk/src/public/orm/models/encryptedSecretsModule.ts deleted file mode 100644 index 754ec7e785..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/encryptedSecretsModule.ts +++ /dev/null @@ -1,246 +0,0 @@ -/** - * EncryptedSecretsModule 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 { - EncryptedSecretsModule, - EncryptedSecretsModuleWithRelations, - EncryptedSecretsModuleSelect, - EncryptedSecretsModuleFilter, - EncryptedSecretsModuleOrderBy, - CreateEncryptedSecretsModuleInput, - UpdateEncryptedSecretsModuleInput, - EncryptedSecretsModulePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class EncryptedSecretsModuleModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModules: ConnectionResult< - InferSelectResult - >; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - 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, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModules', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - encryptedSecretsModule: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'EncryptedSecretsModule', - 'encryptedSecretsModules', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'EncryptedSecretsModuleFilter', - 'EncryptedSecretsModuleOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'EncryptedSecretsModule', - fieldName: 'encryptedSecretsModule', - document, - variables, - transform: (data: { - encryptedSecretsModules?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - encryptedSecretsModule: data.encryptedSecretsModules?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'EncryptedSecretsModule', - 'createEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.data, - 'CreateEncryptedSecretsModuleInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'createEncryptedSecretsModule', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - EncryptedSecretsModulePatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'EncryptedSecretsModule', - 'updateEncryptedSecretsModule', - 'encryptedSecretsModule', - args.select, - args.where.id, - args.data, - 'UpdateEncryptedSecretsModuleInput', - 'id', - 'encryptedSecretsModulePatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'updateEncryptedSecretsModule', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteEncryptedSecretsModule: { - encryptedSecretsModule: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'EncryptedSecretsModule', - 'deleteEncryptedSecretsModule', - 'encryptedSecretsModule', - { - id: args.where.id, - }, - 'DeleteEncryptedSecretsModuleInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'EncryptedSecretsModule', - fieldName: 'deleteEncryptedSecretsModule', - 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 f32f15f0cb..706bbd0102 100644 --- a/sdk/constructive-sdk/src/public/orm/models/index.ts +++ b/sdk/constructive-sdk/src/public/orm/models/index.ts @@ -6,9 +6,9 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; +export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; -export { ObjectModel } from './object'; export { DatabaseModel } from './database'; export { SchemaModel } from './schema'; export { TableModel } from './table'; @@ -33,6 +33,7 @@ export { RelationProvisionModel } from './relationProvision'; export { SessionSecretsModuleModel } from './sessionSecretsModule'; export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RealtimeModuleModel } from './realtimeModule'; +export { ConfigSecretsOrgModuleModel } from './configSecretsOrgModule'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; export { EnumModel } from './enum'; @@ -57,7 +58,7 @@ export { CryptoAuthModuleModel } from './cryptoAuthModule'; export { DefaultIdsModuleModel } from './defaultIdsModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; export { EmailsModuleModel } from './emailsModule'; -export { EncryptedSecretsModuleModel } from './encryptedSecretsModule'; +export { ConfigSecretsUserModuleModel } from './configSecretsUserModule'; export { InvitesModuleModel } from './invitesModule'; export { EventsModuleModel } from './eventsModule'; export { LimitsModuleModel } from './limitsModule'; @@ -78,6 +79,11 @@ export { EntityTypeProvisionModel } from './entityTypeProvision'; export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; export { NotificationsModuleModel } from './notificationsModule'; +export { InferenceLogModuleModel } from './inferenceLogModule'; +export { ComputeLogModuleModel } from './computeLogModule'; +export { TransferLogModuleModel } from './transferLogModule'; +export { StorageLogModuleModel } from './storageLogModule'; +export { DbUsageModuleModel } from './dbUsageModule'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; @@ -107,47 +113,44 @@ export { AppInviteModel } from './appInvite'; export { AppClaimedInviteModel } from './appClaimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; -export { AuditLogModel } from './auditLog'; -export { AgentThreadModel } from './agentThread'; -export { AgentMessageModel } from './agentMessage'; -export { AgentTaskModel } from './agentTask'; -export { RoleTypeModel } from './roleType'; +export { AuditLogAuthModel } from './auditLogAuth'; export { IdentityProviderModel } from './identityProvider'; export { RefModel } from './ref'; export { StoreModel } from './store'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { AppLimitCreditCodeModel } from './appLimitCreditCode'; +export { RoleTypeModel } from './roleType'; +export { MigrateFileModel } from './migrateFile'; +export { DevicesModuleModel } from './devicesModule'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { AppLimitCapsDefaultModel } from './appLimitCapsDefault'; export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault'; export { AppLimitCapModel } from './appLimitCap'; export { OrgLimitCapModel } from './orgLimitCap'; -export { MembershipTypeModel } from './membershipType'; -export { MigrateFileModel } from './migrateFile'; -export { DevicesModuleModel } from './devicesModule'; -export { NodeTypeRegistryModel } from './nodeTypeRegistry'; +export { UserConnectedAccountModel } from './userConnectedAccount'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; +export { AppLimitCreditCodeModel } from './appLimitCreditCode'; export { AppLimitWarningModel } from './appLimitWarning'; -export { UserConnectedAccountModel } from './userConnectedAccount'; export { CommitModel } from './commit'; export { PubkeySettingModel } from './pubkeySetting'; export { RateLimitsModuleModel } from './rateLimitsModule'; -export { UsageSnapshotModel } from './usageSnapshot'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { MembershipTypeModel } from './membershipType'; export { RlsSettingModel } from './rlsSetting'; -export { AppLimitEventModel } from './appLimitEvent'; -export { OrgLimitEventModel } from './orgLimitEvent'; export { RlsModuleModel } from './rlsModule'; +export { AgentChatModuleModel } from './agentChatModule'; export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { PlansModuleModel } from './plansModule'; export { SqlActionModel } from './sqlAction'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { DatabaseSettingModel } from './databaseSetting'; -export { BillingModuleModel } from './billingModule'; -export { AstMigrationModel } from './astMigration'; -export { UserModel } from './user'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { WebauthnSettingModel } from './webauthnSetting'; export { AppMembershipModel } from './appMembership'; +export { UserModel } from './user'; +export { AstMigrationModel } from './astMigration'; +export { WebauthnSettingModel } from './webauthnSetting'; +export { BillingModuleModel } from './billingModule'; export { BillingProviderModuleModel } from './billingProviderModule'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-sdk/src/public/orm/models/inferenceLogModule.ts b/sdk/constructive-sdk/src/public/orm/models/inferenceLogModule.ts new file mode 100644 index 0000000000..f6f4ab2452 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/inferenceLogModule.ts @@ -0,0 +1,244 @@ +/** + * InferenceLogModule 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 { + InferenceLogModule, + InferenceLogModuleWithRelations, + InferenceLogModuleSelect, + InferenceLogModuleFilter, + InferenceLogModuleOrderBy, + CreateInferenceLogModuleInput, + UpdateInferenceLogModuleInput, + InferenceLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class InferenceLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + 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, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + inferenceLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'InferenceLogModule', + 'inferenceLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'InferenceLogModuleFilter', + 'InferenceLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'InferenceLogModule', + fieldName: 'inferenceLogModule', + document, + variables, + transform: (data: { + inferenceLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + inferenceLogModule: data.inferenceLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'InferenceLogModule', + 'createInferenceLogModule', + 'inferenceLogModule', + args.select, + args.data, + 'CreateInferenceLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'createInferenceLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + InferenceLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'InferenceLogModule', + 'updateInferenceLogModule', + 'inferenceLogModule', + args.select, + args.where.id, + args.data, + 'UpdateInferenceLogModuleInput', + 'id', + 'inferenceLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'updateInferenceLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteInferenceLogModule: { + inferenceLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'InferenceLogModule', + 'deleteInferenceLogModule', + 'inferenceLogModule', + { + id: args.where.id, + }, + 'DeleteInferenceLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'InferenceLogModule', + fieldName: 'deleteInferenceLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts index c259e325f4..2eb9796e2a 100644 --- a/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts +++ b/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts @@ -104,6 +104,46 @@ export class OrgLimitEventModel { }), }); } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvent: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvent', + document, + variables, + transform: (data: { + orgLimitEvents?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null, + }), + }); + } create( args: CreateArgs & { select: S; @@ -131,4 +171,74 @@ export class OrgLimitEventModel { variables, }); } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitEventPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitEvent', + 'updateOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitEventInput', + 'id', + 'orgLimitEventPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'updateOrgLimitEvent', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitEvent', + 'deleteOrgLimitEvent', + 'orgLimitEvent', + { + id: args.where.id, + }, + 'DeleteOrgLimitEventInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'deleteOrgLimitEvent', + document, + variables, + }); + } } diff --git a/sdk/constructive-sdk/src/public/orm/models/storageLogModule.ts b/sdk/constructive-sdk/src/public/orm/models/storageLogModule.ts new file mode 100644 index 0000000000..60e0b45cac --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/storageLogModule.ts @@ -0,0 +1,244 @@ +/** + * StorageLogModule 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 { + StorageLogModule, + StorageLogModuleWithRelations, + StorageLogModuleSelect, + StorageLogModuleFilter, + StorageLogModuleOrderBy, + CreateStorageLogModuleInput, + UpdateStorageLogModuleInput, + StorageLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class StorageLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + storageLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'StorageLogModule', + 'storageLogModules', + 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, + }, + 'StorageLogModuleFilter', + 'StorageLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'StorageLogModule', + fieldName: 'storageLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + storageLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'StorageLogModule', + 'storageLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'StorageLogModuleFilter', + 'StorageLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'StorageLogModule', + fieldName: 'storageLogModule', + document, + variables, + transform: (data: { + storageLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + storageLogModule: data.storageLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + storageLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'StorageLogModule', + 'storageLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'StorageLogModuleFilter', + 'StorageLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'StorageLogModule', + fieldName: 'storageLogModule', + document, + variables, + transform: (data: { + storageLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + storageLogModule: data.storageLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'StorageLogModule', + 'createStorageLogModule', + 'storageLogModule', + args.select, + args.data, + 'CreateStorageLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'StorageLogModule', + fieldName: 'createStorageLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + StorageLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'StorageLogModule', + 'updateStorageLogModule', + 'storageLogModule', + args.select, + args.where.id, + args.data, + 'UpdateStorageLogModuleInput', + 'id', + 'storageLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'StorageLogModule', + fieldName: 'updateStorageLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteStorageLogModule: { + storageLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'StorageLogModule', + 'deleteStorageLogModule', + 'storageLogModule', + { + id: args.where.id, + }, + 'DeleteStorageLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'StorageLogModule', + fieldName: 'deleteStorageLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/transferLogModule.ts b/sdk/constructive-sdk/src/public/orm/models/transferLogModule.ts new file mode 100644 index 0000000000..dd1b30c286 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/transferLogModule.ts @@ -0,0 +1,244 @@ +/** + * TransferLogModule 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 { + TransferLogModule, + TransferLogModuleWithRelations, + TransferLogModuleSelect, + TransferLogModuleFilter, + TransferLogModuleOrderBy, + CreateTransferLogModuleInput, + UpdateTransferLogModuleInput, + TransferLogModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class TransferLogModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + transferLogModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'TransferLogModule', + 'transferLogModules', + 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, + }, + 'TransferLogModuleFilter', + 'TransferLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TransferLogModule', + fieldName: 'transferLogModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + transferLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'TransferLogModule', + 'transferLogModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'TransferLogModuleFilter', + 'TransferLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TransferLogModule', + fieldName: 'transferLogModule', + document, + variables, + transform: (data: { + transferLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + transferLogModule: data.transferLogModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + transferLogModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'TransferLogModule', + 'transferLogModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'TransferLogModuleFilter', + 'TransferLogModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'TransferLogModule', + fieldName: 'transferLogModule', + document, + variables, + transform: (data: { + transferLogModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + transferLogModule: data.transferLogModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'TransferLogModule', + 'createTransferLogModule', + 'transferLogModule', + args.select, + args.data, + 'CreateTransferLogModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TransferLogModule', + fieldName: 'createTransferLogModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + TransferLogModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'TransferLogModule', + 'updateTransferLogModule', + 'transferLogModule', + args.select, + args.where.id, + args.data, + 'UpdateTransferLogModuleInput', + 'id', + 'transferLogModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TransferLogModule', + fieldName: 'updateTransferLogModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteTransferLogModule: { + transferLogModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'TransferLogModule', + 'deleteTransferLogModule', + 'transferLogModule', + { + id: args.where.id, + }, + 'DeleteTransferLogModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'TransferLogModule', + fieldName: 'deleteTransferLogModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/usageSnapshot.ts b/sdk/constructive-sdk/src/public/orm/models/usageSnapshot.ts deleted file mode 100644 index 9fad79a81f..0000000000 --- a/sdk/constructive-sdk/src/public/orm/models/usageSnapshot.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * UsageSnapshot 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 { - UsageSnapshot, - UsageSnapshotWithRelations, - UsageSnapshotSelect, - UsageSnapshotFilter, - UsageSnapshotOrderBy, - CreateUsageSnapshotInput, - UpdateUsageSnapshotInput, - UsageSnapshotPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; -export class UsageSnapshotModel { - constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - usageSnapshots: ConnectionResult>; - }> { - const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', - 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, - }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshots', - document, - variables, - }); - } - findFirst( - args: FindFirstArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; - }> { - const { document, variables } = buildFindFirstDocument( - 'UsageSnapshot', - 'usageSnapshots', - args.select, - { - where: args?.where, - orderBy: args?.orderBy as string[] | undefined, - }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', - document, - variables, - transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, - }), - }); - } - findOne( - args: { - id: string; - select: S; - } & StrictSelect - ): QueryBuilder<{ - usageSnapshot: InferSelectResult | null; - }> { - const { document, variables } = buildFindManyDocument( - 'UsageSnapshot', - 'usageSnapshots', - args.select, - { - where: { - id: { - equalTo: args.id, - }, - }, - first: 1, - }, - 'UsageSnapshotFilter', - 'UsageSnapshotOrderBy', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'query', - operationName: 'UsageSnapshot', - fieldName: 'usageSnapshot', - document, - variables, - transform: (data: { - usageSnapshots?: { - nodes?: InferSelectResult[]; - }; - }) => ({ - usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null, - }), - }); - } - create( - args: CreateArgs & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - createUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }> { - const { document, variables } = buildCreateDocument( - 'UsageSnapshot', - 'createUsageSnapshot', - 'usageSnapshot', - args.select, - args.data, - 'CreateUsageSnapshotInput', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'createUsageSnapshot', - document, - variables, - }); - } - update( - args: UpdateArgs< - S, - { - id: string; - }, - UsageSnapshotPatch - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - updateUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }> { - const { document, variables } = buildUpdateByPkDocument( - 'UsageSnapshot', - 'updateUsageSnapshot', - 'usageSnapshot', - args.select, - args.where.id, - args.data, - 'UpdateUsageSnapshotInput', - 'id', - 'usageSnapshotPatch', - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'updateUsageSnapshot', - document, - variables, - }); - } - delete( - args: DeleteArgs< - { - id: string; - }, - S - > & { - select: S; - } & StrictSelect - ): QueryBuilder<{ - deleteUsageSnapshot: { - usageSnapshot: InferSelectResult; - }; - }> { - const { document, variables } = buildDeleteByPkDocument( - 'UsageSnapshot', - 'deleteUsageSnapshot', - 'usageSnapshot', - { - id: args.where.id, - }, - 'DeleteUsageSnapshotInput', - args.select, - connectionFieldsMap - ); - return new QueryBuilder({ - client: this.client, - operation: 'mutation', - operationName: 'UsageSnapshot', - fieldName: 'deleteUsageSnapshot', - document, - variables, - }); - } -} diff --git a/sdk/constructive-sdk/src/public/orm/mutation/index.ts b/sdk/constructive-sdk/src/public/orm/mutation/index.ts index 8d1e1cbef2..d9241c2882 100644 --- a/sdk/constructive-sdk/src/public/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/public/orm/mutation/index.ts @@ -31,7 +31,10 @@ import type { RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, + SignInCrossOriginInput, BootstrapUserInput, + SignUpInput, + SignInInput, SetFieldOrderInput, ProvisionCheckConstraintInput, ProvisionUniqueConstraintInput, @@ -45,16 +48,13 @@ import type { SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, - SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, - SendVerificationEmailInput, - ForgotPasswordInput, - SignUpInput, RequestCrossOriginTokenInput, - SignInInput, ProvisionTableInput, + SendVerificationEmailInput, + ForgotPasswordInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, @@ -80,7 +80,10 @@ import type { RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, + SignInCrossOriginPayload, BootstrapUserPayload, + SignUpPayload, + SignInPayload, SetFieldOrderPayload, ProvisionCheckConstraintPayload, ProvisionUniqueConstraintPayload, @@ -94,16 +97,13 @@ import type { SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, - SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, - SignUpPayload, RequestCrossOriginTokenPayload, - SignInPayload, ProvisionTablePayload, + SendVerificationEmailPayload, + ForgotPasswordPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, @@ -129,7 +129,10 @@ import type { RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, + SignInCrossOriginPayloadSelect, BootstrapUserPayloadSelect, + SignUpPayloadSelect, + SignInPayloadSelect, SetFieldOrderPayloadSelect, ProvisionCheckConstraintPayloadSelect, ProvisionUniqueConstraintPayloadSelect, @@ -143,16 +146,13 @@ import type { SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, - SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, - SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, - SignInPayloadSelect, ProvisionTablePayloadSelect, + SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -212,7 +212,7 @@ export interface InitEmptyRepoVariables { } /** * Variables for constructBlueprint - * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security, (0.5) app-level storage, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. + * Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When infra_public exists, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. */ export interface ConstructBlueprintVariables { input: ConstructBlueprintInput; @@ -240,9 +240,18 @@ export interface CopyTemplateToBlueprintVariables { export interface ProvisionSpatialRelationVariables { input: ProvisionSpatialRelationInput; } +export interface SignInCrossOriginVariables { + input: SignInCrossOriginInput; +} export interface BootstrapUserVariables { input: BootstrapUserInput; } +export interface SignUpVariables { + input: SignUpInput; +} +export interface SignInVariables { + input: SignInInput; +} export interface SetFieldOrderVariables { input: SetFieldOrderInput; } @@ -302,9 +311,6 @@ export interface ProvisionRelationVariables { export interface ApplyRlsVariables { input: ApplyRlsInput; } -export interface SignInCrossOriginVariables { - input: SignInCrossOriginInput; -} /** * Variables for createUserDatabase * Creates a new user database with all required modules, permissions, and RLS policies. @@ -333,21 +339,9 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} -export interface SignUpVariables { - input: SignUpInput; -} export interface RequestCrossOriginTokenVariables { input: RequestCrossOriginTokenInput; } -export interface SignInVariables { - input: SignInInput; -} /** * Variables for provisionTable * Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). @@ -355,6 +349,12 @@ export interface SignInVariables { export interface ProvisionTableVariables { input: ProvisionTableInput; } +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -1063,6 +1063,35 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionSpatialRelationPayload' ), }), + signInCrossOrigin: ( + args: SignInCrossOriginVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInCrossOrigin: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInCrossOrigin', + fieldName: 'signInCrossOrigin', + ...buildCustomDocument( + 'mutation', + 'SignInCrossOrigin', + 'signInCrossOrigin', + options.select, + args, + [ + { + name: 'input', + type: 'SignInCrossOriginInput!', + }, + ], + connectionFieldsMap, + 'SignInCrossOriginPayload' + ), + }), bootstrapUser: ( args: BootstrapUserVariables, options: { @@ -1092,6 +1121,64 @@ export function createMutationOperations(client: OrmClient) { 'BootstrapUserPayload' ), }), + signUp: ( + args: SignUpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUp', + fieldName: 'signUp', + ...buildCustomDocument( + 'mutation', + 'SignUp', + 'signUp', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpInput!', + }, + ], + connectionFieldsMap, + 'SignUpPayload' + ), + }), + signIn: ( + args: SignInVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signIn: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignIn', + fieldName: 'signIn', + ...buildCustomDocument( + 'mutation', + 'SignIn', + 'signIn', + options.select, + args, + [ + { + name: 'input', + type: 'SignInInput!', + }, + ], + connectionFieldsMap, + 'SignInPayload' + ), + }), setFieldOrder: ( args: SetFieldOrderVariables, options: { @@ -1469,35 +1556,6 @@ export function createMutationOperations(client: OrmClient) { 'ApplyRlsPayload' ), }), - signInCrossOrigin: ( - args: SignInCrossOriginVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - signInCrossOrigin: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SignInCrossOrigin', - fieldName: 'signInCrossOrigin', - ...buildCustomDocument( - 'mutation', - 'SignInCrossOrigin', - 'signInCrossOrigin', - options.select, - args, - [ - { - name: 'input', - type: 'SignInCrossOriginInput!', - }, - ], - connectionFieldsMap, - 'SignInCrossOriginPayload' - ), - }), createUserDatabase: ( args: CreateUserDatabaseVariables, options: { @@ -1585,178 +1643,120 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), - signUp: ( - args: SignUpVariables, + requestCrossOriginToken: ( + args: RequestCrossOriginTokenVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signUp: InferSelectResult | null; + requestCrossOriginToken: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignUp', - fieldName: 'signUp', + operationName: 'RequestCrossOriginToken', + fieldName: 'requestCrossOriginToken', ...buildCustomDocument( 'mutation', - 'SignUp', - 'signUp', + 'RequestCrossOriginToken', + 'requestCrossOriginToken', options.select, args, [ { name: 'input', - type: 'SignUpInput!', + type: 'RequestCrossOriginTokenInput!', }, ], connectionFieldsMap, - 'SignUpPayload' + 'RequestCrossOriginTokenPayload' ), }), - requestCrossOriginToken: ( - args: RequestCrossOriginTokenVariables, + provisionTable: ( + args: ProvisionTableVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - requestCrossOriginToken: InferSelectResult | null; + provisionTable: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'RequestCrossOriginToken', - fieldName: 'requestCrossOriginToken', + operationName: 'ProvisionTable', + fieldName: 'provisionTable', ...buildCustomDocument( 'mutation', - 'RequestCrossOriginToken', - 'requestCrossOriginToken', + 'ProvisionTable', + 'provisionTable', options.select, args, [ { name: 'input', - type: 'RequestCrossOriginTokenInput!', + type: 'ProvisionTableInput!', }, ], connectionFieldsMap, - 'RequestCrossOriginTokenPayload' + 'ProvisionTablePayload' ), }), - signIn: ( - args: SignInVariables, + sendVerificationEmail: ( + args: SendVerificationEmailVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - signIn: InferSelectResult | null; + sendVerificationEmail: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SignIn', - fieldName: 'signIn', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', ...buildCustomDocument( 'mutation', - 'SignIn', - 'signIn', + 'SendVerificationEmail', + 'sendVerificationEmail', options.select, args, [ { name: 'input', - type: 'SignInInput!', + type: 'SendVerificationEmailInput!', }, ], connectionFieldsMap, - 'SignInPayload' + 'SendVerificationEmailPayload' ), }), - provisionTable: ( - args: ProvisionTableVariables, + forgotPassword: ( + args: ForgotPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - provisionTable: InferSelectResult | null; + forgotPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ProvisionTable', - fieldName: 'provisionTable', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', ...buildCustomDocument( 'mutation', - 'ProvisionTable', - 'provisionTable', + 'ForgotPassword', + 'forgotPassword', options.select, args, [ { name: 'input', - type: 'ProvisionTableInput!', + type: 'ForgotPasswordInput!', }, ], connectionFieldsMap, - 'ProvisionTablePayload' + 'ForgotPasswordPayload' ), }), provisionBucket: ( diff --git a/sdk/constructive-sdk/src/public/orm/query/index.ts b/sdk/constructive-sdk/src/public/orm/query/index.ts index 7fc254ab13..b014f09988 100644 --- a/sdk/constructive-sdk/src/public/orm/query/index.ts +++ b/sdk/constructive-sdk/src/public/orm/query/index.ts @@ -11,9 +11,9 @@ import type { User, ObjectSelect, UserSelect, + ObjectConnection, AppPermissionConnection, OrgPermissionConnection, - ObjectConnection, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; export interface RequireStepUpVariables { @@ -26,7 +26,7 @@ export interface OrgPermissionsGetPaddedMaskVariables { mask?: string; } export interface RevParseVariables { - dbId?: string; + sId?: string; storeId?: string; refname?: string; } @@ -68,8 +68,9 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -export interface AppPermissionsGetByMaskVariables { - mask?: string; +export interface GetAllObjectsFromRootVariables { + sId?: string; + id?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -80,8 +81,10 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface OrgPermissionsGetByMaskVariables { - mask?: string; +export interface GetPathObjectsFromRootVariables { + sId?: string; + id?: string; + path?: string[]; /** Only read the first `n` values of the set. */ first?: number; /** @@ -92,9 +95,14 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; +export interface GetObjectAtPathVariables { + sId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} +export interface AppPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -105,10 +113,8 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; +export interface OrgPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -119,12 +125,6 @@ export interface GetPathObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} export function createQueryOperations(client: OrmClient) { return { currentUserId: (options?: { select?: Record }) => @@ -292,7 +292,7 @@ export function createQueryOperations(client: OrmClient) { args, [ { - name: 'dbId', + name: 'sId', type: 'UUID', }, { @@ -547,29 +547,33 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getAllObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', }, { name: 'first', @@ -588,29 +592,37 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; + getPathObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', ...buildCustomDocument( 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'sId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', }, { name: 'first', @@ -629,82 +641,70 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, - options?: { - select?: Record; - } + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; + getObjectAtPath: InferSelectResult | null; }>({ client, operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', ...buildCustomDocument( 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', - options?.select, + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, args, [ { - name: 'databaseId', + name: 'sId', type: 'UUID', }, { - name: 'id', + name: 'storeId', type: 'UUID', }, { - name: 'first', - type: 'Int', - }, - { - name: 'offset', - type: 'Int', + name: 'path', + type: '[String]', }, { - name: 'after', - type: 'Cursor', + name: 'refname', + type: 'String', }, ], connectionFieldsMap, - undefined + 'Object' ), }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; + appPermissionsGetByMask: AppPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -723,45 +723,45 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; + orgPermissionsGetByMask: OrgPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', + options?.select, args, [ { - name: 'dbId', - type: 'UUID', + name: 'mask', + type: 'BitString', }, { - name: 'storeId', - type: 'UUID', + name: 'first', + type: 'Int', }, { - name: 'path', - type: '[String]', + name: 'offset', + type: 'Int', }, { - name: 'refname', - type: 'String', + name: 'after', + type: 'Cursor', }, ], connectionFieldsMap, - 'Object' + undefined ), }), currentUser: ( diff --git a/sdk/migrate-client/src/migrate/orm/index.ts b/sdk/migrate-client/src/migrate/orm/index.ts index b3a9b27157..826fb7e929 100644 --- a/sdk/migrate-client/src/migrate/orm/index.ts +++ b/sdk/migrate-client/src/migrate/orm/index.ts @@ -9,7 +9,7 @@ import { MigrateFileModel } from './models/migrateFile'; import { SqlActionModel } from './models/sqlAction'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError } from './client'; +export { GraphQLRequestError, FetchAdapter } from './client'; export { QueryBuilder } from './query-builder'; export * from './select-types'; export * from './models';